Course
PowerShell Automation
PowerShell for ops that survive contact with production: pipeline objects instead of text parsing, WinRM remoting without double-hop surprises, scheduled tasks that report themselves, and the credential and module discipline that keeps automation off the incident channel.
Keep reading
Related articles from the SudoSecurity blog.
A Fake GTA 6 ISO Didn’t Install a Game. It Installed a Wiper.
A fake GTA 6 ISO used a believable installer error to cover remote-access malware, browser-data theft, and destructive file wiping. The “License not found” message wasn’t the crack failing. It was there so the victim would stop looking.
BlueHammer: The Unpatched Windows Zero-Day That Weaponizes Microsoft Defender Against Your Own System
BlueHammer is an unpatched, publicly released Windows local privilege escalation exploit that chains Microsoft Defender's update workflow, Volume Shadow Copy, Cloud Files callbacks, and opportunistic locks to reach NT AUTHORITY\SYSTEM from a standard user account.
Running a Minecraft Network: Four JVMs, One Box, and the Settings That Lie to You
Four servers on one host means four JVMs each sizing its thread pools for a machine it does not own. The measured cost of that, the systemd ordering that guarantees nothing, and the throttle that switches itself back on when your forwarding breaks.
Building a Minecraft Network: Four Servers Pretending to Be One Place
A proxy, a lobby, an SMP and a PvP arena is four JVMs that know nothing about each other. What actually has to be shared, why your permissions don't follow players, and the two LuckPerms defaults that silently share nothing at all.
Reviews
Enrolled members can rate this course.
No reviews yet.
Objects, Not Text
The pipeline passes .NET objects, and everything about filtering, formatting, and error handling follows from that.
- 01The Pipeline Moves ObjectsPowerShell's pipeline binds .NET objects to parameters by value and property name — text parsing never happens unless you force it.14mOpen
- 02The Display Layer LiesDefault console views show a projection of each object, and Format-* cmdlets emit dead formatting records that destroy downstream pipelines.13mOpen
- 03Filter Left, Shape RightPush predicates to the data source with -Filter parameters, then shape what arrived with Where-Object, Select-Object, and Group-Object.14mOpen
- 04Errors Are Objects TooErrorRecords travel a separate stream, try/catch only sees terminating errors, and native commands report through $LASTEXITCODE.13mOpen
Remoting and the Two Editions
WinRM remoting, session design, the serialization boundary, and the powershell.exe vs pwsh.exe split.
- 01WinRM Is the SSH You Already HavePSRemoting rides WinRM on TCP 5985/5986 with Kerberos-or-NTLM auth, and the double-hop problem is Kerberos working as designed.16mOpen
- 02Sessions, Fan-Out, and the Serialization TaxObjects crossing the remoting boundary arrive as method-less CLIXML corpses, so actions must run inside remote scriptblocks.15mOpen
- 03Two Editions, One Boxpowershell.exe is frozen 5.1, pwsh.exe is current 7.x, and execution policy was never a security boundary.14mOpen
Automation That Survives Reboots
Scheduled tasks that run unattended: principals, exit codes, structured logging, and idempotent change.
- 01Scheduled Automation That Actually RunsRegister-ScheduledTask builds unattended jobs from action, trigger, principal, and settings — and a gMSA is the identity that never expires.17mOpen
- 02Scripts That Report ThemselvesHeadless automation needs JSONL logs, stream discipline, event log entries, and exit codes — not console noise.15mOpen
- 03-WhatIf, Idempotency, and the Blast RadiusShouldProcess makes dry-runs real, idempotency makes retries safe, and there is no transaction or undo.15mOpen
Production Discipline
Module supply chains, credential storage, and the small mistakes that take systems down.
- 01Module Discipline and the GalleryPSGallery is unvetted public infrastructure: stage, review, pin versions, and serve production from a private feed.15mOpen
- 02Secrets Without PlaintextExport-CliXml binds credentials to user and machine via DPAPI, gMSA removes stored passwords entirely, and JEA shrinks what accounts can do.16mOpen
- 03What Actually Takes Down ProductionThe -eq filter trap, iex injection, junction traversal, encoding rewrites, and the tasks that ran the wrong binary.14mOpen