PRG900 Scripting with PowerShell — Presentation as Code
- PowerShell 98.1%
- C# 1.9%
|
All checks were successful
Build and Release PDFs / build (push) Successful in 39s
Remoting (07): fleet slides + demos for targeting, changing, rolling-restart, audit, tier install, and saved credentials (demo09-14). IIS (10): provision-from-config and config backup/restore (demo08-09) plus recycle/restart/triage slides. SQL (12): admin/catalog queries, SqlBulkCopy, fleet query, DB backup/restore, Excel export (demo08-12) plus practical slides on real CourseShop data. Lab tooling: Add-MemberServers.ps1 (web01/app01 WinRM fan-out) and Demo-TomcatFleet.ps1 (Podman Tomcat). documents/powershell-ops-cheatsheet.md as a fallback reference. All demos verified against the live lab; slides lint clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| .vscode | ||
| archive | ||
| articles | ||
| books | ||
| build | ||
| demos | ||
| docs | ||
| documents | ||
| extra | ||
| lab | ||
| solutions | ||
| src | ||
| .gitattributes | ||
| .gitignore | ||
| countries_example | ||
| README.md | ||
PowerShell Scripting Courseware
Welcome to the Scripting with PowerShell course (PRG900). This repository contains the demonstrations, exercises, solutions, and reference materials for the three-day training.
Repository Structure
Course Documents
PRG900-PowerShell-Scripting.pdf: The course slide deck (attached to the latest release).PRG900-PowerShell-Scripting-Exercises.pdf: The exercise workbook with step-by-step assignments (attached to the latest release).
Code & Demos
demos/: One runnable.ps1per slide topic, organized per module. The slides reference each demo with a footer pill such as`demo03 · select-object`.solutions/: Runnable.ps1reference solutions, one file per exercise, organized per module. Use these to check your work or if you need a hint.extra/: A large collection of real-world PowerShell scripts (from the Windows PowerShell Cookbook) for further exploration.
Learning Materials
articles/: Informative articles on PowerShell topics.books/: Recommended reference books (PDF) for deeper study.
Getting Started
Prerequisites
- Windows 10/11 with administrator rights (several modules enable or configure Windows features).
- PowerShell 7+:
winget install Microsoft.PowerShell, or download from https://learn.microsoft.com/powershell/scripting/install/installing-powershell. - Editor: We recommend Visual Studio Code with the PowerShell extension.
Appendix modules (optional)
The IIS, Active Directory, and SQL appendices are only needed when the class covers them:
- SQL and Databases: install a local SQL Server, either
winget install Microsoft.SQLServer.2022.Express(creates a.\SQLEXPRESSinstance), or SQL Server 2022 Express with the LocalDB option (lightweight(localdb)\MSSQLLocalDB). The helperdemos/12-sql-databases/sql-lab-setup.ps1auto-detects whichever is present. TheInvoke-Sqlcmddemos also need the SqlServer module:Install-Module SqlServer -Scope CurrentUser. - Active Directory needs the RSAT AD tools and a domain to query (see
lab/README.md).
The language modules also run on Linux/macOS, but the service, CIM, remoting, IIS, Active Directory, and SQL content requires Windows.
Verify your setup by running $PSVersionTable in a pwsh terminal — you should see
version 7.x.