Everybody knows Office 365 contains a lot of functionality and all of them can be managed through the portal or via Powershell. But how to change a service, lets say Skype, from an unknow state (on or off) to on? For all users in your organisation?
First, Powershell contains a lot of functionality and what is described above is possible, but how. The only knowledge I had was how to set all services for one user to on and the disable a few as shown below:
- $UserCredential = Get-Credential
- Connect-MsolService -Credential $UserCredential
- $AccountSku=(Get-MsolAccountSku | Where {$_.SkuPartNumber -eq "ENTERPRISEPACK"}).AccountSkuId
- $Full = New-MsolLicenseOptions -AccountSkuId $AccountSku -DisabledPlans $null
- $Selected = New-MsolLicenseOptions -AccountSkuId $AccountSku -DisabledPlans "FLOW_O365_P2", "POWERAPPS_O365_P2", "TEAMS1", "PROJECTWORKMANAGEMENT", "SWAY", "INTUNE_O365", "YAMMER_ENTERPRISE", "RMS_S_ENTERPRISE", "MCOSTANDARD", "EXCHANGE_S_ENTERPRISE
- Set-MsolUserLicense -UserPrincipalName UPN -LicenseOptions $Full
- Set-MsolUserLicense -UserPrincipalName UPN -LicenseOptions $Selected
The last two statements enables for the selected UPN all available services within the license and secondly removes the services selected. So it should be possible to enable only one service for all users with only the correct PowerShell code! See below the code I used to enable
Continue reading "How to alter one or more license services for..." »