Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hi Habiba,
You don't need to sign in to the old account to remove it. All of the steps below are local to your PC. Please go through them in order:
1. Check how the account is attached
Open Command Prompt as administrator and run:
dsregcmd /status
- AzureAdJoined : YES means the PC itself was joined to the company. Before disconnecting, create a local administrator account (Settings > Accounts > Other users) so you don't lock yourself out.
- WorkplaceJoined : YES (under User State) means the account was only registered, and it can be removed safely.
2. Disconnect it from Windows
Settings > Accounts > Access work or school (briefcase icon) > select the old account > Disconnect. Also check Settings > Accounts > Email & accounts > Accounts used by other apps and remove it there.
3. Unlink OneDrive
OneDrive icon > Settings > Account > Unlink this PC for the work account.
4. Clear cached credentials and tokens (close all Office apps first)
- Control Panel > Credential Manager > Windows Credentials and Generic Credentials > remove every entry containing the old work email or
MicrosoftOffice16_Data. - Delete the contents of these folders:
%LOCALAPPDATA%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy
%LOCALAPPDATA%\Microsoft\OneAuth
%LOCALAPPDATA%\Microsoft\IdentityCache
5. Reset the Office activation state (official method)
From an elevated prompt, run Microsoft's cleanup scripts OLicenseCleanup.vbs and signoutofwamaccounts.ps1, plus WPJCleanUp.cmd if WorkplaceJoined was YES. Download links and full details: Reset activation state for Microsoft 365 Apps
6. Restart, open Word and sign in with your personal account.
If the PC still shows "Some settings are managed by your organization" afterwards and dsregcmd still reports AzureAdJoined : YES, the device is still owned by the old company's tenant. In that case, back up your files and use Settings > System > Recovery > Reset this PC for a clean start.
If this helps, please mark it as accepted so others can find it.