Automate repeatable tasks with PowerShell
8 steps · about 4 h 5 min · Intermediate
- Start in the PowerShell console (guide, Microsoft Learn, 30 min)
Confirm the shell, command structure and built-in discovery tools before scripting.
- Use the help system (guide, Microsoft Learn, 30 min)
Find syntax and examples locally instead of guessing parameters.
- Inspect pipeline objects (guide, Microsoft Learn, 35 min)
Treat command output as structured objects with properties and methods.
- Compose a pipeline (guide, Microsoft Learn, 35 min)
Filter, select and sort results while preserving their structure.
- Store intermediate values (reference, Microsoft Learn, 25 min)
Name paths, settings and results so a script remains readable and adaptable.
- Add guarded decisions (reference, Microsoft Learn, 25 min)
Run an action only when its preconditions are true.
- Process a collection (reference, Microsoft Learn, 25 min)
Apply one clear operation to each selected object.
- Package and test the automation (reference, Microsoft Learn, 40 min)
Turn the working pipeline into a parameterised function and test it on a safe sample folder.