Share via

PowerShell export licinesed user

MS 431 Reputation points
2022-09-12T17:58:22.26+00:00

Hi,

Would you please provide the PowerShell script for exporting office 365 licensed users using the filter contains "RMB" in the alias?

Thanks in Advance.

Regards,
MS

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

Answer accepted by question author

Rich Matheisen 48,116 Reputation points
2022-09-12T18:13:17.687+00:00

You can use the Get-MsolUser cmdlet to get all users. You can Where-Object to eliminate unlicensed users by checking the "isLicensed" property. I don't think the cmdlet returns the users alias, though.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.