As Chris showed in his post last week Create SharePoint 2010 Sites Using PowerShell PowerShell in SharePoint 2010 is going to be a very useful tool to master over 500 commands as compared to less than 200 with STSADM so I thought I would share with you beginners in the whole PowerShell world a very good starting point on your journey to SharePoint 2010 PowerShell heaven. This simple command will output to a text file a list of all the cmdlets (Command-Lets) available to use with SharePoint 2010. First of all I created a folder on the C drive called PSCmd next start “SharePoint Management Shell” as an Administrator and run the command -
Get-Command –PSSnapin “Microsoft.SharePoint.PowerShell” | format-table name > C:\PSCmd\SP2010PowershellCommands.txt
This will output a list of all the available cmdlets to your text file giving you the opportunity to look through them at your leisure.
You can also find a great video on using PowerShell with SharePoint 2010 by Todd Klindt SharePoint MVP here Technet
Dave
Hi Dave, just a quick addition from me.
If you create a new blank folder on the sharepoint server called ‘SharePointHelp’ and then navigate to that with powershell and run this command:
foreach($i in Get-Command -module Microsoft.SharePoint.PowerShell) { if($i.CommandType -eq "Cmdlet"){ Get-help $i.Name -full | out-file $i".txt"}}
You will get a text file for each command containing the full help documentation of each Cmdlet!
Chris.
Related posts:
- Create SharePoint 2010 sites using PowerShell reading an XML file Just a quick post to show how easy it is...
- Teaching an old dog new tricks. Using PowerShell to make life better. PowerShell has been around for a while now and I...
- SharePoint 2010 Central Admin Map One of the big improvements in SharePoint 2010 has to...
- Web Analytics Reports SharePoint 2010 We have been using SharePoint 2010 for quite a...
- SharePoint 2010 Central Admin Map Part 2 As I said in my previous post I will be...
- SharePoint 2010 Central Admin Map Part 3 In the last part of this series of posts I will cover...









5 comments
4 pings
Aleksandar
February 22, 2010 at 6:52 pm (UTC 0)
Same command in a more PowerShelly way
Get-Command -CommandType cmdlet -module Microsoft.SharePoint.PowerShell | ForEach {Out-File “$_.txt” -InputObject (Get-Help $_ -full)}
Or shorter:
gcm -type cmdlet -module Microsoft.SharePoint.PowerShell | % {Out-File “$_.txt” -Input (Get-Help $_ -full)}
Dave Coleman
February 22, 2010 at 6:55 pm (UTC 0)
Thanks Aleksander still learning powershell so all help gratefuly recieved. Dave
Aleksandar
February 22, 2010 at 8:30 pm (UTC 0)
Glad I could help. If you have any PowerShell-related question you can find me at http://twitter.com/alexandair.
Todd Klindt
July 5, 2011 at 2:54 am (UTC 0)
Dave,
You cannot go wrong learning more PowerShell. It’s grrrrrrreat!
tk
Dave Coleman
July 5, 2011 at 6:25 am (UTC 0)
Great advice Todd as Powershell not only ties in with SharePoint but also Exchange and windows so well worth learning.
Dave
uberVU - social comments
February 13, 2010 at 4:37 pm (UTC 0)
Social comments and analytics for this post…
This post was mentioned on Twitter by davecoleman146: New Blog post The first steps to SharePoint 2010 PowerShell Heaven http://tinyurl.com/yhkwclz Plz RT…
SharePoint 2010 Powershell Commands Help « Chris and Dave's SharePoint And Tech Blog
February 14, 2010 at 2:03 pm (UTC 0)
[...] 2010 Powershell Commands Help 14 02 2010 Yesterday i did a post The first steps to SharePoint 2010 Powershell heaven after which Chris McKinley who is a clever coder added a foot note to the post, so i thought [...]
SharePoint 2010 Powershell Commands Help - SharePointEduTech
April 22, 2011 at 10:48 am (UTC 0)
[...] i did a post The first steps to SharePoint 2010 Powershell heaven after which Chris McKinley who is a clever coder added a foot note to the post, so i thought today [...]
SharePoint 2010 and Powershell Better Together – Introduction | | SharePoint 365SharePoint 365
September 2, 2011 at 2:41 pm (UTC 0)
[...] http://www.sharepointedutech.com/2010/02/13/the-first-steps-to-sharepoint-2010-powershell-heaven/ [...]