Apr 30 2021 04:00 AM
As Microsoft discontinued SkypeOnlineConnector (finally) we moved to MicrosoftTeams PowerShell Module for user management - especially for Direct Routing phone number management (-OnPremLineURI).
However, the current version of MicrosoftTeams PowerShell Module no longer supports -OnPremLineURI neither does it work for -EnterpriseVoiceEnabled:$true and or -HostedVoiceMail:$true
We are currently inable to deploy new phone system users as the "legacy" SkypeOnlineConnector no longer functions.
May 10 2021 05:35 AM - edited May 10 2021 05:36 AM
And the New-CsOnlineSession makes a comeback!
The CS commands are now executing successfully.
Thank you guys for fixing the issue.
May 10 2021 08:05 AM
May 13 2021 03:13 AM
May 19 2021 12:45 AM
Dec 12 2021 09:10 PM
I came across the scenario where we move the user from Online To onpremises. After few days we again try to move the user from onpremises to online. When we do this operation it works for few case but few case it get failed. After failure the number also get sync to online.
Exception:System.Management.Automation.RemoteException: Can not update OnPremLineURI as the user has dirsynced onpremise LineURI.InnerException:
What's wrong with the command and I don't know how to troubleshoot this issue.
Plz help.
ONPREM |
OnPremScript Execution:Move-CsUser -Identity "YYYYYY@XXXX.com.sg" -Target "sipfed.online.lync.com" -HostedMigrationOverrideUrl "https://admin0f.online.lync.com/HostedMigration/hostedmigrationservice.svc" -DomainController "SP-IS-AD01" -Confirm:$false -UseOAuth -Credential $c |
OnPremScript Execution:Set-CsUser -Identity "YYYYYY@XXXX.com.sg" -EnterpriseVoiceEnabled $true -LineURI "tel:+6569167308;ext=7308" |
OnPremScript Execution:Grant-CsVoicePolicy -Identity "YYYYYY@XXXX.com.sg" -PolicyName $null |
OnPremScript Execution:Grant-CsVoiceRoutingPolicy -Identity "YYYYYY@XXXX.com.sg" -PolicyName $null |
OnPremScript Execution:Grant-CsDialPlan -Identity "YYYYYY@XXXX.com.sg" -PolicyName $null |
ONLINE |
OnLine Execution Script:Grant-CsTenantDialPlan -identity "YYYYYY@XXXX.com.sg" -policyname "AA-DialPlan-Teams" |
OnLine Execution Script:Grant-CsOnlineVoiceRoutingPolicy -Identity "YYYYYY@XXXX.com.sg" -PolicyName "VP-AA-Teams-Local" |
OnLine Execution Script:Grant-CsTeamsUpgradePolicy -Identity "YYYYYY@XXXX.com.sg" -PolicyName UpgradeToTeams |
OnLine Execution Script:Set-CsUser -Identity "YYYYYY@XXXX.com.sg" -EnterpriseVoiceEnabled $true -OnPremLineURI "tel:+65XXXX7308;ext=7308" -HostedVoiceMail $true |
PowerShellErrorCheck: Powershell Invoke Error: Exception:System.Management.Automation.RemoteException: Can not update OnPremLineURI as the user has dirsynced onpremise LineURI.InnerException: |