PowerShell Logo Small

Import-Alias



This is the built-in help made by Microsoft for the command 'Import-Alias', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Imports an alias list from a file.

SYNTAX


Import-Alias [-Path] <String> [-Force] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable [<System.String>]]
[-PassThru] [-Scope [<String>]] [-Confirm] [-WhatIf] [<CommonParameters>]
Import-Alias [-Force] [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable [<System.String>]] [-PassThru] [-Scope
[<String>]] -LiteralPath <String> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Import-Alias cmdlet imports an alias list from a file.


Beginning in Windows PowerShell 3.0, as a security feature, Import-Alias does not overwrite existing aliases by default. To overwrite an existing alias, after assuring that
the contents of the alias file is safe, use the Force parameter.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=293981
Export-Alias
Get-Alias
New-Alias
Set-Alias

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

PS C:\>import-alias test.txt



This command imports alias information from a file named test.txt.