Remove-PSSnapin


Remove PSSnapIn(s) from the current console process.

Snap-In: Microsoft.PowerShell.Core

Syntax:

Remove-PSSnapin

 [-Name] <String[]> [-PassThru] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] [-WhatIf] [-Confirm] 

Description:

The remove-PSSnapIn Cmdlet removes the given PSSnapIn(s) from the current console process. After removing the PSSnapIn(s) from the current console, the associated cmdlets or providers are not shown to the user in the current process. In other words, the console information in the memory is updated, but the console file is not updated. Remove-PSSnapIn does not check the PowerShell version before removing the PSSnapIn(s) from the current process. If PSSnapIn(s) cannot be removed, show a warning and fail the removal of specific PSSnapIn(s). Default PSSnapIn (s) cannot be removed. A user might be able to add a new version of same PSSnapIn(s) that was removed. Console file is updated only when the user calls the export-console Cmdlet. Current console file name is available in $console variable.



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