Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Export-Console

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

Export-Console

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

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





Description
The Export-Console cmdlet exports the names of the Windows PowerShell snap-ins in the current session to a Windows Powe
rShell 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 command li
ne by using Cmd.exe or another Windows PowerShell session, and then use the PSConsoleFile parameter of Powershell.exe t
o specify the console file.


For more information about Windows PowerShell snap-ins, see about_PSSnapins.