Auto-Licensing script for Office 365

You can use the following script with task scheduler to connect to your tenant via powershell, check for any unlicensed users and apply a license. It will alert via email when the number of free licenses in your tenant falls below a certain number. The script stores the credential password encrypted in a file, so…

5