I have this PS script to change the group owner of a SharePoint group to a domain user. I would like to use this script to change it to an existing SharePoint group. The current script only allows for domain users....
Any ideas?
#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("domain\user")
#Assign that user as the owner
$group.Owner = $user
#Update the Group
$group.Update()