Hi Jacob,
I'm attempting this at the minute. I don't need my implementation to do as much as yours does! Just need to automate getting oobe sorted as simply as possible.
Do you have some pointers that might help me?
Thank you in advance.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Thanks for stopping by, I've searched the corners of the internet but haven't gotten anywhere.
To provision devices for my organization, we must manually run PowerShell commands using SHIFT + F10 in the Windows 11 OOBE as we have multiple methods, one of which being legacy. I'm sure there are better methods but I'm unfortunately working within these limitations. So far, to automate the imaging process, I've created an autounattend.xml which makes WinPE completely silent and some pages of the OOBE also.
Recently, I combined all the PowerShell commands we had been running prior into a script that, after running repeated checks for a network connection, prompts users with a GUI and effectively automates everything we had been doing manually before:
I need to make this run when the OOBE Sysprep starts, but I really need some help.
To reiterate, I need a way to automatically run a script when the OOBE Sysprep starts. Furthermore, I need it to run every time the OOBE is launched as sometimes, we have to manually reboot if something glitches or goes wrong so the script will need to run again when the OOBE is resumed.
I know this is a tough one due to the limitations, but this will make the device rollout significantly easier.
Thanks,
Jake
Hi Jacob,
I'm attempting this at the minute. I don't need my implementation to do as much as yours does! Just need to automate getting oobe sorted as simply as possible.
Do you have some pointers that might help me?
Thank you in advance.
Hey everyone, I found the answer around August last year so I'm sorry for the delayed response. You can get scripts to run during the OOBE using Logon scripts in gpedit (Local Machine Group Policy), you can programmatically create them with PowerShell. They will open behind the OOBE interface, so it is best to use a program like NirCMD to hide the process Window.
Let’s check my solution here: https://akosbakos.ch/osdcloud-9-oobe-challenges/
Hello
Thank you for your question and reaching out.
I can understand you need to run PowerShell script during OOBE or WinPE.
Please note that there is no Native method from Microsoft that you can run PowerShell script directly in Recovery or OOBE mode as it requires some dependencies.
However you can use third party tools like OSDCloud to achieve this.
--If the reply is helpful, please Upvote and Accept as answer--