PowerShell export licinesed user

MS 426 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 Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,504 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 46,551 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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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