Recovering scripts from the ScriptBlock cache

Have you ever accidentally overwritten a powershell script on disk? Didn't have a versioned copy in source control? Let's see if PowerShell can help us recover »

Essential Interfaces: IDisposable

Ever wondered how to correctly wrap IDisposable types in PowerShell classes? Here's a couple of hints! »

openssl s_client ... but in PowerShell?

One of my favorite SSL/TLS troubleshooting tools is the openssl s_client CLI context - but what if I want to pull peer certificate information from a client that »

Admin Account Schema Extensions for AD

Want to keep track of AD admin accounts without breaking separation of concerns? Look no further! »

Inspecting .NET assemblies with dnlib

Ever wondered what's in a .NET assembly dll? Don't want to load it into the current AppDomain or litter the Global Assembly Cache? Let's »

Tracing as a Service with SilkETW, pt I

The ETW (Event Tracing for Windows) subsystem is a veritable gold mine of operational and diagnostic telemetry, but most of the data it produces is sort of a pain to »

Schrödinger's -ArgumentList

Last night on my way home I was feeling slightly mischievous, and so I dropped a #PowerShell brain teaser into the PowerShell Slack/Discord bridge, with a challenge - let& »

Advent of PowerShell 2018, pt II

Advent of Code is a fun christmas serial consisting of 50 small programming challenges. Let's solve them using PowerShell! In this post we'll cover the 2 »

Advent of PowerShell 2018, pt I

Advent of Code is a fun christmas serial consisting of 50 small programming challenges. Let's solve them using PowerShell! In this post we'll cover the 2 »

From the archive: Toggle-CapsLock - a PowerShell cmdlet you'll probably never need!

Sometimes you need to shout things out really loud, and on the internet, the medium of choice for shouting is ALL CAPITAL LETTERS - can we enable caps lock from »