
Administrating SharePoint
2010with PowerShell
Relying on humans to correctly perform repetitive tasks is dangerous. Most of us are an unde-
pendable bunch and, as a rule, should not be trusted to get things right. Even if you learn noth-
ing about PowerShell from this chapter, remember not to trust humans (including yourself) to
correctly perform any task. If you manage SharePoint exclusively via Central Administration,
not only are you missing out on half the administration story, but you’re also putting too much
trust in a human. Even if you manage to get something right once, that’s not enough. There are
staging environments, developer systems, and disasters. If you set up a SharePoint farm or deploy
a customization once, chances are good that you will have to do it again. System administra-
tors and developers alike must have a dependable, consistent, repeatable method for spinning up
SharePoint farms and deploying customizations. This means scripting. The investment of effort
spent up front in writing a good set of scripts pays large dividends in the future. It’s tempting to
jump into Central Administration to get things going quickly, but this approach is short-sighted
at best. Stop, plan, and spend the time to automate the process.
This chapter looks at how SharePoint 2010 is integrated with Windows PowerShell 2.0.
Hopefully you can see that after the learning curve is conquered ...