Import-Alias - PowerShell


 

Imports an alias list from a file. (Import-Alias)

   

# NAME
Import-Alias

# SYNOPSIS
Imports an alias list from a file.

# SYNTAX
Import-Alias [-Path] <string> [-Force] [-PassThru] [-Scope <string>] [-Confirm] [-WhatIf] [<CommonParameters>]

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

# PARAMETERS
-Force [<SwitchParameter>]
Allows the cmdlet to import an alias that is already defined and is read only. You can use the following command to display information about the currently-defined aliases:

get-alias | select-object name,Options
The value of the Options property will include "ReadOnly" if the corresponding alias is read only.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-PassThru [<SwitchParameter>]
Returns an object representing the alias. By default, this cmdlet does not generate any output.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Path <string>
Specifies the path to a file that includes exported alias information. Wildcards are allowed but they must resolve to a single name.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Scope <string>
Specifies the scope into which the aliases are imported. 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 information, see about_Scopes.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm [<SwitchParameter>]
Prompts you for confirmation before executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf [<SwitchParameter>]
Describes what would happen if you executed the command without actually executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

# INPUTS
System.String
You can pipe a string that contains a path to Import-Alias.

# OUTPUTS
None or System.Management.Automation.AliasInfo
When you use the Passthru parameter, Import-Alias returns a System.Management.Automation.AliasInfo object that represents the alias. Otherwise, this cmdlet does not generate any output.

# NOTES

# EXAMPLE 1

C:\PS>import-alias test.txt

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

RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkID=113339
Export-Alias
Get-Alias
New-Alias
Set-Alias

C:\Windows>powershell get-help Import-LocalizedData -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows 10, 8.1, 8, 7, Vista / Windows Server 2016, 2012, 2008
»»»» ColorConsole








Windows-10





Windows-10

... facebook.de
... Windows-10 FAQ
... Windows-10 Info


Become a Sponsor
... Your button here?





PowerShell: Imports an alias list from a file.

HTTP: ... PS_Windows/en/Import-Alias.htm
0.187
9868

WIA, or TWAIN scanner interface support on Windows!

 /

In Windows-10 Doppelt-Tipp-Zeit bei Touch Screens ändern?

 /

Meine externe USB Festplatte funktioniert am USB HUB nicht, warum?

 /

Close Hanging Programs, Apps and Processes on Windows! 

 /

See more of your Wallpaper on the Windows Desktop and Server OS!

 /

Windows 8.1/10: The file associations on Metro applications are frustrating!

 /

Start the programs in compatibility mode  on Windows 8.1 / 10, can I?

 /

Automatischen Ausblenden von Desktop Icons für Windows OS!

 /

Screensaver to display, pictures folder in windows 8.1 / 10?

 /

Windows Web Server 2008 direct download links (free trial versions)!

 /

How to Change Column Settings in for the Explorer Views in Quad Explorer?

 /

How can i sign up, register, log in on Facebook.com?

 /