Use PowerShell to bulk assign licenses

Source: Internet
Author: User

Run AAD PS as an administrator

650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/8D/B2/ Wkiom1imj5crf-ipaaeymqahlzy718.png "width=" 664 "height=" 449 "/>

View subscription and Usage status

Get-msolaccountsku

650) this.width=650; "title=" clip_image001 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image001 "src=" http://s3.51cto.com/wyfs02/M01/8D/B2/ Wkiom1imj5lzzyvqaaczheers38187.png "width=" 659 "height=" 167 "/>

Bulk grant to all users E3 license

get-msoluser-all-unlicensedusersonly | Set-msoluserlicense-addlicenses "Qwew:enterprisepack_no_rms"

650) this.width=650; "title=" clip_image005 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image005 "src=" http://s3.51cto.com/wyfs02/M02/8D/AF/ Wkiol1imj5ocwaypaaadsggq564037.jpg "width=" 682 "height="/>

View the licenses that a user has already assigned

(Get-msoluser-userprincipalname [email protected] remind you, do not spam ads!). Licenses.servicestatus

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/8D/B3/wKiom1imoGGRu_ A7aacfldicvlc610.png "" 672 "height=" 118 "/>

Define new license variables, except for Exchange products, where other products are disabled

$LicenseOptions 1 = new-msollicenseoptions-accountskuid Qwew:enterprisepack_no_rms-disabledplans SHAREPOINTWAC, Sharepointenterprise,officesubscription,mcostandard

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/8D/B0/ Wkiol1imogkqnocvaabst2uajk0255.png "" 684 "height="/>

Execute the command to make the definition of the new license variable effective (tag part replaced with your own accountskuid)

Get-msoluser-all | where {($_.islicensed-eq $true)-and ($_.licenses.accountskuid-eq ' qwew:enterprisepack_no_rms ')} | Set-msoluserlicense-licenseoptions $licenseoptions 1

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/8D/B0/wKioL1imoGOBIWqgAABY0kc_ 9o4790.png "" 682 "height="/>

To see if the settings take effect, use the command line or the graphical interface

(get-msoluser-userprincipalname [email protected] remind you, do not spam ads!). Licenses.servicestatus

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/8D/B0/ Wkiol1imogxxpc6iaacl6yos3wu815.png "" 675 "height=" 127 "/>

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/8D/B0/wKioL1imoGehSwjLAACi_ Sssw5u802.png "" 485 "height=" 341 "/>

Use PowerShell to bulk assign licenses

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.