Add a SharePoint or AD group/user to all sites in a site collection using PowerShell

Posted by emmettlynch on January 7, 2012

This is a great script that allows you to do batch permission updates…


function AddAccountToAllSites ($siteURL, $accountName, $permLevel, [switch]$skipRootSite, $newGroupDescription)

{

#Get Site Collection

$site = Get-SPSite $siteURL


#Check if the accountName variable contains a slash – if so, it is

... [read more]

Rating

not rated

Reviews

There are currently no comments or reviews.

Submit a review:

Login required.