![]() ![]() The script will export the CSV file to the C:\temp folder.Įnsure the file is unblocked to prevent errors when running the script. Prepare export Azure AD users PowerShell scriptĭownload and place Export-AADUsers.ps1 PowerShell script in C:\scripts folder. PS C:\> Connect-MgGraph -Scopes "", "", ""Įnter your global administrator credentials and accept the Microsoft Graph permissions request. Connect to Microsoft Graph PowerShellĬonnect to Azure Active Directory (AAD) with Microsoft Graph PowerShell. PS C:\> Get-InstalledModule | ft -AutoSizeĢ.1.0 PSGallery Microsoft Graph PowerShell module Step 2. PS C:\> Get-InstalledModule Microsoft.Graph | ft -AutoSizeĢ.1.0 Microsoft.Graph PSGallery Microsoft Graph PowerShell moduleĬheck the Microsoft Graph Beta version. Run Windows PowerShell as administrator and check the Microsoft Graph version. That’s because some cmdlets are not yet available in the final version, and they will not work. Note: We recommend installing both the Microsoft Graph and Microsoft Graph Beta module. Important: You need Microsoft Graph version 2.0 or higher to use the new parameters. Run Windows PowerShell as administrator and Install Microsoft Graph PowerShell. Let’s go through the steps and export Azure Active Directory users to CSV file with PowerShell. MFA status (including authentication methods)Įxport Azure Active Directory users to CSV with PowerShell.Last log in (requires an Azure AD P1/P2 license).The script will gather the following information per user: You can open the CSV file with Microsoft Excel or any other application that supports the CSV file extension. ![]() After that, it will export the report to CSV file. The Export-AADUsers.ps1 PowerShell script will run against the Azure tenant. Information export Azure AD users PowerShell script Run export Azure AD users PowerShell script Prepare export Azure AD users PowerShell script Export Azure Active Directory users to CSV with PowerShell.Information export Azure AD users PowerShell script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |