OSD CMTrace

If you would like to always run CMTrace on an OSD sequence so you can troubleshoot quicker then use this.

We need to map a drive on the network so we add a run command line with
net use Z: \\eu-sccm\Storage\OSD_CMTrace_x64 /user:RED\Administrator Pa$$w0rd1

We need to have a bat file with commands and then a registry to import so we don’t always get asked about choosing cmtrace as a default program

Create a run command line

 

Create a batch script as below
copy Z:\*.* x:\sms\bin\x64
reg import x:\sms\bin\x64\default.reg
start /min x:\sms\bin\x64\cmtrace.exe x:\windows\temp\smstslog\smsts.log

Create a registry as below
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Log.File\shell\open\command]
@=”\”x:\\sms\\bin\\x64\\CMTrace.exe\” \”%1\””

[HKEY_CURRENT_USER\Software\Microsoft\Trace32]
“ColumnState”=”4”
“MRU0″=”x:\\windows\\temp\\smstslog\\smsts.log”

[HKEY_USERS\.DEFAULT\Software\Classes\.log]
@=”Log.File”
[HKEY_USERS\.DEFAULT\Software\Classes\.lo_]
@=”Log.File”

[HKEY_USERS\.DEFAULT\Software\Microsoft\Trace32]
“Register File Types”=”1”
“Update Interval”=”500”
“Maximize”=”1”
“HighlightText”=””
“HighlightCaseSensitive”=”No”

[HKEY_USERS\S-1-5-18\Software\Classes]
[HKEY_USERS\S-1-5-18\Software\Classes\.log]
@=”Log.File”
[HKEY_USERS\S-1-5-18\Software\Classes\.lo_]
@=”Log.File”

[HKEY_USERS\S-1-5-18\Software\Microsoft\Trace32]
“Register File Types”=”1”
“Update Interval”=”500”
“Maximize”=”1”
“HighlightText”=””
“HighlightCaseSensitive”=”No”

 

Now every time you run an OSD Sequence you always get cmtrace minimised on the bottom so you can easily open and troubleshoot