Useful scripts
Ready-to-run scripts for IT pros. Read and test before you run anything.
- Field notes
Field note: auto-disabling inactive AD accounts, and why the first run was report-only
An audit wanted inactive accounts disabled automatically. The first dry run flagged 65 accounts, including a domain trust account and a pile of VPN accounts that were rarely used but very much needed.
- Useful scripts
Field note: a nightly export broke after a file share move, and error 1202 was why
A scheduled script that exported accounting data to a mapped drive stopped working after the office's file shares moved. The cause was a stale remembered drive mapping, and the first fix made it worse.
- Active Directory
Windows LAPS: a unique local admin password on every PC, built into Windows
Stop using the same local administrator password everywhere. Windows LAPS rotates it automatically and stores it in Active Directory, and it's already built into Windows.
- Useful scripts
Everyday Active Directory PowerShell commands (read-only)
Copy-and-paste PowerShell commands for the Active Directory questions that come up every week, from locked-out users to stale accounts and domain controller health. Nothing here changes anything.
- Useful scripts
One console command to see how many IPs your Switchvox is blocking
A single read-only command you can paste into Chrome's console to count your Switchvox blocked IP list, and what the number tells you.
- Useful scripts
Clearing a Switchvox blocked IP list from Chrome's console
A step-by-step way to export and clear thousands of Switchvox blocked IPs through the built-in API, without clicking through the list one row at a time.