0

I'm trying to add some commands to a PE Windows that is booted from USB.

I found this: Windows PE autorun scripts, saying that the "autoexec.bat" equivalent can be found here:

\Windows\System32\startnet.cmd

When I add commands to startnet.cmd, they are however not executed.

I have also searched the Registry of this PE system, but it doesn't have any of the typical autorun entries either.

Also, there is no Startup folder, at least not at:

Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Are there other locations for autostart activity in a PE windows?

David.P
  • 119
  • 5

1 Answers1

0

OK so I found two more Autostart locations here:

  • winpeshl.ini in %windir%\System32 (this one starts the actual shell of the WinPE system)
  • Autounattend.xml in the drive's root
David.P
  • 119
  • 5