«

»

Feb 13

The first steps to SharePoint 2010 PowerShell Heaven

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

OutPut SharePoint 2010 PS Commands

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.

Output TXT

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.

About Dave Coleman

Dave Coleman has written 332 post on this blog.


Technorati Tags: ,

Related posts:

  1. Create SharePoint 2010 sites using PowerShell reading an XML file Just a quick post to show how easy it is...
  2. Teaching an old dog new tricks. Using PowerShell to make life better. PowerShell has been around for a while now and I...
  3. SharePoint 2010 Central Admin Map  One of the big improvements in SharePoint 2010 has to...
  4. Web Analytics Reports SharePoint 2010   We have been using SharePoint 2010 for quite a...
  5. SharePoint 2010 Central Admin Map Part 2 As I said in my previous post I will be...
  6. SharePoint 2010 Central Admin Map Part 3 In the last part of this series of posts I will cover...

5 comments

4 pings

  1. Aleksandar

    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)}

  2. Dave Coleman

    Thanks Aleksander still learning powershell so all help gratefuly recieved. Dave

  3. Aleksandar

    Glad I could help. If you have any PowerShell-related question you can find me at http://twitter.com/alexandair.

  4. Todd Klindt

    Dave,
    You cannot go wrong learning more PowerShell. It’s grrrrrrreat!

    tk

  5. Dave Coleman

    Great advice Todd as Powershell not only ties in with SharePoint but also Exchange and windows so well worth learning.

    Dave

  1. uberVU - social comments

    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…

  2. SharePoint 2010 Powershell Commands Help « Chris and Dave's SharePoint And Tech Blog

    [...] 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 [...]

  3. SharePoint 2010 Powershell Commands Help - SharePointEduTech

    [...] 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 [...]

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>