Forum Discussion
Office 365 license consumption alert
- Mar 23, 2017
In terms of alerts, no. A quick glance at the Admin portal or the Reports can give you this info. If you need it automated it really takes few lines of PowerShell code to check for available licenses and fire up an email notification.
Sending messages via PowerShell is very easy. Get the information you want via the licensing cmdlets, then simply use something like:
$body = "blabla you have $somevariable available licenses out of $anothervariable blabla"
Send-MailMessage -SmtpServer outlook.office365.com -To user@domain.com -From you@domain.com -Subject "Free licenses report" -Body $body -BodyAsHtml -UseSSL -Credential (Get-Credential)
Of course if you aim to automate it you can use a different account, store the credentials securely and reuse them. You can also use your own SMTP server instead of O365 ones, etc.
Thanks Vasil much appreciated