Admiral208 Posted June 3, 2015 Posted June 3, 2015 I am trying to get a list of users that are assigned to a license using powershell. This is the command I am running... Get-MsolUser -All | Where { $_.Licenses -match "STANDARDWOFFPACK_STUDENT" } It seems simple enough but it will not display any results. I can substitute $_.Licenses with other properties and it works. Any one got any suggestions. Thanks James
Steve21 Posted June 3, 2015 Posted June 3, 2015 Isn't the License a collection so it'd be Licenses.AccountSkuID? Steve 1
Admiral208 Posted June 3, 2015 Author Posted June 3, 2015 Bingo! Thanks. I knew it must be something simple.
Ben-BSH Posted June 4, 2015 Posted June 4, 2015 Not that it helps in this instance, but this is sometimes quite handy! https://www.microsoft.com/resources/TechNet/en-us/Office/media/WindowsPowerShell/WindowsPowerShellCommandBuilder.html
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now