/postoobe not working on setup.exe

Copper Contributor

Hi,

i am trying to start a Windows Setup with a /postoobe x:\script.bat as parameter.
For example:
works:
Z:\setup.exe /AddBootMgrLast /noreboot /unattend:X:\autounattend.xml

works not:
Z:\setup.exe /AddBootMgrLast /noreboot /postoobe "x:\finish.bat" /unattend:X:\autounattend.xml

It does not work and says /postoobe is not allowed.
If i do "setup.exe /?" i see /postoobe among the variables it supports.

Was here something changed in the last years?

Thanks.
Thomas

5 Replies

@Thomas_Toka Probably the script must be named setupcomplete.cmd (or sppecify a folder path that contain it)

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-setup-command-line-opt...

 

X: is not physical path, it's only used during WinPE stage

@abbodi1406i already tried nameing it setupcomplete.cmd.. did not work.. but i did not try to put it in a subfolder.. will try.

nope no chance. still the same. not working.

@Thomas_Toka 

 

If you're starting the Setup from WinPE, that option isn't available:

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-setup-command-line-opt...

See Applicability

 

If you're deploying an Image (vs running setup), you can slip in a SetupComplete.cmd File into the c:\Windows\Setup\Scripts folder, and the Setup Engine will run that for you.  However, is you're kicking off the setup engine manually from WinPE.. you'd have to come up with something creative to trigger that file.

 

 

@gwblok 

 

Thanks for the information.

Meanwhile i fixed this with some creative scripting with powershell to make my final "installation ready, reboot" webrequest to our deployment server.

 

Good to know that this is the preferred way inside winpe.