Skip to content

Instantly share code, notes, and snippets.

@HollisTech
HollisTech / getWudfHost.ps1
Created January 3, 2025 18:34
WUDF debugging: find your WudfHost process.
param(
[Parameter(Mandatory=$True,
ValueFromPipeline=$True,
Position = 0)]
[string]$moduleName
)
get-process -name WUDFHost | where-object { $_.Modules.Where({ $_.ModuleName -like $moduleName }) }
@HollisTech
HollisTech / debuggerHelpers.ps1
Created April 11, 2023 17:30
Windbg helpers for powershell
Function Get-KitRoot {
param(
[string]$altRoot="C:\Program Files (x86)\Windows Kits\10\"
)
try {
Get-ItemPropertyValue "HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots\" -Name "KitsRoot10"
}
catch {
if (Test-Path -Path $altRoot -PathType Container)
{
@HollisTech
HollisTech / top.ps1
Last active November 7, 2024 15:32
Linux Top for Windows - powershell
function top {
$formatNPM = @{
Label = "NPM(K)"
Alignment = "Right"
Width = 7
Expression = {[long]($_.NPM / 1024)}
}
$formatPM = @{
Label = "PM(M)"
Alignment = "Right"
@HollisTech
HollisTech / espdecode.ps1
Created December 18, 2019 16:12
espdecode: decode raw esp32 backtrace data from a log file. Requires PlatformIO.
<#
.SYNOPSIS
Decode raw esp32 backtraces in a log file.
Requires PlatformIO build environment.
.DESCRIPTION
Capture a log file with raw 'Backtrace:' data and pass it to this script.
The script filters the file, replacing the raw backtrace entries with decoded entries.
The filtered data is written to stdout.