Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #Get the SPWeb
  2. $web = Get-SPWeb "URL"
  3.  
  4. #Get the Group
  5. $group = $web.SiteGroups["Group 1"]
  6. $group = $web.SiteGroups["Group 2"]
  7. #Get the User
  8. $user = $web.EnsureUser("domainuser")
  9.  
  10. #Assign that user as the owner
  11. $group.Owner = $user
  12.  
  13. #Update the Group
  14. $group.Update()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement