Forum Discussion
JordFox
Jun 05, 2020Copper Contributor
365
Hi Community
Filtering by SKU or specific service is done via the same cmdlet... here's an example:
Get-MsolUser | ? {$_.Licenses.AccountSkuId -eq "tenant:ENTERPRISEPREMIUM"}
and here's an example for specific service:
Get-MsolUser | ? {$_.Licenses.ServiceStatus | ? {$_.ServicePlan.ServiceName -eq "MCOSTANDARD" -and $_.ProvisioningStatus -eq "Success"}}