How to Fix OneDrive Repeated PIN Requests and Sign-in Loops
Question details
The user is experiencing a continuous sign-in loop in OneDrive, where the application repeatedly requests a PIN that has not been configured, blocking file access and account unlinking.

- Product
- OneDrive
- Device & OS
- Windows
- Scenario
- Attempting to access synced cloud files or unlink a Microsoft OneDrive account on a PC.
- Observed behavior
- OneDrive is stuck in a loop, repeatedly prompting for an unenabled PIN, completely preventing the user from signing in, accessing files, or managing account settings.
Before proceeding, ensure that all your Microsoft Office applications are completely closed to prevent file sync conflicts during the credential reset process.
Reset the OneDrive Sync App
Resetting the OneDrive application disconnects existing sync connections and clears cached errors without deleting your actual files.
This is the most effective method for resolving sync glitches and sign-in loops caused by application bugs. It essentially forces OneDrive to perform a clean startup.
Press the Windows key + R simultaneously on your keyboard to open the Run command window.
Type '%localappdata%\Microsoft\OneDrive\onedrive.exe /reset' into the text box and press Enter.
Wait a few minutes. If the OneDrive cloud icon does not automatically reappear in your system tray, open the Windows Start menu, search for 'OneDrive', and click to launch it.

Clear Office and OneDrive Credentials
Removing corrupted saved credentials from Windows forces OneDrive and Office to request a fresh login, bypassing the broken PIN prompt.
Switch to a Local Windows Account
If the Microsoft account linked to your Windows profile is causing the PIN loop, switching to a local account can bypass the system-level authentication issue.
Experience Hassle-Free Document Management with WPS Office
Tired of dealing with complex sign-in loops and sync issues? WPS Office offers a seamless, lightweight, and completely free alternative to Microsoft Office. It supports all standard document formats and features its own reliable built-in cloud storage.
- 1. Download the Installer: Visit the official WPS Office website and click on the 'Download' button to get the free installer.
- 2. Install WPS Office: Run the downloaded file and follow the simple on-screen instructions to complete the lightweight installation.
- 3. Open Your Files Easily: Launch WPS Office and instantly open, edit, and save your existing Microsoft Office files without any compatibility issues.

Frequently Asked Questions
Why is OneDrive asking for a PIN I never set up?
This usually occurs due to a synchronization glitch between your Microsoft Account and Windows Hello security settings. Clearing your saved credentials in the Windows Credential Manager often resolves this false prompt.
Will resetting the OneDrive app delete the files on my PC?
No, resetting the OneDrive app using the run command only refreshes the sync connection and application settings. Your local files and the files stored safely in the cloud will remain completely intact.
How do I unlink my OneDrive account if the app is stuck in a loop and won't open?
If the app is stuck and blocks access to its settings, try resetting the app via the Run command or clearing the OneDrive credentials first. Once the app starts normally without the loop, you can right-click its system tray icon, go to Settings, and click 'Unlink this PC'.




