Tags: alias powershell ctf cross-platform 

Rating: 5.0

TL;DR ANSWER: `Get-Alias | Remove-Alias -Force`

-----

### COMMANDS INFO:
 
 

This one was by far one of the easiest Powershell challenge. However, not everybody knows Powershell which is why this one may be a difficult challenge for a few people. The most important thing to know is that you will have to use powershell and google for this challenge.

There are things, in Powershell, called cmdlets (or "commandlets"). We will be using three cmdlets for this challenge:

`Get-Alias` : [https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-alias?view=powershell-7.2](http://)

- *`Get-Alias`* Gets the aliases for the current session.

![](https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fvroamam.com%2Fwordpress%2Fwp-content%2Fuploads%2F2021%2F06%2Fimage-4-768x488.png&f=1&nofb=1http://)

`Remove-Alias` : [https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/remove-alias?view=powershell-7.2](http://)

- *`Remove-Alias`* Remove an alias from the current session.

-----

# STEP BY STEP
 
 

PART 1:

The first part of this command is getting all of the aliases for the current session: `Get-Alias`. After that, you are going to want to **pipe** `|` the output of the `Get-Alias` command into the `Remove-Alias` command. The `-Force` forces the removal of the aliases

COMMAND COMPLETION:

`Get-Alias | Remove-Alias -Force`

MORE INFO about the parameters and use cases of each command are specified in the websites above the "STEP BY STEP" area.

-----

## END COMMAND:

### `Get-Alias | Remove-Alias -Force`