Forum Discussion

PushpinderRavi's avatar
PushpinderRavi
Copper Contributor
Oct 10, 2019
Solved

Powershell command to get all users with specific service plan

Hi all,   I am looking for a powershell command to get list of all users with specific plan in Office 365.   E.g. I need to get all users with Teams enabled in Office 365. I tried the following c...
  • VasilMichev's avatar
    Oct 11, 2019

    And by looking did you mean actually performing a search, as I've answered this question dozen times already? 🙂

     

    Here's how to do it via the MSOnline cmdlets:

     

    Get-MsolUser | ? {$_.Licenses.ServiceStatus | ? {$_.ServicePlan.ServiceName -eq "TEAMS1" -and $_.ProvisioningStatus -eq "Success"}}

Resources