Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Export-Console

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


Short description
Exports the names of snap-ins in the current session to a console file.

Export-Console [[-Path] <string>] [-Force] [-NoClobber] [-Confirm] [-WhatIf] [<CommonParameters>]

The Export-Console cmdlet exports the names of the Windows PowerShell snap-ins in the current session to a Windows 
    PowerShell console file (.psc1). You can use this cmdlet to save the snap-ins for use in future sessions.
    To add the snap-ins in the .psc1 console file to a session, start Windows PowerShell (Powershell.exe) at the comman
    d line by using Cmd.exe or another Windows PowerShell session, and then use the PSConsoleFile parameter of Powershe
    ll.exe to specify the console file. 
    For more information about Windows PowerShell snap-ins, see about_PSSnapins.