Learning Hub › PowerShell 8 + 1 Hours

PowerShell 8 + 1 Hour Interactive Crash Course

For Senior Cloud Engineers · Engine and Pipeline → Language Essentials → Advanced Functions → Modules and Cross-Platform → Errors and Safe Change → Remoting and Parallelism → Cloud and API Automation → Testing, Debugging and Release → Production Issues and Interviews (optional) · 8 lessons × 1 hour + 1 optional lesson, running through the OpsKit module
PowerShell 7.6 LTSPester 6PSScriptAnalyzerPSResourceGetRunning project: OpsKitVerified 2026-11-24
Learning path: ← Git 8 hours ① How PowerShell Works: Objects, Commands and the Pipeline ② Language Essentials: Types, Operators, Collections and Control Flow ③ Functions, Scope and Advanced Functions ④ Modules, Packages, Providers and Cross-Platform Environments ⑤ Robust Scripts: Errors, Streams and Safe Change ⑥ Remoting, Jobs and Parallel Administration ⑦ Cloud and API Automation: REST, Az, AWS.Tools and Secrets ⑧ Testing, Debugging, Quality and Release ⑨ 50 Production Issues + 50 Interview Questions (optional) Next course: Docker 8 Hours →

9 lessons

Hour 1How PowerShell Works: Objects, Commands and the PipelineWhat PowerShell is: engine, hosts, editions and startup; Commands: cmdlets, functions, aliases, scripts and native programs; Discovery: Get-Command, Get-Help and syntax diagrams; Objects, Get-Member and the formatting system; The pipeline: streaming and parameter binding; Filtering and shaping: Where, Select, Sort, Group, Measure; Parsing modes, quoting, escaping and wildcards; Your first script: .ps1, param(), execution policy and exit codesPowerShell 7.6 · Get-Member · Trace-Command
Hour 2Language Essentials: Types, Operators, Collections and Control FlowVariables and the type system: casting, type accelerators, $null, automatic variables; Operators: comparison and case, arrays on the left, -like / -match, -contains / -in, -f; Strings and regular expressions: $Matches, named groups, -replace, -split / -join; Collections: arrays, List[T], hashtables, [ordered], member enumeration; Conditionals: if / elseif / else and switch (-Regex, -Wildcard, -File); Loops: foreach vs ForEach-Object, for, while, do, break / continue pitfalls; Structured data: JSON (-Depth), CSV, PSD1 and XML; Practice: an access-log analyzer that turns text into objectsTypes · -match · hashtables · switch · JSON
Hour 3Functions, Scope and Advanced FunctionsFunctions: definition, parameters and output semantics; Scope: local, script, global, private and dot-sourcing; Advanced functions: [CmdletBinding()], common parameters and $PSCmdlet; Parameters: types, Mandatory, Position, switches and parameter sets; Validation and completion: Validate* attributes and argument completers; Pipeline input: ValueFromPipeline(ByPropertyName) and begin / process / end; Output and help: [OutputType], PSTypeName, comment-based help and splatting; OpsKit v0.1: Get-OpsServer, Get-OpsConfig and Test-OpsEndpoint[CmdletBinding()] · validation · pipeline input
Hour 4Modules, Packages, Providers and Cross-Platform EnvironmentsModules: kinds, PSModulePath, auto-loading and #Requires -Modules; Building a script module: .psm1, Public / Private and module scope; Manifests: New-ModuleManifest, exports, RequiredModules and versions; PSResourceGet: find, install, update and save; version ranges and trust; Repositories and publishing: local and private feeds, reproducible installs; Providers and drives: FileSystem, Env, Registry, Cert, Variable, Function; Cross-platform: paths, case, encodings, line endings and environment variables; OpsKit v0.2: a packaged module published to a local repositorypsm1 / psd1 · PSResourceGet · providers
Hour 5Robust Scripts: Errors, Streams and Safe ChangeThe error model: terminating vs non-terminating, $Error and ErrorRecord; -ErrorAction, try / catch / finally, typed catch, throw vs Write-Error; Native commands: $LASTEXITCODE and $PSNativeCommandUseErrorActionPreference; The six streams, redirection and preference variables; Strict mode and defensive coding; Safe change: SupportsShouldProcess, -WhatIf / -Confirm and idempotency; Retries, timeouts and structured logging; OpsKit v0.3: Invoke-OpsBackup with rotation, -WhatIf, retries and logstry/catch · streams · -WhatIf · retries
Hour 6Remoting, Jobs and Parallel AdministrationRemoting architecture: WinRM vs SSH, sessions and serialization; Invoke-Command: fan-out, -ThrottleLimit, $using: and per-computer errors; Sessions: New-PSSession, Enter-PSSession, reuse and file copy; SSH-based remoting across Windows, Linux and macOS; Jobs: Start-Job, Start-ThreadJob, Receive-Job and job states; Parallelism: ForEach-Object -Parallel, thread safety and throttling; Security and scheduling: credentials, double hop, JEA, Task Scheduler and cron; OpsKit v0.4: Invoke-OpsHealthCheck in parallel across the inventoryInvoke-Command · SSH remoting · -Parallel
Hour 7Cloud and API Automation: REST, Az, AWS.Tools and SecretsInvoke-RestMethod vs Invoke-WebRequest: JSON to objects, headers and status codes; Real APIs: pagination, retries, rate limits and timeouts; Authentication and secrets: tokens, SecretManagement and SecretStore; Az PowerShell: sign-in methods, contexts and read-only queries; AWS.Tools: modular install, profiles, regions and queries; Idempotent cloud changes: get-then-set, tags and ShouldProcess; Cloud data processing: shaping JSON, Resource Graph and reports; OpsKit v0.5: Invoke-OpsApi and Get-OpsCloudInventoryInvoke-RestMethod · Az · AWS.Tools · SecretManagement
Hour 8Testing, Debugging, Quality and ReleaseDebugging: breakpoints, the VS Code debugger, Set-PSDebug and Wait-Debugger; Static analysis: PSScriptAnalyzer rules, settings, suppression and formatting; Pester basics: Describe / Context / It, Should-* assertions and TestDrive; Mocking and test design: Mock, Should -Invoke, InModuleScope; Coverage and CI output: code coverage and test result files; Performance: Measure-Command, collection building and pipeline cost; Security and release: signing, SemVer, changelog and a GitHub Actions workflow; OpsKit v1.0: tests, analysis, CI and releasePester 6 · PSScriptAnalyzer · CI · signing
Hour 9 · Optional50 Production Issues + 50 Interview QuestionsA · Pipeline, objects and parsing (issues 1–12); A · Language, data and text (13–25); A · Errors, remoting and concurrency (26–38); A · Modules, cloud, CI and security (39–50); B · Engine and fundamentals (interview 1–13); B · Tool-making and data (14–25); B · Robustness, testing and debugging (26–38); B · Real-world scenarios and code review (39–50)PowerShell 7.6

The progress bars on the cards show each lesson's learning progress saved in this browser (hidden if the browser blocks local storage). This course is written in English, which is its original version.

Full outline and time allocation (8 × 1 hour + optional Hour 9)

Lesson / ModuleTimeTopic
Hour 1 · How PowerShell Works: Objects, Commands and the Pipeline (Open)
1-0Pre-classEnvironment setup (PowerShell 7.6, VS Code and ~/pslab)
1-100–06What PowerShell is: engine, hosts, editions and startup
1-206–13Commands: cmdlets, functions, aliases, scripts and native programs
1-313–21Discovery: Get-Command, Get-Help and syntax diagrams
1-421–28Objects, Get-Member and the formatting system
1-528–35The pipeline: streaming and parameter binding
1-635–42Filtering and shaping: Where, Select, Sort, Group, Measure
1-742–50Parsing modes, quoting, escaping and wildcards
1-850–60Your first script: .ps1, param(), execution policy and exit codes
Hour 2 · Language Essentials: Types, Operators, Collections and Control Flow (Open)
2-0Pre-classBridge and warm-up (sample dataset, Lesson 1 recap)
2-100–06Variables and the type system: casting, type accelerators, $null, automatic variables
2-206–13Operators: comparison and case, arrays on the left, -like / -match, -contains / -in, -f
2-313–21Strings and regular expressions: $Matches, named groups, -replace, -split / -join
2-421–28Collections: arrays, List[T], hashtables, [ordered], member enumeration
2-528–35Conditionals: if / elseif / else and switch (-Regex, -Wildcard, -File)
2-635–42Loops: foreach vs ForEach-Object, for, while, do, break / continue pitfalls
2-742–50Structured data: JSON (-Depth), CSV, PSD1 and XML
2-850–60Practice: an access-log analyzer that turns text into objects
Hour 3 · Functions, Scope and Advanced Functions (Open)
3-0Pre-classPrep: the OpsKit project skeleton
3-100–06Functions: definition, parameters and output semantics
3-206–13Scope: local, script, global, private and dot-sourcing
3-313–21Advanced functions: [CmdletBinding()], common parameters and $PSCmdlet
3-421–28Parameters: types, Mandatory, Position, switches and parameter sets
3-528–35Validation and completion: Validate* attributes and argument completers
3-635–42Pipeline input: ValueFromPipeline(ByPropertyName) and begin / process / end
3-742–50Output and help: [OutputType], PSTypeName, comment-based help and splatting
3-850–60OpsKit v0.1: Get-OpsServer, Get-OpsConfig and Test-OpsEndpoint
Hour 4 · Modules, Packages, Providers and Cross-Platform Environments (Open)
4-0Pre-classPrep: a local package repository folder
4-100–06Modules: kinds, PSModulePath, auto-loading and #Requires -Modules
4-206–13Building a script module: .psm1, Public / Private and module scope
4-313–21Manifests: New-ModuleManifest, exports, RequiredModules and versions
4-421–28PSResourceGet: find, install, update and save; version ranges and trust
4-528–35Repositories and publishing: local and private feeds, reproducible installs
4-635–42Providers and drives: FileSystem, Env, Registry, Cert, Variable, Function
4-742–50Cross-platform: paths, case, encodings, line endings and environment variables
4-850–60OpsKit v0.2: a packaged module published to a local repository
Hour 5 · Robust Scripts: Errors, Streams and Safe Change (Open)
5-0Pre-classPrep: failure scenario scripts
5-100–06The error model: terminating vs non-terminating, $Error and ErrorRecord
5-206–13-ErrorAction, try / catch / finally, typed catch, throw vs Write-Error
5-313–21Native commands: $LASTEXITCODE and $PSNativeCommandUseErrorActionPreference
5-421–28The six streams, redirection and preference variables
5-528–35Strict mode and defensive coding
5-635–42Safe change: SupportsShouldProcess, -WhatIf / -Confirm and idempotency
5-742–50Retries, timeouts and structured logging
5-850–60OpsKit v0.3: Invoke-OpsBackup with rotation, -WhatIf, retries and logs
Hour 6 · Remoting, Jobs and Parallel Administration (Open)
6-0Pre-classPrep: remoting lab targets (localhost, SSH, containers)
6-100–06Remoting architecture: WinRM vs SSH, sessions and serialization
6-206–13Invoke-Command: fan-out, -ThrottleLimit, $using: and per-computer errors
6-313–21Sessions: New-PSSession, Enter-PSSession, reuse and file copy
6-421–28SSH-based remoting across Windows, Linux and macOS
6-528–35Jobs: Start-Job, Start-ThreadJob, Receive-Job and job states
6-635–42Parallelism: ForEach-Object -Parallel, thread safety and throttling
6-742–50Security and scheduling: credentials, double hop, JEA, Task Scheduler and cron
6-850–60OpsKit v0.4: Invoke-OpsHealthCheck in parallel across the inventory
Hour 7 · Cloud and API Automation: REST, Az, AWS.Tools and Secrets (Open)
7-0Pre-classPrep: a local mock API and optional cloud accounts
7-100–06Invoke-RestMethod vs Invoke-WebRequest: JSON to objects, headers and status codes
7-206–13Real APIs: pagination, retries, rate limits and timeouts
7-313–21Authentication and secrets: tokens, SecretManagement and SecretStore
7-421–28Az PowerShell: sign-in methods, contexts and read-only queries
7-528–35AWS.Tools: modular install, profiles, regions and queries
7-635–42Idempotent cloud changes: get-then-set, tags and ShouldProcess
7-742–50Cloud data processing: shaping JSON, Resource Graph and reports
7-850–60OpsKit v0.5: Invoke-OpsApi and Get-OpsCloudInventory
Hour 8 · Testing, Debugging, Quality and Release (Open)
8-0Pre-classPrep: Pester 6, PSScriptAnalyzer and the VS Code debugger
8-100–06Debugging: breakpoints, the VS Code debugger, Set-PSDebug and Wait-Debugger
8-206–13Static analysis: PSScriptAnalyzer rules, settings, suppression and formatting
8-313–21Pester basics: Describe / Context / It, Should-* assertions and TestDrive
8-421–28Mocking and test design: Mock, Should -Invoke, InModuleScope
8-528–35Coverage and CI output: code coverage and test result files
8-635–42Performance: Measure-Command, collection building and pipeline cost
8-742–50Security and release: signing, SemVer, changelog and a GitHub Actions workflow
8-850–60OpsKit v1.0: tests, analysis, CI and release
Hour 9 (optional) · 50 Production Issues + 50 Interview Questions (Open)
9-0Pre-classInstructions and failure lab environment
9-100–08A · Pipeline, objects and parsing (issues 1–12)
9-208–16A · Language, data and text (13–25)
9-316–24A · Errors, remoting and concurrency (26–38)
9-424–30A · Modules, cloud, CI and security (39–50)
9-530–37B · Engine and fundamentals (interview 1–13)
9-637–44B · Tool-making and data (14–25)
9-744–52B · Robustness, testing and debugging (26–38)
9-852–60B · Real-world scenarios and code review (39–50)

Pages for each module

Hours 1–8: principles (What / Why / How / When) · diagrams · animations · commands · labs · production cases · troubleshooting · quizzes · narration · videos. Hour 9: the production-issues part has overview · issue details · diagrams · animations · reproduction labs · quiz · narration · video; the interview part has overview · interview question details · diagrams · mock interview · scenario questions · quiz · narration · video. Each lesson ends with a cheat sheet, an integrated lab, a final quiz, and sources and version notes.

Lab environment

Animations and narration: Animations are implemented with inline SVG and JavaScript and play offline; the narration pages use the browser's built-in Web Speech API (en-US) to read the lecture script aloud.
Limitations: Outputs labeled “Actual output” were produced on PowerShell 7.6.10 on Windows; outputs labeled “Expected output” were not run step by step, and the IDs, times and version numbers in them are sample values. Linux and macOS differences come from the official documentation. The authoring environment cannot produce videos or MP3 files, so the video pages list only verified public videos with storyboard scripts; details that could not be verified are noted on each lesson's “Sources and version notes” page.