Category Archives: Debugging

Simple WMI Trace Viewer in PowerShell

Run this script as local Administrator to start tracing WMI events. When you are done tracing hit ENTER to view the results. This does not display all WMI trace events, check the WMI Activity Trace event log in Windows Event … Continue reading

Posted in Debugging, PowerShell | Tagged | Leave a comment

Case of the Constant Google Chrome Crashes

Google chrome was constantly crashing on a Windows 7 device, even after disabling all extensions and running Chrome Cleanup Tool ( https://www.google.com/chrome/cleanup-tool/ ) Quick check of event logs using PowerShell pointed to a 3rd party module linked to crashes not … Continue reading

Posted in Debugging | Tagged | Leave a comment

Start ProcMon During Boot on Machine You Can’t Logon

Sometimes you might want to run some tracing tools like ProcMon, xperf, wpr, netsh trace, etc on a machine that logon is not completing properly. Often you might be able to use PowerShell remoting, WMI, or psexec to get these … Continue reading

Posted in Debugging, ProcMon, Windows Performance Recorder, Windows Performance Toolkit | Tagged | Leave a comment

Misleading PowerShell Exceptions–Example #1

In PowerShell 5.0 on Windows 10 was looking at a script with function not working: The exception thrown by Powershell was: You cannot call a method on a null-valued expression.At C:\Users\chentiangemalc\Documents\Scripts\Test.ps1:5 char:9+     if ([System.String]::IsNullOrWhiteSpace($condition))+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : InvalidOperation: (:) … Continue reading

Posted in Debugging, PowerShell | Tagged | Leave a comment

Case of the Win10 Windows Performance Recorder Trace That Wouldn’t Stop

Disk space kept rapidly disappearing on my C: drive… Using WinDirStat (https://windirstat.info/) it was evident majority was taken up by 40GB+ ETL files in my TEMP folder. Running wpr –status showed no traces running Searching registry with RegScanner ( http://www.nirsoft.net/utils/regscanner.htmlContinue reading

Posted in Debugging, Windows 10, Windows Performance Recorder | Tagged | 1 Comment

Case of the .NET Memory Leak via Gfx Driver on Windows 8

A .NET 4 application used to index scanned documents started to fail on Windows 8 Typically the recommendation for Not enough storage is available to process this command might involve: reduce the number of running programs; remove unwanted files from … Continue reading

Posted in .NET, C#, Debugging, Windows 8 | Tagged | Leave a comment

Case of the Invoked Hang (.NET)

A .NET application was hanging completely when certain background tasks were occurring. Using ProcDump (http://live.sysinternals.com/Procdump.exe ) with option Procdump –ma <process name> i captured a 3 dump files about 10 seconds apart, to identify where hang was occurring. Opening dmp … Continue reading

Posted in .NET, Debugging, IL, WinDbg | Tagged | 2 Comments