Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Export-Alias

Export-Alias - Powershell 3.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 »


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

Export-Alias [-Path] <String> [[-Name] <String[]>] [-Append] [-As <ExportAliasFormat>] [-Description <String>] [-Force]
 [-NoClobber] [-PassThru] [-Scope <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
Export-Alias [[-Name] <String[]>] [-Append] [-As <ExportAliasFormat>] [-Description <String>] [-Force] [-NoClobber] [-P
assThru] [-Scope <String>] -LiteralPath <String> [-Confirm] [-WhatIf] [<CommonParameters>]

The Export-Alias cmdlet exports the aliases in the current session to a file.  If the output file does not exist, the c
mdlet 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.