Add on to Existing License
we have purchased k1 license(desklesspack comprise sharepointdeskless, exchange_s_deskless). see below.
ps c:\windows\system32> get-msolaccountsku | where-object {$_.skupartnumber -eq 'desklesspack'} | foreach-object {$_.servicestatus}
serviceplan provisioningstatus
----------- ------------------
sharepointdeskless success
exchange_s_deskless success
we have attempted assign e1(exchange_s_deskless only) users new license, k1.
this script.
1)set-msoluserlicense –userprincipalname testuser11@com –licenseoptions "xxx:desklesspack"
ps c:\test> c:\test\updatedeskless.ps1 set-msoluserlicense : cannot bind parameter 'licenseoptions'. cannot convert "xxx:desklesspack" value of type "system.string" type "microsoft.online.administration.licenseoption". at c:\test\updatedeskless.ps1:28 char:78 + set-msoluserlicense –userprincipalname testuser11@com –licenseoptions "pc ... + ~~~ + categoryinfo : invalidargument: (:) [set-msoluserlicense], parameterbindingexception + fullyqualifiederrorid : cannotconvertargumentnomessage,microsoft.online.administration.automation.setuserlicensewhat should correct script?
first off, testuser11@com licensed @ all? if so, hold k1 license spoke of or different one? if intend modify enabled service plans of license user holds need modify license options. however, if license user not hold need both assign license , set options.
to assign new license available service plans:
set-msoluserlicense -userprincipalname testuser11@com -addlicenses tenantname:desklesspack
to assign new license service plans disabled:
$options = new-msollicenseoptions -accountskuid tenantname:desklesspack -disabledplans sharepointdeskless set-msoluserlicense -userprincipalname testuser11@com -addlicenses tenantname:desklesspack -licenseoptions $options
to change enabled service plans assigned license:
$options = new-msollicenseoptions -accountskuid tenantname:desklesspack -disabledplans sharepointdeskless set-msoluserlicense -userprincipalname testuser11@com -licenseoptions $options
Windows Server > Windows PowerShell
Comments
Post a Comment