Datasheet
CHAPTER 1
IN THIS CHAPTER, YOU WILL LEARN TO:
X
PREPARE FOR YOUR JOURNEY 4
Automate SharePoint: A Historical Perspective. . . . . . . . . . . . . . . . . .5
From STSADM to Windows PowerShell. . . . . . . . . . . . . . . . . . . . . . . . .7
X
UNDERSTAND THE COMPONENTS 8
The SharePoint 2010 Management Shell. . . . . . . . . . . . . . . . . . . . . . . .8
Understand Required Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Windows PowerShell: An Object-Based Scripting Language . . . 12
Discover Cmdlets and Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
X
UNDERSTAND VARIABLES AND TYPES 21
Declare and Use Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Understand Object Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Declare and Use Arrays and Hash Tables. . . . . . . . . . . . . . . . . . . . . . 28
X
WORK WITH OUTPUT 31
Understand the Object Pipeline and PipeBind Objects . . . . . . . . 31
Format Your Results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Windows PowerShell 101
c01.indd 3c01.indd 3 5/16/2011 11:12:30 AM5/16/2011 11:12:30 AM