Forum Discussion
Team Direct Routing - no dial pad
User has Microsoft 365 E3 and Microsoft 365 Phone System licenses.
User has assigned dial plan and routing policy.
But cannot run command similar to that one Set-CsUser -Identity <user> -OnPremLineURI "tel:+4684425555" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
If you type just Set-CsUser -OnPrem and press tab, will it expand to -OnPremLineURI ?
- msabatJan 16, 2020Brass Contributor
LinusCansby Yes I am connected to SfB Online with PowerShell.
Nothing happen when I try to type Set-CsUser -OnPrem and press tab
- Ramy AMERJun 27, 2020Copper Contributor
msabat if should be -LineURI if you are not connected to SFBO module
set-CsUser -Identity "User name" -LineURI tel:+145555555 -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
to use -OnPremLineURI command Connect to SFBO module using the commands below and make sure you are running PowerShell 3 or later:
Import-Module SkypeOnlineConnector $CSSession = New-CsOnlineSession -OverrideAdminDomain YOURDOMAINNAME.onmicrosoft.com Import-PSSession $CSSession -AllowClobber
You need Phone system add-on to E3 or Only E5
I hope this helps
- LinusCansbyJan 16, 2020MVP
Make sure you have the latest module installed:
Try from another computer if that works better. You can also try this script to connect to Office365 services with powershell
https://www.powershellgallery.com/packages/Office365.Connect
- msabatJan 20, 2020Brass Contributor