365

%3CLINGO-SUB%20id%3D%22lingo-sub-1445432%22%20slang%3D%22en-US%22%3ERe%3A%20Office365%20MFA%20Powershell%20script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1445432%22%20slang%3D%22en-US%22%3E%3CP%3EFiltering%20by%20SKU%20or%20specific%20service%20is%20done%20via%20the%20same%20cmdlet...%20here's%20an%20example%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EGet-MsolUser%26nbsp%3B%20%7C%20%3F%20%7B%24_.Licenses.AccountSkuId%20-eq%20%22tenant%3AENTERPRISEPREMIUM%22%7D%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eand%20here's%20an%20example%20for%20specific%20service%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGet-MsolUser%20%7C%20%3F%20%7B%24_.Licenses.ServiceStatus%20%7C%20%3F%20%7B%24_.ServicePlan.ServiceName%20-eq%20%22MCOSTANDARD%22%20-and%20%24_.ProvisioningStatus%20-eq%20%22Success%22%7D%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1445618%22%20slang%3D%22en-US%22%3ERe%3A%20Office365%20MFA%20Powershell%20script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1445618%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20-%20many%20thanks.%20Could%20I%20filter%20this%20down%20further%20and%20have%20an%20MFA%20status%20column%20as%20well%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advaned.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1443701%22%20slang%3D%22en-US%22%3E365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1443701%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Community%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1443701%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

Hi Community

1 Reply
Highlighted

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