February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You want to remove comments from the Profile Service Application.
Solution: Use the Remove-SPSocialItemByDate cmdlet with the RemoveComments parameter.
The Remove-SPSocialItemByDate cmdlet enables you to remove comments, tags, or ratings before a particular required end date. Listing 14.4 shows an example command line.
Listing 14.4. Removing Old Comments from the Profile Service
$profileProxy = Get-SPServiceApplicationProxy -Identity 150232e4-a3d2-4915-adb1-155ea77a6dfbRemove-SPSocialItemByDate -ProfileServiceApplicationProxy$profileProxy -RemoveComments:$true -EndDate 12/1/2013 -Confirm:$false
RemoveComments is a Boolean parameter, although it looks like a switch parameter. Therefore, either $true
Read now
Unlock full access