PowerShell Module that provides functions to simplify the management of License Assignment, Swapping, Updating, and Reporting in Office 365.
Install the powershell module from the powershell gallery using Install-Module MSOLLicenseManagement
from the server where data will be gathered.
Additional information can be found on how to install powershell modules here: https://docs.microsoft.com/en-us/powershell/scripting/gallery/overview?view=powershell-7
If the server where data is being gathered doesn't have access to the internet directly then either:
- Install the module to another machine in the org that does have access
- Download the module from https://github.com/Canthv0/MSOLLicenseManagement/releases
- Extract the Zip file to a known location
- From powershell in the extracted path run
Import-Module .\MSOLLicenseManagement.psd1
- Change to a different directory than the one with the psd1 file
This module provides the following cmdlets to help with the management of licenses
Switch | Description | Default |
---|---|---|
Users | UserPrincipalName Comma Seperated List Array of objects |
none |
Gets a csv report file with users and their assigned licenses.
Switch | Description | Default |
---|---|---|
Users | UserPrincipalName Comma Seperated List Array of objects |
none |
OverWrite | Overwrite existing output file. | False |