Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Set-Alias

Set-Alias - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.

Set-Alias


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

Syntax
Set-Alias [-Name] <string> [-Value] <string> [-Description <string>] [-Force] [-Option {None | ReadOnly | Constant 
| Private | AllScope}] [-PassThru] [-Scope <string>] [-Confirm] [-WhatIf] [<CommonParameters>]

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