- 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 the number of comments for the specified user using SharePoint 2010 web service in powershell
$uri="http://serverName:10736/sites/ECT/_vti_bin/SocialDataService.asmx?wsdl"
## $userAccountName is a string that contains the specific account name
$userAccountName="domainName\userName"
## Web Service Reference - http://Site/_vti_bin/SocialDataService.asmx
$socialDataServiceWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential
[int]$countCommentsOfUser=$socialDataServiceWebServiceReference.CountCommentsOfUser($userAccountName)
Write-Host -ForegroundColor Green "Number of comments for the specified user : " $countCommentsOfUser

pe luoiPosted Jun 18, 2012, 10:03 PM
How can I get the count of posts created by the specified user in Sharepoint 2010 site? I mean that I wanna have a report about the statistic of post for all user in my SP 2010 site. Please help me .. Many thanks.