Level 1
0 / 100 XP

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.

  1. Login with username ladmin and password password123
  2. Open Windows PowerShell as an Administrator.
  3. Update the local PowerShell help files:
Powershell
Update-Help
  1. Display help information for the Get-Process cmdlet:
Powershell
Get-Help Get-Process
  1. Display only the examples for the Get-Process cmdlet:
Powershell
Get-Help Get-Process -Examples
  1. Display the full help documentation:
Powershell
Get-Help Get-Process -Full
  1. Find all cmdlets that use the Process noun:
Powershell
Get-Command -Noun Process
  1. Find all cmdlets that use the Get verb:
Powershell
Get-Command -Verb Get
  1. Search for commands related to services:
Powershell
Get-Command *Service*
  1. Display detailed information about the Get-Service cmdlet:
Powershell
Get-Command Get-Service | Format-List *
  1. Display the syntax for the Get-Service cmdlet:
Powershell
Get-Help Get-Service -Syntax
  1. Display the Print Spooler service:
Powershell
Get-Service Spooler
  1. Stop the Print Spooler service:
Powershell
Stop-Service -Name Spooler
  1. Verify that the service has stopped:
Powershell
Get-Service Spooler
  1. Export a list of all services to a CSV file in the Downloads folder:
Powershell
Get-Service | Export-Csv "$env:USERPROFILE\Downloads\Services.csv" -NoTypeInformation
  1. Verify that the CSV file was created:
Powershell
Test-Path "$env:USERPROFILE\Downloads\Services.csv"
  1. Click Check step to proceed