Steps Involved:
- Open SharePoint 2010 Management Shell by going to Start | All Programs | SharePoint | Microsoft SharePoint 2010 Products | SharePoint 2010 Management Shell (Run as Administrator).
- Run the following script.
Powershell Script:
## Update the group information using SharePoint 2010 web service in powershell $uri="http://serverName:10736/sites/ECT/_vti_bin/UserGroup.asmx?wsdl" ## $oldGroupName is a string that contains the old group name [String]$oldGroupName="Group1"; ## $groupName is a string that contains the new group name [String]$groupName="NewGroup1"; ## $ownerIdentifier is a string that contains the user name (domainName\userName) for the owner of the group [String]$ownerIdentifier="domainName\userName"; ## $ownerType is a string that contains the type of owner, which can be either user or group [String]$ownerType="user"; ## $description is a string that contains the description for the group [String]$description="Group updated using SharePoint 2010 web service in powershell"; ## Web Service Reference - http://Site/_vti_bin/UserGroup.asmx $usergroupWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential $usergroupWebServiceReference.UpdateGroupInfo($oldGroupName,$groupName,$ownerIdentifier,$ownerType,$description)
|
Using the above script you will be able to modify the group name, description abd group owner for the specified group.