WinPE auto scripts -
i have set bootable ufd winpe 3.0, , need run couple of scripts automatically on boot.
i wondering if had advice on setting automatic scripts listing partitions on local drive, showing date of system, listing current ip, , capturing image of local drive.
if can great! thanks.
build scripts independently , test functionality prior placing them inside of winpe. mount winpe can edit , place of scripts in winpe
mounting command:
dism /mount-wim /wimfile:c:..[dir of wine located]\iso\sources\boot.wim /index:1 /mountdir:mount
then place scripts inside of folder inside mount folder (which should have stuff inside of it). once completed, can call them modifying ..\windows\system32\startnet.cmd file.
note: do not remove first line wpeinit. add after it: start <scriptname.bat or .vbs>
save , close.
keep in mind: if doing scripts inside of winpe handles nic, need insert network drivers winpe. once winpe loads, automatically calls startnet.cmd first.
some tutorials can located here.
Comments
Post a Comment