Start free

Browse › Getting Started with PowerShell

Use Variables and Arrays in Windows PowerShell

Advanced

Part of Getting Started with PowerShell Topic: General Cyber Security

Access

StationX Infrastructure Labs — 3 attempts per lab

🔒 Add StationX Infrastructure Labs — $149 / year · 3 attempts per lab

Already have access? Sign in.

New to this? Try a free practice lab — a scripted hacking challenge in your browser, no account needed.

What you'll do

In this lab, you will use variable and arrays.

  1. Manage an array of processes at the PowerShell console
  2. Manage an array of services with a script
  3. Use preference variables to support script debugging

Note: Once you begin the lab, you will not be able to pause, save, or return to your lab. Please ensure that you have set aside enough time to complete the lab before you start.

  • ⏱ About 45 minutes

Roadmaps that use this lab