Contact Info

Crumbtrail » Administration » Powershell » Powershell 1.0 » Import-Alias

Import-Alias - Powershell 1.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 »


Import an alias list from a file

Import-Alias [-path] string [-passThru] [-scope string]
         [-force] [-whatIf] [-confirm] [CommonParameters]

-Path path
        The path to the item {may be piped}
        Wildcards are allowed but they must resolve to a single name.

        Pass the object created by Import-Alias through the pipeline.

   -scope string
       The scope to apply to the imported aliases.
       Valid values are "Global", "Local", or "Script", or a number relative
       to the current scope ( 0 through the number of scopes, where 0 is the
       current scope and 1 is its parent). "Local" is the default.
       For more, type "get-help about_scope".

       Allows importing/overwriting an alias that is already defined and has
       the read-only option set. For currently-defined aliases see:
         get-alias | select-object name,Options

       Describe what would happen if you executed the command without actually
       executing the command.

       Prompt for confirmation before executing the command.

       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.

Import alias info from SS64.txt:

PS C:\>import-alias SS64.txt