Finding Performance Bottlenecks with PowerShell
summary
Demonstrates how to use Get-Counter to locate the top 10 performance counters Microsoft recommends, build a reusable query tool, and automate checks with Pester. Shows concrete gotchas: Get-Counter’s mangled, nested output and deserialized job/Invoke-Command results, continuous cannot combine with -MaxSamples, remote slash-count differences, percent‑free disk and disk transfer values needing parsing or decimal casting, and exporting/importing baselines via BLG/CSV so you can reproduce and validate actual numbers.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 15:17Performance baselines in infrastructure
- 28:01Get-Counter output limits
- 48:33Bonus content preview
- 50:20Querying counters as jobs
- 1:05:57Pester for performance validation
- 1:21:47Exporting and analyzing counter data
- 1:31:46Summary
related talks
51mPowerShell Techniques and Performance Tweaks - Full Throttle
34mWhip Your Scripts into Shape: Optimizing PowerShell for Speed
43mParallel Execution with PowerShell
01h 02mThe performance loop—A practical guide to profiling and benchmarking
51mBeyond Arrays: PowerShell Collections for Speed & Scale
46mSupercharging PowerShell with LINQ
39mGet a Load of this - Realistic Load Testing for Power BI, explained!
44mPowerShell, Graphs, Topology and Real Use Cases
