Getting Help and Finding Commands
In this lab, you will learn how to use the built-in PowerShell help system to discover commands, understand their usage, and retrieve detailed documentation.
Session duration: 30 minutes· Typical launch: ~3 min
Difficulty
Beginner
Lab level
Lab VMs
1
1 Windows
XP Reward
150 XP
On completion
Virtual machines
Lab VMs
Windows
SADC01
Windows
Username / Password
user / password123
Connection type
In-browser RDP / RDP
CPU / RAM
—
Lab instructions
Follow the steps below to complete the lab.
In this task, you will learn how to discover PowerShell cmdlets and use the built-in help system to view command syntax, examples, and detailed documentation.
- Login with username
ladminand passwordpassword123 - Open Windows PowerShell as an Administrator.
- Update the local PowerShell help files:
Powershell
- Display help information for the Get-Process cmdlet:
Powershell
- Display only the examples for the Get-Process cmdlet:
Powershell
- Display the full help documentation:
Powershell
- Find all cmdlets that use the Process noun:
Powershell
- Find all cmdlets that use the Get verb:
Powershell
- Search for commands related to services:
Powershell
- Display detailed information about the Get-Service cmdlet:
Powershell
- Display the syntax for the Get-Service cmdlet:
Powershell
- Display the Print Spooler service:
Powershell
- Stop the Print Spooler service:
Powershell
- Verify that the service has stopped:
Powershell
- Export a list of all services to a CSV file in the Downloads folder:
Powershell
- Verify that the CSV file was created:
Powershell
- Click Check step to proceed