SharePoint 2010 Administration Made Easy with PowerShell

The article highlights that SharePoint 2010 administration is mainly done through PowerShell and finding the right cmdlet can be challenging

PowerShell Tip

By now you might have seen that SharePoint 2010 command line administration is all about PowerShell. STSADM is still around, but as far as most of us are concerned, it’s RIP!

What’s tricky is that sometimes you can’t find the PowerShell cmdlet you’re looking for… especially when this product is still so new to many folks (heck, I’ve been working with it over over a year now and still find stuff hard to find). While there’s always the SDK and you could create a cheat sheet, who wants to keep track of something else?

Check out this cool little technique… use PowerShell to find cmdlets! First you need to either launch the SharePoint 2010 Management Shell (START > All Programs > Microsoft SharePoint 2010 Products) which loads the SharePoint PowerShell snapin, or just load it yourself:

SharePoint 2010 PowerShell

SharePoint 2010 PowerShell

Next, get a list of all the SharePoint cmdlets using the Get-Command cmdlet:

SharePoint 2010 PowerShell

SharePoint 2010 PowerShell

Oh gee… great… a nice concise list of just a few cmdlets… that doesn’t help. So filter them for what you’re looking for! For example… maybe you need to find out what cmdlets are available for service applications. Just pipe and filter the results!

SharePoint 2010 PowerShell

SharePoint 2010 PowerShell

Much better… now you can use the Get-Help cmdlet to get details on each command:

SharePoint 2010 PowerShell

SharePoint 2010 PowerShell

Andrew Connell
Developer & Chief Course Artisan, Voitanos LLC. | Microsoft MVP
Written by Andrew Connell

Andrew Connell is a web & cloud developer with a focus on Microsoft Azure & Microsoft 365. He’s received Microsoft’s MVP award every year since 2005 and has helped thousands of developers through the various courses he’s authored & taught. Andrew’s the founder of Voitanos and is dedicated to helping you be the best Microsoft 365 web & cloud developer. He lives with his wife & two kids in Florida.

Share & Comment