Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Remove-PSSnapin

Remove-PSSnapin - 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
Removes Windows PowerShell snap-ins from the current session.

Remove-PSSnapin [-Name] <string[]> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

The Remove-PSSnapin cmdlet removes a Windows PowerShell snap-in from the current session. You can use it to remove 
snap-ins that you have added to Windows PowerShell, but you cannot use it to remove the snap-ins that are installed
 with Windows PowerShell. 

After a snap-in is removed from the current session, it is still loaded, but the cmdlets and providers in the snap-
in are no longer available in the session.