Saturday, February 18, 2012

How to Install your own PowerShell Cmdlets


set-alias installutil $env:windir\Microsoft.NET\Framework\v2.0.50727\installutil

## to call installer by typing installutil

installutil '.\Windows PowerShell Project.dll'

## Install your own DLL

get-PSsnapin -registered

## Check registered Snapins

add-pssnapin CmdletName

## Cmdlet is now added and ready to be used

No comments: