I'm trying to instruct my image of WinPE to directly execute a script when it finishes loading. How can I do that? Do I have to modify Winpeshl.ini
or Startnet.cmd
or Unattend.xml
? I have tried all of them with no result, so any help is appreciated. Thank you very much.
Edit
Thank you all for your answers. Just to clarify I have a couple of questions more. How would startnet.cmd
look like? If I've understood well, it should be something like (now following mh great advices):
wpeinit
cd <path>
echo Type <my_own_script> and press RETURN to begin installation.
or something like:
wpeinit –unattend=<path>\unattend.xml
As a side question, how can I make my_own_script.cmd
to be executed with unattend.xml
?