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:
##Get all the social tag term URL's for the specified tag term using SharePoint 2010 web service in powershell $uri="http://serverName:10736/sites/ECT/_vti_bin/SocialDataService.asmx?wsdl" ## $guid is of type System.Guid which contains the ID of the social tag term [System.Guid]$guid="9bb750c8-dc5d-4082-aa1e-9604674415e3" ## Web Service Reference - http://Site/_vti_bin/SocialDataService.asmx $socialDataServiceWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential
$SocialUrlDetail=$socialDataServiceWebServiceReference.GetAllTagUrls($guid) ## $SocialUrlDetail is of Type: [SocialDataService Web service].SocialUrlDetail() ##[SocialDataService Web service].SocialUrlDetail() - Refer http://msdn.microsoft.com/en-us/library/websvcsocialdataservice.socialurldetail_members.aspx
foreach($tagURL in $SocialUrlDetail) { write-host -ForegroundColor Green "Tag URL's : " ## $tagURL.Url - used to get or set the URL that is associated with the SocialUrlDetail $tagURL.Url write-host -ForegroundColor Green "Count: " ##$tagURL.Count - Used to get or set number of social data that is associated with the URL $tagURL.Count }
|