Audio conference licensing

Chad Rodriguez 366 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

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,973 questions
0 comments No comments
{count} votes

Accepted answer
  1. 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)

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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