How To Query APNIC WHOIS With Powershell

I’m finding myself frequently needing to query APNIC for IP WHOIS data, and while I tend to always have a PowerShell prompt (or 17) open, I rarely have the APNIC site handy, so I thew together a little function that sits in my which hits the APNIC search endpoint and returns the…

PowerShell Sleep Duration Accuracy and Windows Timers

I’ve previously written about different methods of pausing PowerShell script execution but it’s spread over several unrelated posts and it was never the core topic being covered so I wanted to put it all together into a single place. You may want to ‘sleep’ or ‘suspend’ a script…

Analyzing Thread CPU Utilization with ProcessExplorer, PowerShell, and WMI

In a previous post we examined ways to get per core CPU performance data using PowerShell and WMI, and there was a question that we mostly glossed over - how do we know when a thread is CPU bound? A simple but unreliable method was to look at the CPU usage of a process, and if…

Scripting SQL Server Management Studio (SSMS) Installation

Very short post today. I found myself deploying SQL Server Management Studio (SSMS) to a number of systems and quickly got over clickety-clacking my way through it, so here is a PowerShell one liner to do just that. It always installs the latest version, and even cleans up after…

Analyzing CPU Usage With Powershell, WMI, and Excel

I recently needed to cobble together quick and dirty CPU monitoring to tackle an issue, and not being a huge fan of perfmon I decided to use PowerShell to pull the data and write it to a CSV file that I could analyze with PowerShell and Excel. This has the advantage of being…

Getting Started With Terraform And The Active Directory Provider

A couple of days ago HashiCorp announced their Active Directory provider for Terraform. Having used Terraform in the past this immediately piqued my interest and this post will be an exploration of what the provider can do. One of the things I’m excited about is the ability to…

Overriding Ping To Allow Pasting From The Chrome Address Bar With PowerShell

Frankly, I wasn’t sure whether to make a post about this or not, on one hand it’s utterly trivial, but on the other hand it fixes something that has bugged me for years and is probably annoying others. Seeing as it’s Friday after work and I’m still caffeinated, we’re pressing on…

Using NordVPN Proxies With Powershell Invoke-WebRequest

I recently found out my NordVPN subscription provides proxies in addition to the normal VPN functionality. This can be incredibly useful as it means we don’t need to route all of our traffic through the VPN, rather we can configure an application, browser, or in this case, a…