Share via

Audio conference licensing

Chad Rodriguez 391 Reputation points
2020-04-07T16:08:09.327+00:00

I would like to run the following but only retrieve sku: MCOMEETADV. It gives me everything.

$customformat = @{expr={$.AccountSkuID};label="MCOMEETADV"},
@{expr={$
.ActiveUnits};label="Total"},
@{expr={$.ConsumedUnits};label="Assigned"},
@{expr={$
.activeunits-$.consumedunits};label="Unassigned"},
@{expr={$
.WarningUnits};label="Warning"}
$result = Get-MsolAccountSku | sort activeunits -desc | select $customformat
$runningout=@()
$result | foreach{
if($.unassigned -le 5){
$runningout+=$

}
}
[string]$body=$runningout | convertto-html
[string]$body=$result | convertto-html
$cred=Get-Credential
send-mailmessage -from test@test .com -To test@test .com -SmtpServer smtp.test.com -Port 587 -Body $body -Subject "Daily Office 365 License Report" -BodyAsHtml -Credential $cred

Community Center | Not monitored
0 comments No comments

Answer accepted by question author

Anonymous
2020-04-07T16:13:13.893+00:00

QnA currently supports the products listed in right-hand pane (more to be added) Better to reach out to subject matter experts in dedicated forums over here.

https://techcommunity.microsoft.com/t5/admin-center/bd-p/AdminCenter

(please don't forget to mark helpful replies as answer)

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.