AIS
PowerShell & Windows Admin Script Library · v0.1.0

Clicking scales to one machine. Scripts scale to ten thousand.

18 tested PowerShell scripts for the work Windows admins actually do — health snapshots, service checks, disk thresholds, safe log cleanup, execution-policy reports, inventory, connectivity sweeps. Runs on Windows PowerShell 5.1 and PowerShell 7. No modules to install.

Companion to the daily PowerShell & Windows Admin series. One-time purchase — yours forever after checkout, new tiers added as the series covers them.

Watch free. Run instantly. Own forever.

01

Watch

The daily PowerShell & Windows Admin series on the AIS YouTube channel walks the reasoning behind each script, free.

02

Run

Unzip the library and run any script instantly on a stock Windows box: Windows PowerShell 5.1 or PowerShell 7+, no modules to install. Every script ships with its own Pester test file.

03

Own

Every script emits objects, so it pipes into your existing tooling. Copy the folders into your admin toolkit and keep them forever.

Which file do I run?

Each epNN-* folder is independent — no shared install step, no config. A script, its test, and a README, always the same shape.

  • · The script (e.g. Get-QuickHealth.ps1) does the real admin task and emits objects — pipe them to Sort-Object, Where-Object, Export-Csv, whatever your workflow needs.
  • · The test file (Get-QuickHealth.Tests.ps1) is the proof — Pester assertions that verify the output shape and the behavior on your machine. Pester 3.4 ships with Windows, so it runs with no install.

Run the script first to see it work. Run the test to see it hold. Read both, then copy the pattern into your own tools — the parameter blocks, the object shapes, and the safety rails are the part worth keeping.

What’s in the library

The Foundations tier: 18 scripts covering health, services, disks, discovery, safe cleanup, execution policy, profiles, inventory, error handling, and files as input/output — the everyday toolkit, done properly.

Every script is an advanced function with full comment-based help, typed parameters, and objects out — readable top to bottom in one sitting.

# no modules to install — Windows PowerShell 5.1 or PowerShell 7
cd .\ep01-why-powershell
.\Get-QuickHealth.ps1                        # run the script
Invoke-Pester .\Get-QuickHealth.Tests.ps1    # prove it works on YOUR machine

# read it, then copy what you need into your own tools
01

Quick health snapshot

One command: hostname, OS version, uptime, disk free, and pending-reboot state — the "is this box okay?" answer.

ep01-why-powershell/Get-QuickHealth.ps1

02

Critical service check

Check a defined list of critical services and flag any that are not running.

ep02-running-commands/Get-ServiceStatus.ps1

03

Top processes for trending

Top memory and CPU consumers, stamped with machine name and time so you can trend across runs.

ep03-object-pipeline/Get-TopProcesses.ps1

04

Cmdlet finder

Search every installed module for cmdlets matching a keyword and print each synopsis.

ep04-discovery-tools/Find-AdminCmdlet.ps1

05

Disk threshold warning

Warn when free space drops below a typed GB or percent threshold, per volume.

ep05-variables-and-types/Test-DiskThreshold.ps1

06

OK / WARN / CRIT verdicts

Turns disk, uptime, and service data into explicit verdicts through readable threshold logic.

ep06-comparison-operators/Get-HealthVerdict.ps1

07

The morning check

Services set to Automatic that are not running — the classic first look of the day.

ep07-filter-select-sort/Get-StoppedAutoServices.ps1

08

Table and CSV from one dataset

A clean on-screen table AND a clean CSV export from the same objects — data is not display.

ep08-formatting-vs-data/Get-DiskSpaceReport.ps1

09

Folder size report

Every top-level folder under a path as name, file count, and total size — sorted largest first.

ep09-foreach-loops/Get-FolderSizeReport.ps1

10

Settings audit

Registry values, environment variables, and certificate expiry dates: actual vs expected, one report.

ep10-providers-drives/Get-SettingsAudit.ps1

11

Safe log cleanup

Age-based log cleanup that previews by default and deletes only with an explicit -Execute switch.

ep11-whatif-confirm/Remove-OldLogs.ps1

12

Execution policy report

Effective policy plus every scope, with drift flagged — for one machine or a list.

ep12-execution-policy/Get-ExecutionPolicyReport.ps1

13

Team profile deploy

Deploy a standard profile to the correct path, backing up any existing one first.

ep13-profiles-customization/Install-AdminProfile.ps1

14

System inventory

OS, hardware, and installed-update inventory written to CSV — a first full script done right.

ep14-first-script/Get-SystemInventory.ps1

15

Parameterized service health

[ValidateSet] service groups, a mandatory output path, CSV results — param blocks that make a script a tool.

ep15-param-blocks/Get-ServiceHealth.ps1

16

Connectivity sweep

Sweep a server list with a real per-host timeout, log failures without stopping, emit a success/fail summary.

ep16-error-handling-basics/Test-ServerConnectivity.ps1

17

Patch status from a list

Read machines from CSV, report installed updates per host, export a JSON summary.

ep17-csv-json-files/Get-PatchStatusFromList.ps1

18

Server audit (capstone)

A small function library auditing disks, services, and uptime with CSV/JSON output — built to extend fleet-wide.

ep18-simple-functions/Invoke-ServerAudit.ps1

Where it sits

Copy-paste snippets from forums

  • · Untested on your version of PowerShell
  • · Print text instead of objects — dead end for the pipeline
  • · No safety rails: one typo deletes the wrong logs

PowerShell & Windows Admin Script Library

$49 · one-time
  • · 18 admin scripts, implemented + Pester-tested
  • · Runs on Windows PowerShell 5.1 AND PowerShell 7 — no modules to install
  • · Objects out of every script — pipe, sort, export
  • · Destructive scripts preview by default (-WhatIf built in)

Enterprise automation suites

  • · Licensing per node, agents to deploy
  • · Abstractions you do not control
  • · The scripting is still on you underneath

Get the library

$49 · one-time, no subscription

Buy — $49 →
  • All 18 Foundations scripts, implemented + tested
  • Windows PowerShell 5.1 and PowerShell 7+ · no modules to install
  • Comment-based help on every script — Get-Help just works
  • Safe by default — anything destructive supports -WhatIf
  • Grows with the series — later tiers added free
  • Email support at [email protected]