Force onedrive to prompt for login credentials

Nuno Cabaco 20 Reputation points
2025-07-07T17:15:30.8466667+00:00

Hello,

I'm using my personal onedrive account in my enterprise laptop (linked to the company's domain) for backup purposes, since the company doesn't have a flexible backup option (other then external hard drives).

Is there a way to force onedrive to prompt for login credentials in every windows logon?

Thanks

Nuno Cabaco

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments

Answer accepted by question author
Anonymous
2025-07-08T03:12:21.3433333+00:00

Hi @Nuno Cabaco

Thank you for reaching out to Microsoft Q&A Forum. 

I understand you're using a personal OneDrive account on a company-managed device and would like it to prompt for login credentials every time you sign in to Windows. That’s a thoughtful approach to keeping things secure and separate. 

Based on my research, I couldn’t find any official Microsoft documentation or built-in setting that would force OneDrive to prompt for login at each Windows logon. By design, once you've signed in, OneDrive securely saves your credentials and session tokens so it can log in automatically at startup. Unfortunately, there’s no native option to require login each time. 

You could try some manual methods like unlinking the PC, resetting OneDrive, or removing saved credentials from Windows Credential Manager. However, these steps are quite inconvenient and would need to be repeated every time you restart your computer or use OneDrive again, which makes them impractical for daily use. 

I know this might not be the answer you were hoping for, and I really appreciate your understanding. 

If you have other concerns, feel free to reach out anytime. I’m happy to assist.


If my answer was even partially helpful, please kindly mark it as accepted so others with the same issue can benefit as well.   

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.