Share via

How to prevent future Forced OOBE + OneDrive hijacking local autologon accounts?

Steven Peterson 0 Reputation points
2026-06-12T20:23:47.87+00:00

**Forced OOBE + OneDrive first‑run hijacked a local autologon account and converted it into my Microsoft Account without consent.

**On my Windows 11 laptop, I have a 'Local Only' auto-logon account for 'ci-automation' for local GitHub Actions Runners. Your OOBE tied it to my primary Microsoft account, risked data, privacy, and wasted hours of time.

This caused:

– my Microsoft profile picture to appear on the wrong account

– Copilot to load my personal conversations

– OneDrive to sync into the wrong profile

– no option to exit or skip

– no Settings access

– no unlink option

Today when I opened the laptop I was unexpectedly on the OOBE screen which gave me no option to proceed without entering my Microsoft email. Also no indication of which logon this would be tied to next. After entering it, the microsoft account was tied to the local automation-only account, and OneDrive started "syncing my files", re-downloading all my personal files, which already exist on my primary logon.

I canceled the sync operation before running out of diskspace however the OneDrive 'settings' was unavailable. Opening a terminal as 'Administrator' would open it as the primary user not the 'ci-automation' user. I then spent an hour with CoPilot running cmd prompts and registry commands I barely understood(*). It guided me to "uninstall OneDrive for the user only" (allegedly). Once I was done unlinking the 'ci-automation' account, OneDrive was thoroughly broken on my primary users account and had to be reinstalled.

(This was the worst Microsoft experience I've had in a long time. In fact the next most recent that comes to mind involved the same OOBE screen and having to setup the then-new computer multiple times consecutively and jump through flaming hoops to get a username that was my NAME and NOT my then email address of "******@mydomain.com").

Everything about this OOBE experience is a nightmare in Windows 11. Some specific questions:

On an established computer:

  • Why does OOBE randomly rerun without warning or user confirmation?
  • Why is there no 'skip' or fast-track exit WITHOUT changing any settings when this happens?
  • How can I prevent ever seeing this screen again?
  • If I see it again, how do I escape it and avoid corrupting/co-opting my local-only automation account?

On new computers:

  • Why can't the user CHOOSE/SPECIFY their USERNAME - even when using a Microsoft account???
    • The first 5-letters of the email is often not appropriate and not desirable, creates a horrible "new user" experience, every time one logs in, and is incredibly difficult and time-consuming to override.
  • Why can't the user select a 'local-only' account any more, with the option to link a Microsoft account later?

(*) I have 20 years experience as a Systems Software Engineer using and managing Windows, Linux, and Solaris systems and networks, preferably from the command line. If I don't know what the commands I'm running do, the first 98% of your user-base are screwed.

Windows for home | Windows 11 | Accounts, profiles, and login

1 answer

Sort by: Most helpful
  1. Hendrix-V 15,685 Reputation points Microsoft External Staff Moderator
    2026-06-13T05:19:09.8066667+00:00

    Hi Steven Peterson,

    A system that has already been in daily use should not normally return to the full setup (OOBE) flow. What you’re encountering is more consistent with a post‑update reconfiguration experience, where Windows may re‑present setup screens to complete or reapply device features such as account connection or backup. In this flow, accepting the prompts can unintentionally reconnect cloud services (like OneDrive) to the current profile.

    To reduce recurrence and prevent impact to your local autologon account, you can apply the following targeted steps:

    1, Disable future setup prompts

    • Go to Settings > System > Notifications > Additional settings
    • Turn off all options listed (including “Finish setting up this device”)

    2, Suppress the “second OOBE” trigger Run as Administrator: reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\UserProfileEngagement /v ScoobeSystemSettingEnabled /t REG_DWORD /d 0 /f

    3, Prevent OneDrive from attaching to the account Run: reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\OneDrive /v DisableFileSyncNGSC /t REG_DWORD /d 1 /f

    Disclaimer: Generally, modifying registry subkeys or work group is intended for advanced users, administrators, and IT Professionals. It can help fix some problems, however, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For further protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click How to back up and restore the registry in Windows - Microsoft Support to view the article.

    Let me know if you need further assistance, feel free to ask me by clicking "Add Comment" or "Add Answer" if you cannot add comment so your response will be visible. Thanks for your effort.


    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

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.