April 25th, 2006

Mshsnapin (part 1): usage of mshsnapin commands.

PowerShell Team
PowerShell Team

Latest beta3 release of monad added the capability of adding/removing cmdlets and providers in current running session through mshsnapins. Mshsnapin is a logic group of cmdlets and providers can be manipulate as a unit in monad engine.

Following commands can be used for manipulating mshsnapins,

  • get-mshsnapin: this will list all mshsnapin’s that are loaded in current monad session.
  • get-mshsnapin -reg: this will list all mshsnapin’s that are installed on current machine.
  • add-mshsnapin <mshsnapin-name>: this will load a mshsnapin into current monad session.
  • remove-mshsnapin <mshsnapin-name>: this will unload a mshsnapin from current monad session.

– George

[Edit: Monad has now been renamed to Windows PowerShell. This script or discussion may require slight adjustments before it applies directly to newer builds.]

Category
PowerShell

Author

PowerShell Team
PowerShell Team

PowerShell is a task-based command-line shell and scripting language built on .NET. PowerShell helps system administrators and power-users rapidly automate tasks that manage operating systems (Linux, macOS, and Windows) and processes.

0 comments

Discussion are closed.