Remember using the Add-SPShellAdmin cmdlet to grant you or your favourite colleagues access to SharePoint databases without involving your DBA? In SharePoint 2010, this command gave you db_owner access to the SharePoint database.
I have been living and breathing SharePoint 2010 PowerShell the past two months.
During this time, I have created PowerShell scripts to prepare the farm, install SharePoint 2010, install and provision all service applications with their custom database names solely with PowerShell. This is on a multi-server SharePoint 2010 environment. So my scripts had to be able to create and join servers to the farm, start relevant services on App servers. No more stsadm for me!
The crawl server (index) was the most interesting as my script creates the Search SA and then modifies it with the specific database names that your variables you provide.
There were some (many) lessons learned and I will write more on that later.
I would like to show you how the SharePoint Products and Technologies Wizard works underneath and then marry those steps with equivalent PowerShell commands….
Here are some (over 400) PowerShell™ commands for SharePoint 2010! These can be run remotely (Powershell 2.0).
Stsadm will still be functional in SharePoint 2010. Powershell is not DOS based. Its .NET based. 😉
Windows PowerShell™ is the new command-line interface and scripting language specifically designed for system administrators that will be used for Microsoft® SharePoint® Server 2010 administration. Although both Cmd.exe and Stsadm.exe environments will be maintained for backward compatibility, SharePoint Server 2010 command-line administration will use Windows PowerShell. For practical purposes, you can view Windows PowerShell as complementing Cmd.exe in the Windows administration context and superseding Stsadm.exe for SharePoint administration. You might ask yourself, What’s so unique about Windows PowerShell? Well, unlike most command-line systems that accept and return text, Windows PowerShell supports and uses XML and objects. XML and object support is a pretty major change that brings entirely new tools and methods to greatly improve control, efficiency, and productivity for developers and administrators.
Hope you find these commands useful for the future. Be sure to bookmark this page for future reference.
SharePoint 2010 is the first version of SharePoint technologies in which Microsoft supports administration through PowerShell scripts. In SharePoint 2007, farm administrators use a command-line utility named STSADM.EXE to run interactive commands from the console window and to write DOS-style batch file scripts to automate common administrative tasks such as creating, backing up or restoring a new site collection.
Microsoft now recommends using the new PowerShell support for writing, testing and executing scripts that automate the same types of administrative tasks that you can accomplish using STSADM.EXE.