1. Enable users
#测试用户
Enable-csuser-identity sfbdemo01-registrarpool sfbfepool01.i-x-cloud.com-sipaddress "Sip:[email protected]"
Enable-csuser-identity sfbdemo02-registrarpool sfbfepool01.i-x-cloud.com-sipaddress "Sip:[email protected]"
Enable-csuser-identity sfbdemo03-registrarpool sfbfepool01.i-x-cloud.com-sipaddress "Sip:[email protected]"
Enable-csuser-identity sfbdemo04-registrarpool sfbfepool01.i-x-cloud.com-sipaddress "Sip:[email protected]"
Enable-csuser-identity sfbdemo05-registrarpool sfbfepool01.i-x-cloud.com-sipaddress "Sip:[email protected]"
#实际用户
Enable-csuser-identity i-x-cloud\10810058-registrarpool sfbfepool01.i-x-cloud.com-sipaddress "Sip:[email protected ]"
2. Enable Enterprise Voice
#按用户
Set-csuser-identity sfbdemo01-enterprisevoiceenabled $True
#按OU
Get-csuser-ou "Ou=i-x-cloud,dc=i-x-cloud,dc=com" | Set-csuser-enterprisevoiceenabled $True
3. Set the extension number
Set-csuser-identity Sfbdemo01-lineuri tel:+28001
Set-csuser-identity Sfbdemo02-lineuri tel:+28002
Set-csuser-identity Sfbdemo03-lineuri tel:+28003
Set-csuser-identity Sfbdemo04-lineuri tel:+28004
Set-csuser-identity Sfbdemo05-lineuri tel:+28005
Set-csuser-identity Sfbdemo01-lineuri ' tel:+862032511771;ext=28001 '
Set-csuser-identity Sfbdemo03-lineuri ' tel:+862032511773;ext=28003 '
Set-csuser-identity Sfbdemo05-lineuri ' tel:+862032511775;ext=28005 '
Set-csuser-identity ' cn= A 10111731,ou=users,ou=ningxi,ou=i-x-cloud,dc=i-x-cloud,dc=com '-LineURI ' TEL:+ 862082962898;ext=20197 '
PS c:\> get-csuser-identity ' sfbdemo* ' | Select Displayname,lineuri
DisplayName LineURI
----------- -------
SFBDemo01 tel:+862032511771;ext=28001
SFBDemo02 tel:+28002
SFBDemo03 tel:+862032511773;ext=28003
SFBDemo04 tel:+28004
SFBDemo05 tel:+862032511775;ext=28005
4. Set up a dial plan
Grant-csdialplan-identity sfbdemo01-policyname ' dialplan01_gz.i-x-cloud.com '
Grant-csdialplan-identity sfbdemo02-policyname ' dialplan01_gz.i-x-cloud.com '
Grant-csdialplan-identity sfbdemo03-policyname ' dialplan01_gz.i-x-cloud.com '
Grant-csdialplan-identity sfbdemo04-policyname ' dialplan01_gz.i-x-cloud.com '
Grant-csdialplan-identity sfbdemo05-policyname ' dialplan01_gz.i-x-cloud.com '
Get-csuser-ou "Ou=i-x-cloud,dc=i-x-cloud,dc=com" | Grant-csdialplan-policyname ' dialplan01_gz.i-x-cloud.com '
PowerShell OPS Rookie Series -04-batch-enable user-enable enterprise voice-set extension number (in project)