Get-PSSnapin


Lists registered PSSnapIns.

Snap-In: Microsoft.PowerShell.Core

Syntax:

Get-PSSnapin [

 [-Name] <String[]>] [-Registered] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] 

Description:

The get-PSSnapIn Cmdlet lists all the PSSnapIn available in the current console if no parameter is passed to it. If the -registered parameter is passed, it lists all the available PSSnapIn(s) in the registry. The order in which the PSSnapIn(s) are shown is same as the order they are listed in the console file. Users can use sort-object to sort the list -Name and -registered are not mutually exclusive. c:\PS c:\> Get-PSSnapIn Returns all PSSnapIns loaded and in the console file. c:\PS c:\> Get-PSSnapIn -Name Xyz Returns the Xyz PSSnapIn that is either loaded or in the current console. If the Xyz PSSnapIn is not loaded or in the current console, 'Object not found.' is returned. c:\PS c:\> Get-PSSnapIn -registered Returns all registered PSSnapIns. c:\PS c:\> Get-PSSnapIn -Name Xyz2 -registered Returns Xyz2 PSSnapIn info object and only looks in the registries.



Windows PowerShell. TFM
Internet Forensics
ISBN: 982131445
EAN: 2147483647
Year: 2004
Pages: 289

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net