Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Get the SPWeb
- $web = Get-SPWeb "URL"
- #Get the Group
- $group = $web.SiteGroups["Group 1"]
- $group = $web.SiteGroups["Group 2"]
- #Get the User
- $user = $web.EnsureUser("domainuser")
- #Assign that user as the owner
- $group.Owner = $user
- #Update the Group
- $group.Update()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement