Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Set-Alias

Set-Alias - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Creates or changes an alias (alternate name) for a cmdlet or other command element in the current Windows PowerShell session.

Set-Alias [-Name] <String> [-Value] <String> [-Description <String>] [-Force] [-Option <ScopedItemOptions>] [-PassThru]
 [-Scope <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

The Set-Alias cmdlet creates or changes an alias (alternate name) for a cmdlet or for a command element, such as a func
tion, a script, a file, or other executable. You can also use Set-Alias to reassign a current alias to a new command, o
r to change any of the properties of an alias, such as its description. Unless you add the alias to the Windows PowerSh
ell profile, the changes to an alias are lost when you exit the session or close Windows PowerShell.