Disable windows 11 force to create and login online account #447
|
Hi , i would like a little help. Thanks a lot |
Replies: 1 comment 1 reply
|
It is there, just not under a heading with "Microsoft account" in it — it lives in the user accounts section, which is probably why you scrolled past it. There are three account modes in the generator, and two of them solve your problem in different ways. If you pick the interactive local account option, the generated answer file gets this into the <HideOnlineAccountScreens>true</HideOnlineAccountScreens>That is the supported Windows setting for exactly this — OOBE stops presenting the online-account screens and lets you create a local one. You can see it applied in if (settings is InteractiveLocalAccountSettings)
{
Document.SelectSingleNodeOrThrow("\u:HideOnlineAccountScreens", NamespaceManager).InnerText = "true";
}The stronger option, if you would rather not be asked anything at all, is the unattended accounts mode: define your username and password in the generator and the account is created from the answer file, so OOBE never reaches the account screens in the first place. That is the one I would use for a setup you plan to repeat. Worth knowing about a third setting so you do not confuse it with these: there is a separate "bypass network check" option, and it does something different — it writes a registry value rather than an answer-file setting: if (Configuration.BypassNetworkCheck)
{
SpecializeScript.Append(@"reg.exe add ""HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE"" /v BypassNRO /t REG_DWORD /d 1 /f;");
}
On the second half of your question, the nagging that shows up later rather than during installation: I could not find a setting in this generator that targets that. The answer file governs setup, so post-install prompts to add a Microsoft account are a separate surface and would need handling on the installed system. |
It is there, just not under a heading with "Microsoft account" in it — it lives in the user accounts section, which is probably why you scrolled past it.
There are three account modes in the generator, and two of them solve your problem in different ways.
If you pick the interactive local account option, the generated answer file gets this into the
oobeSystempass:That is the supported Windows setting for exactly this — OOBE stops presenting the online-account screens and lets you create a local one. You can see it applied in
modifier/Users.cs: