Removing DialPlan that is associated with UM IP Gateway (after running ExchUCUtil.ps1 scrip …etc) is not a Next,Next, Finish task as deleting a standard DialPlans.
Andrew Morpeth explained how to do this with details in this very helpful article here: https://ucgeek.co/2014/04/removing-exchange-2013-um-dial-plan/
Below is my attempt to provide an alternate approach to the Powershell script provided in above article (You need to provide the DIalPlan Name in the first line):
$UMDialPlan = "<YourDialPlanName>" Get-UMMailboxPolicy | where {$_.UMDialPlan -eq $UMDialPlan} | FL Name, UMDialPlan Get-UMMailboxPolicy | where {$_.UMDialPlan -eq $UMDialPlan} | Remove-UMMailboxPolicy Get-UMHuntGroup | where {$_.UMDialPlan -eq $UMDialPlan} Get-UMHuntGroup | where {$_.UMDialPlan -eq $UMDialPlan} | Remove-UMHuntGroup Get-UMService | where {$_.DialPlans -contains $UMDialPlan} | FL Name, DialPlans Get-UMService | where {$_.DialPlans -contains $UMDialPlan} | Set-UMService -DialPlans @{Remove="$UMDialPlan"} Get-UMService | Get-UMCallRouterSettings | where {$_.DialPlans -contains $UMDialPlan} | FL Identity, DialPLans Get-UMService | Get-UMCallRouterSettings | where {$_.DialPlans -contains $UMDialPlan} | Set-UMCallRouterSettings -DialPlans @{Remove=$UMDialPlan} Remove-UMDialPlan -Identity $UMDialPlan
Advertisements
Thank you but we had to remove the UMCallRouterSettings manually. The script did not work at this point with Exchange 2016 lates CU. Everything else worked. Thank you.
The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
+ CategoryInfo : InvalidArgument: (XXX\UMCallRouterSettings:PSObject) [Set-UMCallRouterSettings], ParameterBindingException
+ FullyQualifiedErrorId : InputObjectNotBound,Set-UMCallRouterSettings
+ PSComputerName : XXX.XXX
Thanks for the feedback, Glad it helped.
I’m interested to know how the output of this command looked like if you still had that info:
Get-UMService | Get-UMCallRouterSettings | where {$_.DialPlans -contains $UMDialPlan} | FL Identity, DialPLans