Powershell, Sharepoint

Sharepoint Powershell Find the command your looking for

Hi everyone. Long time no post.

I’m posting this for your and my conveniance because i always forget the syntax of some of the lesser used ps commands.

Because there are just sooooooo many Powershell CMDLets for Sharepoint and in general in Powershell , I find it easier to just list them all by doing a kinda “search” for the command.

Anyways, if ever you’ve forgotten a powershell command, you can search for it by doing this :

 Get-Command | Where-Object {$_.Name -like "*commandname*"}

Example to list all Cmdlets which has the word Feature:

 Get-Command | Where-Object {$_.Name -like "*feature*"}

Above example will output the following.

The syntax is self explanatory and also allows you to further “filter” by using some operstors such as or, and etc.

Read more on the MS Blog here : http://technet.microsoft.com/en-us/library/ee177028.aspx

Hope this has helped you.

Leave a comment