blog.icewolf.ch

Let's talk about IT!
posts - 1343, comments - 295, trackbacks - 0

My Links

Archives

Post Categories

icewolf

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:

Grüsse
Andres Bohren

Print | posted on Tuesday, July 07, 2015 7:29 AM | Filed Under [ O365 ]

Powered by:
Powered By Subtext Powered By ASP.NET