Debugging WinRM

Some notes on my first attempts at doing details debugging and troubleshooting of WinRM

Useful Articles

Enable Tracing:

Set-ExecutionPolicy Unrestricted
Import-Module PSDiagnostics
Enable-PsWsmanCombinedTrace

Now run what command is giving grief Once that command produces your error, disable the trace:

Disable-PsWsmanCombinedTrace

Output the Log entries to a text file:

get-winevent -logname Microsoft-Windows-WinRM/Operational | fl >> C:\winrm_log.txt
get-winevent -path $pshome\traces\pstrace.etl -oldest | fl >> C:\winrm2_log.txt

Review the log and hopefully find some answers

comments powered by Disqus