Member-only story
PowerShell is an essential tool for any security professional. This walkthrough will guide you through key tasks from the TryHackMe Windows PowerShell room, diving into PowerShell’s command structure, system navigation, and file manipulation. Let’s tackle each task step-by-step and discover some hidden treasures along the way.
Task 2: What Is PowerShell?
PowerShell, unlike traditional command-line tools, is built using object-oriented principles. This advanced approach allows for powerful automation by treating everything as an object.
Q: What do we call the advanced approach used to develop PowerShell?
A: Object-oriented
Task 3: PowerShell Basics
PowerShell’s strength lies in its extensive library of cmdlets, each performing specific tasks. Let’s dive into some basic commands to see it in action.
Q: How would you retrieve a list of commands that start with the verb “Remove”?
A: Get-Command -Name Remove*
Q: What cmdlet has its traditional counterpart echo as an alias?
A: Write-Output
Q: What is the command to retrieve some example usage for the cmdlet New-LocalUser?
A…