Miciuleinen
-
Posts
2 -
Joined
-
Last visited
Posts posted by Miciuleinen
-
-
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"
cmd.exe /c $ParametersThe xcopy commands do not work for some reason, and smsts log doesn't show me anything.
Can somebody advise on why the copy commands do not work and how can I apply the HKCU key properly ?
Thanks
- 1
CMTrace set as default LOG viewer during OSD
in Deploying Windows 10, Windows 8.1, Windows 7 and more...
Posted
I have found a partial solution. For copying I needed to use sysnative instead of system32, to avoid folder redirection.
Also with the help from this blog I have found how to properly set file association.
One more thing missing, how to set the HKCU reg key properly, because now cmtrace asks if it is default viewer every time it gets opened.
Thanks