-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bypass of online Microsoft account creation is ignored if none of SB/TPM or RAM/Disk bypasses are selected #1981
Comments
Yup, confirmed that if you don't have a This looks like a bug from the Microsoft installer, because as it parses
Thus the documentation seems to allude that if the unattend file has no windowsPE pass, it will not be cached (which is utterly illogical, but at least Microsoft are kind of documenting the idiotic behaviour of their software). Now, if WinPE had something like being able to execute a command on shutdown/reboot or post apply image, we could still try to work around the present situation by duplicating our file to |
Finally, I think I have a workaround, but sheesh, the lengths one needs to go through just to get Windows Setup parse an answer file. And yes, this will be the 3rd (4th?) solution I implement for what should be a simple straightfroward task. The trick is to use This means that if we copy our unattend file to And now off to adding more cumbersome logic to decided whether we need to create an |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
First of all: "Ah Microsoft, for crying out loud!!!"
Second: This is NOT a bug from Rufus (such as us forgetting to add a section in the
unattend.xml
), but a result from a stupid-ass decision from Microsoft not to run anything from thespecialize
pass of an unattend file during initial setup unless there exists awindowsPE
pass.This means that, if you have something like:
Then the
reg
command from thespecialize
pass to add theBypassNRO
registry key will be applied.But if you have:
Then the
reg
command and everything inside yourspecialize
pass is ignored.As you may guess, in Rufus 3.19, the SB/TPM and RAM/Disk bypass are part of a
windowsPE
pass, and therefore that section does not get created if these options are unchecked which in turn, due to the issue above, preventsBypassNRO
from being applied, which in turn means that the option to bypass the online account creation gets completely ignored...This is not a new issue with Microsoft's unattend file, as other people have reported this exact problem some time ago. And the other problem is that if we decide to work around this issue by adding a bare minimum
windowsPE
section, then people will complain that the Setup screens are changed, and that the "Repair your PC" option is no longer offered to the user (#1971).And we can't just inject an
Autounattend.xml
in\Windows\Panther\
for the image that Windows Setup will apply either (like we do for Windows To Go, where we did validate that the MSA bypass did work regardless of whether there was awindowsPE
pass... since having awindowsPE
pass is completely irrelevant then), because we'd then have to mount about a dozeninstall.wim
images on account that, unlike what is the case for Windows To Go, we have no idea about the edition the user is going to select. There also doesn't appear to exist a way to have thewindowsPE
pass duplicate theAutounattend.xml
we inject at the root ofboot.wim
to the newly applied image, as Microsoft does not offer a post applyStartnet.cmd
equivalent...The way it currently looks, there's a good chance that we'll have to revert the workaround we applied for #1971 and have a
windowsPE
pass always (whilst losing the Repair your PC option always) whenever the user selects the option to bypass MSA...What a massive pain in the ass this inconsistent
unattend.xml
behaviour from Microsoft is turning out to be. And that's not even counting the other brain-dead changes they introduced in Windows 10 2004 where you are now forced a gunpoint to provide aProductKey
section in thewindowsPE
pass, even if it's just to provide a blank/invalid key...The text was updated successfully, but these errors were encountered: