Really interesting script came by recently on Spiceworks, written in vbScript. As you know I like to take these scripts and see what I can do with them in Powershell with a special eye towards shortening it! This script, Disable User Account from Text file, was written by stubar and is a really well done script. I don’t want to take anything away from that. But with Powershell we can do the same thing, and often do more with less code. Here’s what I came up with.
I’m always on the look out for new PowerShell projects. Doesn’t much matter if they’re little projects–like this one–or big ones–like The DFS Monitor With History. This is why I’m always on the Spiceworks IT Programming forums and PowerGui.org’s forums.
Today I ran across a little script someone was writing in batch and I decided to write it in PowerShell for a couple of reasons. I had not really played with the Read-Host functionality yet and I wanted to play with the built-in documentation functionality of PowerShell which I discovered while on vacation. Yes, I read PowerShell stuff while on vacation, it’s a weakness (so far I’ve been able to hold off on the PowerShell reference app for the iPad, but not sure how much longer)!!