Forum Discussion

Thomas_Toka's avatar
Thomas_Toka
Copper Contributor
Jul 03, 2020

/postoobe not working on setup.exe

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

  • gwblok's avatar
    gwblok
    Iron Contributor

    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-options#postoobe

    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.

     

     

    • Thomas_Toka's avatar
      Thomas_Toka
      Copper Contributor

      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.

       

       

    • Thomas_Toka's avatar
      Thomas_Toka
      Copper Contributor

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

Resources