Investigate License errors in Office 365
An important part of any administrators job is the routine investigation of any errors encountered in the Office 365 environment. This short article will describe how to identify if there are any licensing errors in your Office 365 tenancy.
This assumes you already use dynamic groups for assigning Office 365 product licenses as per this Microsoft webpage:
Report on all users who have a license error attached to their MSOL identity
1. Install the MSOnline powershell module
install-module MSOnline
2. Connect to MSOnline powershell
connect-msservice
3. Assign all users to a variable
$allusers = get-msoluser -all
4. Filter all users with a licensing error into a separate variable
$errorusers = $allusers|where{$_.IndirectLicenseErrors -ne $null}
This will give you a list of all accounts that have a license error attached to them and each instance will require investigation.
No comments:
Post a Comment