question

ChadRodriguez-0138 avatar image
0 Votes"
ChadRodriguez-0138 asked ·

Audio conference licensing

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-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DSPatrick avatar image
0 Votes"
DSPatrick answered ·

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)




·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.