Search the Community
Showing results for tags 'cmtrace'.
Hello, I am trying to deploy CMTrace as part of the TS (SCCM 2012 SP1, no MDT integration) and also set it as default log viewer. This is my powershell script: $RelativePath = (split-path $SCRIPT:MyInvocation.MyCommand.Path -parent)+"\" Copy-Item -Path $RelativePath"CMTrace.exe" -Destination "c:\temp\" -Force xcopy "c:\temp\CMtrace.exe" "c:\windows\System32" /y xcopy "c:\temp\CMtrace.exe" "c:\windows\SYSWOW64" /y $CMtraceKey = "HKCU:\SOFTWARE\Microsoft\Trace32" Set-ItemProperty -Path $CMtraceKey -Name "Register File Types" -Value 00000000 $Parameters = "assoc .log=logfile"
Just tested this thing and I'm kind of thrilled.. so I wanted to deploy cmtrace as an CM12 application, I did it with the quick-and-dirty method. So, I created a new application, and for the deployment type I checked script and the actual install program was as follows xcopy.exe ".\*.*" "%windir%\system32" /D /E /C /I /Q /H /R /Y /S And the uninstall program was as follows del.exe %windir%\system32\cmtrace.exe Detection method was of course checking the presence of cmtrace in %windir%\system32. The niceness about this is, that now I can simply run cmtrace on any computer in the