Ying Li at myITforum.com

PowerShell & System Center

Working with Snapins in PowerShell

Snapins are PowerShell extensions that contains additional cmdlets and providers.

The following are the steps to use a snapin:

1. You need to obtain the snapin assembly;

2. Copy it to your computer;

3. Register the snapin. From the directory that contains the snapin assembly, run InstallUtil SnapinName.dll. You can find the InstallUtil utility in the .NET Framework installation directory(C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe

4. Add the snapin. At the PowerShell prompt, run the command Add-PsSnapin SnapinIdentifier.

5. The comdlets and providers contained in that snapin are ready for use.

To see all the registered Snapins, using the below command

Get-PsSnapin – Registered

Posted: Jan 14 2008, 09:23 PM by yli628 | with no comments
Filed under:

Comments

No Comments