This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[Parameter(Mandatory=$True, | |
ValueFromPipeline=$True, | |
Position = 0)] | |
[string]$moduleName | |
) | |
get-process -name WUDFHost | where-object { $_.Modules.Where({ $_.ModuleName -like $moduleName }) } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function top { | |
$formatNPM = @{ | |
Label = "NPM(K)" | |
Alignment = "Right" | |
Width = 7 | |
Expression = {[long]($_.NPM / 1024)} | |
} | |
$formatPM = @{ | |
Label = "PM(M)" | |
Alignment = "Right" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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. |