Office 365 add specific License to user
Hallo zusammen,
Kürzlich musste ich spezifische Lizenzen für die Nutzung einzelner Dienste in Office 365 vergeben. Da habe ich versucht das über Powershell zu scripten.
Get-MsolAccountSku
(Get-MsolAccountSku).ServiceStatus
#DisablePlans
$disabledPlans= @()
$disabledPlans +="INTUNE_O365"
$disabledPlans +="YAMMER_ENTERPRISE"
$disabledPlans +="RMS_S_ENTERPRISE"
$disabledPlans +="SHAREPOINTWAC"
$disabledPlans +="SHAREPOINTENTERPRISE"
$disabledPlans +="EXCHANGE_S_ENTERPRISE"
#Create new LicenseOption
$LyncOnly = New-MsolLicenseOptions -AccountSkuId "serveralive:ENTERPRISEPACK" -DisabledPlans $disabledPlans
#Assign Location
Get-MsolUser -UserPrincipalName k.klammer@serveralive.ch | Set-MsolUser -UsageLocation "CH"
#Assign Licence and LicenseOption
Set-MsolUserLicense -UserPrincipalName k.klammer@serveralive.ch -AddLicenses "serveralive:ENTERPRISEPACK" –LicenseOptions $LyncOnly
#View LicenseOptions for User
(Get-MsolUser -UserPrincipalName k.klammer@serveralive.ch).licenses.serviceStatus
#Remove License
Set-MsolUserLicense -UserPrincipalName k.klammer@serveralive.ch -RemoveLicenses "serveralive:ENTERPRISEPACK"
Weitere Informationen:
- PowerShell Licensing SKU's in Office 365
http://blogs.technet.com/b/treycarlee/archive/2013/11/01/list-of-powershell-licensing-sku-s-for-office-365.aspx - Disable Skype for Business, SharePoint Online, or both
https://community.office365.com/en-us/w/manage/2603