1. 获取用户配置文件服务应用程序标识
Get-SPServiceApplication
2. 获取指定的用户配置文件服务应用程序实例
$profileSA = Get-SPServiceApplication -Identity 9b6235e4-f306-4ccc-8192-0c83cb679476
3. 配置用户配置文件服务应用程序设置
$profileSA = Get-SPServiceApplication -Identity 9b6235e4-f306-4ccc-8192-0c83cb679476 Set-SPProfileServiceApplication –Identity $profileSA -MySiteHostLocation http://sp2010:80/my/ -MySiteManagedPath my/personal
4. 移除旧的注释
$profileProxy = Get-SPServiceApplicationProxy -Identity 150232e4-a3d2-4915-adb1-155ea77a6dfb Remove-SPSocialItemByDate –ProfileServiceApplicationProxy $profileProxy –RemoveComments:$true –EndDate 12/1/2010 –Confirm:$false
5. 移除旧的评分
$profileProxy = Get-SPServiceApplicationProxy -Identity 150232e4-a3d2-4915-adb1-155ea77a6dfb Remove-SPSocialItemByDate –ProfileServiceApplicationProxy $profileProxy –RemoveRatings:$true –EndDate 12/1/2010 –Confirm:$false
6. 移除旧的标签
$profileProxy = Get-SPServiceApplicationProxy -Identity 150232e4-a3d2-4915-adb1-155ea77a6dfb Remove-SPSocialItemByDate –ProfileServiceApplicationProxy $profileProxy –RemoveTags:$true –EndDate 12/1/2010 –Confirm:$false
7. 更新用户配置文件照片存储
Update-SPProfilePhotoStore –MySiteHostLocation http://mysites
8. 使用用户配置文件服务的辅助命令
SPSiteSubscriptionProfileConfig SPProfileServiceApplicationSecurity SPProfileServiceApplicationProx