Getting past Autopilot on a second-hand machine

Posted by sunkencathedral@reddit | sysadmin | View on Reddit | 40 comments

Hi there! I volunteer at a local charity and do all sorts of work there. Recently they asked if I could help them with a donated Surface Pro (Windows 11) they were 'locked out' of. I haven't worked in the IT biz for a decade, but decided to give it a try. I don't have the machine with me now, but am hoping to ask for some suggestions I can try out tomorrow (albeit with apologies if I don't always get the current terminology right). To make matters more personally complicated, the charity is actually going to interview me for an paid job with them next week, which I hope to get. Even though it's not an IT job, I'm a bit nervous to be the candidate that tried to fix their Surface and failed!

Basically the machine was donated by a major national company, and the charity used it for several months. But one day their password stopped working, and it seems to have something to do with the machine still being on an Autopilot policy from the company that donated it. My first instinct was to reset Windows 11, which I did. In the OOBE installer, things proceed as normal until a login page with the old company logo icon on it (suggesting Autopilot is still there). On the login page, it actually seems to let me insert the email address of the old Microsoft account the charity 'think' they used to use with it (and with any password, too). But then on the next screen, it hangs on "Please wait while we set up your device" for hours. I've tried it several times now, with the longest being for 4 hours. After troubleshooting many of the possibilities that might be causing the installer to hang, the only likely remaining option is that things are failing to sync up with Autopilot - which is apparently a common problem.

Running on this theory, I've been given the green light to go ahead and remove Autopilot (since they don't need it) in order to get the Surface working again. Here are some of the things I've been trying and my thoughts and questions so far:

  1. First, I'm aware that there are a number of potential paths to removing Autopilot from within the Windows 11 desktop environment itself. However, these seemingly remain inaccessible as long as I can't get past the installer, even temporarily.
  2. A common suggestion is to use the oobe\bypassnro command in order to restart the OOBE and apparently gain an option to install Windows 11 in offline mode. From there, I could at least get into the desktop and perhaps work on other methods to disable Autopilot. This command doesn't seem to work, however (and I'm making sure to do it on the Autopilot login screen, and making sure to use the correct slash \). Although the command is processed and the machine immediately restarts, there is no option to install with a local account. I'm finding a lot of conflicting information online about whether this command still works, or whether it has been deprecated.
  3. I've prepared a Windows 11 Installer USB, but am saving that for a last resort. I'm aware it doesn't come with the Surface-specific drivers etc, and I really have no idea how to set those up after the fact (I've never even used a Surface before now). I'm aware that there is a Surface-specific recovery image available from Microsoft here, but it requires logging in with a Microsoft account and I'm not sure which Microsoft account they are expecting (?) I could log in with my own personal Microsoft account I guess, but I don't want this Surface to end up becoming 'attached' to that account; it belongs to the charity, not me. I've also heard that I'll eventually need to select the Surface model and/or serial number as part of the process, and I have no idea what those are. I am slotted at the charity tomorrow and can find out, but there is no other computer there for me to make the USB recovery disk on. If I prepared such a USB recovery disk, it would have to be on my home PC today.
  4. I've read about another command that might work where oobe\bypassnro didn't, and that is start ms-cxh:localonly. I can't find out today of course, but is that something worth trying?
  5. Is there anything else worth trying (aside from that) when it comes to simply getting Windows 11 installed and getting into the desktop?
  6. If I get that far, what other grief can I expect from Autopilot? Can I get away with just using the machine from that point? If it will continue to cause problems, what would be the best path to take from within the desktop to get rid of Autopilot for good?

Thanks for any help you can offer!