Update the Microsoft 365 User Company Field with PowerShell
Question details
Update and verify the Company field for a Microsoft 365 user with Exchange Online PowerShell.

- Product
- Microsoft 365 and Exchange Online PowerShell
- Device & OS
- not provided
- Scenario
- An administrator wants to change a user's Company field but cannot find the parameter through PowerShell tab completion.
- Observed behavior
- The Company parameter is not displayed by tab completion, so the administrator needs to enter and verify the command manually.
Identify the user's sign-in address and the company name to apply. Sign in with an account that has permission to manage the user; the Company parameter may require Exchange Administrator permissions.
Set and verify the Company field in Exchange Online PowerShell
Enter the full parameter manually when tab completion does not suggest it.
Open PowerShell and run Connect-ExchangeOnline. If the command is unavailable, install the Exchange Online PowerShell module with Install-Module ExchangeOnlineManagement, then run Connect-ExchangeOnline and sign in.
Run Get-User -Identity user@contoso.com | Format-List Company, replacing the example address with the user's sign-in address.
Run Set-User -Identity user@contoso.com -Company "Company Name", replacing the address and company name with the intended values. Type the complete -Company parameter even if tab completion does not show it.
Run Get-User -Identity user@contoso.com | Format-List Company again and confirm that the returned value matches the company name you entered.

Work with Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for Microsoft Office formats, making it easy to move your document work. Exchange Online PowerShell is still required to manage the Microsoft 365 Company field.

Frequently Asked Questions
What if PowerShell does not suggest the Company parameter?
Type the full command manually: Set-User -Identity user@contoso.com -Company "Company Name". Tab completion does not have to display the parameter for you to try it.
How can I see a user's current Company value?
After connecting with Connect-ExchangeOnline, run Get-User -Identity user@contoso.com | Format-List Company, using the actual user's address.
Why might I be unable to update the Company field?
Check the error message and confirm that your account has the required Exchange Online permissions. For a synchronized user, you may need to change the value in the on-premises source directory instead.
Does changing the Company field rename the onmicrosoft.com domain?
No. The Company field is a user property; updating it with Set-User does not rename the tenant's initial onmicrosoft.com domain.




