PowerShell Tutorial: 48 Free Hands-On Labs
PowerShell has 48 free hands-on labs on this site: 5 beginner, 34 intermediate and 9 advanced. The most common subjects are Active Directory assessment (11), Detection engineering (6) and Purple team: Windows Discovery and Persistence (6), and the labs have you practise things like working from the position of a normal domain user. A typical lab takes about 60 minutes, and the list starts with the easiest, Build a Windows purple-team bench. They sit mostly in SOC Analyst / Blue Team and Penetration Testing / Red Team.
First 24 of 48 labs, easiest first
- Build a Windows purple-team bench: Sysmon, Invoke-AtomicRedTeam, an export script and a clean checkpoint on a VM you own (Windows Purple 1 of 6)
- Catch ATT&CK T1082 System Information Discovery on Windows with a Sysmon rule and measure the noise (Windows Purple 2 of 6)
- See what any ordinary domain user can read, with built-in tools only
- Your first PowerShell for defenders: inspect a Windows host
- Your first Windows log hunt: spot password spraying, new admins and obfuscated PowerShell with DeepBlueCLI
- Audit Active Directory passwords with DSInternals before an attacker cracks them
- Audit Kerberos delegation in your lab domain and remove what is not needed
- Audit service accounts: SPNs, password age and encryption types, then migrate one to a gMSA
- Audit SMB signing, LDAP signing and channel binding, then enforce them and re-test
- Catch ATT&CK T1053.005 Scheduled Task persistence on Windows with Sysmon, tune out the backup job, and prove cleanup (Windows Purple 6 of 6)
- Catch ATT&CK T1087.001 Local Account Discovery on Windows (net user, net localgroup) and keep the rule narrow (Windows Purple 3 of 6)
- Catch ATT&CK T1547.001 Run key and Startup folder persistence on Windows with Sysmon, then clean up and prove it is gone (Windows Purple 5 of 6)
- Correlate Windows discovery commands (T1082, T1087.001, T1016, T1049) into one alert and write the purple report (Windows Purple 4 of 6)
- Deploy Windows LAPS and prove every machine's local admin password is unique
- Detect AS-REP roasting from Kerberos Event 4768 (and find the accounts that invite it)
- Detect BITS job abuse (T1197) from the BITS-Client event log
- Detect lateral tool transfer from Detailed File Share auditing (Event 5145)
- Detect malicious PowerShell on your own Windows machine
- Detect malicious PowerShell with Script Block Logging (Event ID 4104)
- Detect Microsoft Defender tampering from its own Operational log (5001, 5007, 5013)
- Detect Office apps spawning suspicious child processes from Sysmon Event ID 1
- Detect privileged group changes in Windows logs
- Detect scheduled-task persistence in Windows event logs
- Detect service-installation persistence with Event ID 7045 (the PsExec/new-service signal)
Cheat sheets
Tool documentation
Career roles
Certifications
Interview preparation
Lab catalog
Related topics
- Free SOC Analyst / Blue Team Labs: 155 Hands-On
- Sigma Tutorial: 12 Free Hands-On Labs
- Nmap Tutorial: 32 Free Hands-On Labs
Related
- Build a Windows purple-team bench: Sysmon, Invoke-AtomicRedTeam, an export script and a clean checkpoint on a VM you own (Windows Purple 1 of 6)
- Catch ATT&CK T1082 System Information Discovery on Windows with a Sysmon rule and measure the noise (Windows Purple 2 of 6)
- See what any ordinary domain user can read, with built-in tools only
- Your first PowerShell for defenders: inspect a Windows host
- Your first Windows log hunt: spot password spraying, new admins and obfuscated PowerShell with DeepBlueCLI
- Audit Active Directory passwords with DSInternals before an attacker cracks them
- Audit Kerberos delegation in your lab domain and remove what is not needed
- Audit service accounts: SPNs, password age and encryption types, then migrate one to a gMSA
- Audit SMB signing, LDAP signing and channel binding, then enforce them and re-test
- Catch ATT&CK T1053.005 Scheduled Task persistence on Windows with Sysmon, tune out the backup job, and prove cleanup (Windows Purple 6 of 6)
- Catch ATT&CK T1087.001 Local Account Discovery on Windows (net user, net localgroup) and keep the rule narrow (Windows Purple 3 of 6)
- Catch ATT&CK T1547.001 Run key and Startup folder persistence on Windows with Sysmon, then clean up and prove it is gone (Windows Purple 5 of 6)
- Correlate Windows discovery commands (T1082, T1087.001, T1016, T1049) into one alert and write the purple report (Windows Purple 4 of 6)
- Deploy Windows LAPS and prove every machine's local admin password is unique
- Detect AS-REP roasting from Kerberos Event 4768 (and find the accounts that invite it)
- Detect BITS job abuse (T1197) from the BITS-Client event log
- Detect lateral tool transfer from Detailed File Share auditing (Event 5145)
- Detect malicious PowerShell on your own Windows machine
- Detect malicious PowerShell with Script Block Logging (Event ID 4104)
- Detect Microsoft Defender tampering from its own Operational log (5001, 5007, 5013)
- Detect Office apps spawning suspicious child processes from Sysmon Event ID 1
- Detect privileged group changes in Windows logs
- Detect scheduled-task persistence in Windows event logs
- Detect service-installation persistence with Event ID 7045 (the PsExec/new-service signal)
- Free SOC Analyst / Blue Team Labs: 155 Hands-On
- Sigma Tutorial: 12 Free Hands-On Labs
- Nmap Tutorial: 32 Free Hands-On Labs
- PowerShell cheat sheet
- PowerShell official documentation
- Career map: 10 SOC Analyst / Blue Team roles and what they ask for
- Blue Team certifications and free study routes (6 listed)
- SOC Analyst / Blue Team interview preparation
- All PowerShell labs with filters
- Plain-English glossary
- Free cyber labs