What tools do you recomend for your Litetouch Boot.wim?

Recently, someone asked the question of what tools you like to include in your LiteTouchPE_x86.wim and LiteTouchPE_x64.wim file(s). Of course in a perfect world you would never need to escape out to the command prompt (F8) in WinPE for debugging, but it’s nice to have a couple of tools around to help out with the common debug actions.

While I worked for Microsoft’s own IT department, I added the following commands to the standardized WinPE images for debugging

CMTrace.exe (Trace32.exe) – of course. This tool is found along with ConfigMgr.

Litetouch.cmd – Used to restart the LiteTouch process from scratch if there was an error.

 @cscript.exe //nologo   %SystemDrive%\deploy\scripts\litetouch.wsf && wpeutil reboot

bddlog.cmd – Used to auto launch any bdd.log files, didn’t use it that much.

@if exist c:\MININT\SMSOSD\OSDLOGS\BDD.log   trace32 c:\MININT\SMSOSD\OSDLOGS\BDD.log & goto :EOF
@if exist   X:\MININT\SMSOSD\OSDLOGS\BDD.log trace32 x:\MININT\SMSOSD\OSDLOGS\BDD.log   & goto :EOF

reboot.cmd – Force a reboot

 wpeutil.exe reboot

shutdown.cmd – Force a shutdown

 wpeutil.exe shutdown

Sabotage.cmd – Given that the machine may be in an unknown (bad?) state, delete everything and reboot.

@if not defined debug echo off
@echo  This script will   SABOTAGE the main hard disk and reboot the machine.
if exist c:\minint rd /s /q   c:\Minint
if exist d:\minint rd /s /q   d:\Minint
if exist e:\minint rd /s /q   e:\Minint
if exist c:\_SMSTaskSequence   rd /s /q c:\_SMSTaskSequence
@echo List Disk
@echo Select Disk 0
@echo List Partition
@echo Select Partition 1
@echo Inactive
@echo Select Partition 2
@echo Inactive
@echo Exit
) | diskpart.exe
WPEUtil.exe reboot
shutdown.exe -s -f -t 0

Additionally, several other people have recommended DART, along with the excellent remote debugging tools.


One thought on “What tools do you recomend for your Litetouch Boot.wim?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s