Copy-ready commandUpdate-MgUser — Export Results
Update-MgUser -UserId user@contoso.com -Department IT | Export-Csv .\output.csv -NoTypeInformationProduction warning
Directory write operations can affect tenant access.
Requirements and permissions
- Requirements
- Microsoft.Graph PowerShell SDK
- Permissions
- Graph delegated or application permissions
- Last reviewed
- 2026-07-31
Examples
Export Results
Export the output of Update-MgUser for documentation or review.
Update-MgUser -UserId user@contoso.com -Department IT | Export-Csv .\output.csv -NoTypeInformationOriginal command
Update a Microsoft Entra ID user.
Update-MgUser -UserId user@contoso.com -Department ITCommon errors
Command not found
Confirm Microsoft.Graph PowerShell SDK is installed and available in your current shell.