Tags: alias powershell ctf cross-platform
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`* Gets the aliases for the current session.
`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
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
`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`