

This example removes the emergency location from the phone number for user Example 5 Set-CsPhoneNumberAssignment -Identity -PhoneNumber +14255551225 -PhoneNumberType DirectRouting This example sets the EnterpriseVoiceEnabled flag on the user Example 4 Set-CsPhoneNumberAssignment -Identity -LocationId 'null' -PhoneNumber +12065551226 -PhoneNumberType OperatorConnect This example finds the emergency location defined for the corporate location Vancouver and assigns the Microsoft Calling Plan phone number +1 (206) 555-1224 and location to the user Example 3 Set-CsPhoneNumberAssignment -Identity -EnterpriseVoiceEnabled $true Set-CsPhoneNumberAssignment -Identity -PhoneNumber +12065551224 -PhoneNumberType CallingPlan -LocationId $loc.LocationId This example assigns the Microsoft Calling Plan phone number +1 (206) 555-1234 to the user Example 2 $loc=Get-CsOnlineLisLocation -City Vancouver Examples Example 1 Set-CsPhoneNumberAssignment -Identity -PhoneNumber +12065551234 -PhoneNumberType CallingPlan To remove a phone number from a user or resource account, use the Remove-CsPhoneNumberAssignment cmdlet. You can also assign a location to a phone number. When you assign a phone number the EnterpriseVoiceEnabled flag is automatically set to True. This cmdlet assigns a phone number to a user or resource account.

In this article Syntax Set-Cs Phone Number Assignment This cmdlet will assign a phone number to a user or a resource account (online application instance).
