Last active
April 22, 2016 19:38
-
-
Save thisboyiscrazy/f438a8457710ebbe26bf50ab2783dafb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$users = Get-MsolUser -All | ?{ $_.isLicensed -eq "TRUE" } | |
$sku = "tenent:SMB_BUSINESS_PREMIUM" | |
$users | ?{ ($_.Licenses | ?{ $_.AccountSkuId -eq $sku}).Length -gt 0} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment