To use this as a Snapin, register it in the GAC using the included install.bat or the following commands.

@SET GACUTIL="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe"
@SET INSTALLUTIL="C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe"

%GACUTIL% -if Community.SharePoint.PowerShell.dll
%INSTALLUTIL% Community.SharePoint.PowerShell.dll

Once the snapin has been registered, you can use it inside PowerShell. Open a SharePoint Management Shell
and type the following.

Add-PSSnapin Community.SharePoint.PowerShell

To get a list of the current commands in the snapin, type the following:

Get-Command -PSSnapin Community.SharePoint.PowerShell

To get help on any specific command use the Get-Help command followed by the command name. For example:

Get-Help New-SPEnterpriseSearchQueryScopeDisplayGroup

Last edited Aug 9, 2010 at 8:16 PM by cdog, version 1

Comments

No comments yet.