Add alias


Applies To: Windows Server 2008

Adds aliases to the alias environment. If used without parameters, add alias displays help at the command prompt.

For examples of how to use this command, see Examples.

Syntax


Copy Code

add alias <AliasName> <AliasValue>

Parameters

Parameter

Description

<AliasName>

Specifies the name of the alias.

<AliasValue>

Specifies the value of the alias.

/?

Displays help at the command prompt.

Remarks

Examples

To list all shadows, including their aliases, type:


Copy Code

list shadows all

The following excerpt shows a shadow copy to which the default alias, VSS_SHADOW_x, has been assigned:


Copy Code

* Shadow Copy ID = {ff47165a-1946-4a0c-b7f4-80f46a309278}
%VSS_SHADOW_1%

To assign a new alias with the name System1 to this shadow copy, type:


Copy Code

add alias System1 %VSS_SHADOW_1%

Alternatively, you can assign the alias by using the shadow copy ID:


Copy Code

add alias System1 {ff47165a-1946-4a0c-b7f4-80f46a309278}

Additional references

Command-Line Syntax Key