Contact Info

Crumbtrail

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

Export-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.

Export-Alias


Short description
Exports information about currently defined aliases to a file.

Syntax
Export-Alias [-Path] <string> [[-Name] <string[]>] [-Append] [-As {Csv | Script}] [-Description <string>] [-Force] 
    [-NoClobber] [-PassThru] [-Scope <string>] [-Confirm] [-WhatIf] [<CommonParameters>]

Description
The Export-Alias cmdlet exports the aliases in the current session to a file.  If the output file does not exist, t
    he cmdlet will create it. 
    
    Export-Alias can export the aliases in a particular scope or all scopes, it can generate the data in CSV format or 
    as a series of Set-Alias commands that you can add to a session or to a Windows PowerShell profile.