Powershell Command Syntax
In this lab, you will learn how PowerShell cmdlets follow the Verb-Noun naming convention and how to interpret command syntax.
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 lab, you will learn how PowerShell cmdlets follow the Verb-Noun naming convention and how to interpret command syntax.
- Login with username
ladminand passwordpassword123 - Open Windows PowerShell as an Administrator.
- Display the syntax for the
Get-Servicecmdlet:
Powershell
- Display examples for the
Get-Servicecmdlet:
Powershell
- Display all commands that use the Get verb:
Powershell
- Display all commands that use the Service noun:
Powershell
- Find all commands whose noun contains the word Process:
Powershell
- Find all commands whose noun contains the word Service:
Powershell
- Find all commands that begin with the letters Get-:
Powershell
- Find all commands that end with Item:
Powershell
- Display all services:
Powershell
- Display all services whose name begins with Win:
Powershell
- Display all services whose display name contains Windows:
Powershell
- Display the Windows Update service:
Powershell
- Display all running services:
Powershell
- Display the first five running processes:
Powershell
- Display all processes whose name begins with sv:
Powershell
- Display all commands available in the Microsoft.PowerShell.Management module:
Powershell
- Display detailed information about the
Get-Servicecmdlet:
Powershell
- Execute the following command to export your executed commands:
Powershell
- Click Check step to proceed.