PowerShell OPS Rookie Series -04-batch-enable user-enable enterprise voice-set extension number (in project)

Source: Internet
Author: User

 

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.