Forum Discussion

  • 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"}}

Resources