Sunday, May 16, 2010

Windows PowerShell 2.0 for SharePoint 2010

With the release of the Microsoft's latest range of 2010 products most from the Microsoft's Office suite like Office, Visio, Project and SharePoint also comes a powerful utility - PowerShell.

Power Shell packs the power of a 'good', if not great shell environment where an administrator can do a variety of tasks which can add more power and control to his tasks.
Power Shell combines the capabilities of cmd.exe and it's new features to make it a great tool for administrators. Also the SharePoint administrator's favorite utility stsadm.exe is replaced in the 2010 version with the same.

PoweShell 2.0 comes with WMI pack and includes the power of .Net framework which gives an admin the power to use those 'classes' to do a specific job. These classes can be accessed by an admin using 'cmdlets'. It combines & includes the 'if' conditioning statements, looping with 'for' and 'While'. It can be used to access any item from Windows registry for example, and perform operations over it, as required. All these gives me the sense of similarity that a Linux or Unix admin enjoys while working in their favorite shell environments.

Some Examples:

1. PS> Get-SPFarm | Select *

2. PS> Get-SPWebApplication


3. PS>Remove-SPSite http://SampleSite


Microsoft not only brings this tool to increase the efficiency of an Administrator but also adds powers to the people who are into this profession!

No comments: