How to Stop OneDrive from Automatically Signing In on a PC
Question details
The user wants to prevent the Microsoft OneDrive application from automatically logging in and syncing files, particularly to secure a shared computer.

- Product
- Microsoft OneDrive
- Device & OS
- Windows PC
- Scenario
- Using a shared computer where automatic cloud storage access poses a privacy or security risk.
- Observed behavior
- OneDrive automatically signs in upon computer startup and immediately grants access to synced personal or work files.
Ensure that any active file synchronizations are complete before unlinking your account, so you do not lose any recent offline edits.
Unlink Your PC from OneDrive
Unlinking your PC removes the account connection, effectively stopping OneDrive from signing in automatically on startup.
This is the standard and safest method to prevent unauthorized access to your cloud files on a shared machine. It will not delete any files from your OneDrive cloud storage.
Click the OneDrive cloud icon in your Windows taskbar notification area, click the 'Help & Settings' gear icon, and select 'Settings' from the menu.
In the OneDrive Settings window, click on the 'Account' tab located at the top or side navigation panel.
Click the 'Unlink this PC' link. A confirmation dialog will appear; click 'Unlink account' to finalize the process.

Reset the OneDrive Application via Command Line
If the unlinking process fails or the application is unresponsive, you can force a reset of the OneDrive client.
Edit Your Local Documents Seamlessly with WPS Office
If you are unlinking OneDrive to manage local files manually on a shared PC, consider using WPS Office to handle your documents. It provides a comprehensive, lightweight, and free alternative to Microsoft Office without forcing mandatory cloud sign-ins.

Frequently Asked Questions
Will unlinking my PC delete my OneDrive files?
No. Unlinking your PC only stops the synchronization process and removes the automatic login access from that specific computer. Your files remain completely secure in your Microsoft OneDrive cloud storage.
How do I sign back into OneDrive after unlinking it?
To reconnect, open the OneDrive application from your Start menu. You will be greeted by the initial setup screen where you can enter your Microsoft account credentials to resume syncing.
Why does OneDrive still try to sign in after I unlinked my account?
Sometimes Windows saves your account credentials system-wide. To resolve this, open the Windows 'Credential Manager', navigate to 'Windows Credentials', and remove any saved credentials related to OneDrive or Microsoft Office.




