PowerTip: Use PowerShell to Get Licensed Users in Office 365

Summary: Use Windows PowerShell to get a list of users who are licensed in Office 365.

Hey, Scripting Guy! Question How can I get a list of all users that are licensed in Office 365?

Hey, Scripting Guy! Answer Use the Get-Msoluser cmdlet from the MSOnline module and filter on the IsLicensed property:

Get-Msoluser | Where { $_.Islicensed }

Comments (1)

  1. Chen V says:

    Get-Msoluser -all | where {$_.islicensed} all parameter gets all users.

Skip to main content