October 2010
Intermediate to advanced
1008 pages
46h 16m
English
Administrators can use PowerShell to easily modify all the properties of any PowerShell object.
Let’s consider the following scenario. An administrator needs to add user CompanyABC.com\John as a secondary administrator for all site collections. This is an ideal example of how PowerShell can help to automate SharePoint administration. To achieve the goal, type the following command:
Get-SPSite | Set-SPSite –SecondaryOwnerAlias "CompanyABC.com\John"
In the preceding example, we use Get-SPSite to get the list of all the site collections and then combine that with the Set-SPSite cmdlet that sets a Secondary Owner value to “CompanyABC.com\John”.
To verify that the cmdlet completed successfully, ...
Read now
Unlock full access