Multiple choice technology

Which command is used to create an alias in PowerShell?

  1. Get-alias

  2. Set-alias

  3. Create-alias

  4. Remove-alias

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The Set-Alias cmdlet in PowerShell is used to create or change an alias. Get-Alias retrieves existing aliases, Remove-Alias deletes an alias, and there is no Create-Alias cmdlet in PowerShell. The correct syntax is Set-Alias -Name -Value .