Add Rating to sharepoint list on site collecion using power shell


 $site = New-Object Microsoft.SharePoint.SPSite("http://sitecollection URL") 
 if ($web -ne $Null) 
       if ($PagesList -ne $Null) 
             Write-Host " Processing List : " $PagesList.Title 
             If ($ct -ne $null) 
                   Write-Host " Adding Rating columns to content type : " $ 
                   $AverageRatinglink = new-object Microsoft.SharePoint.SPFieldLink $AverageRating 
                   $RatingCountLink = new-object Microsoft.SharePoint.SPFieldLink $RatingCount 

Popular posts from this blog

Custom Form Base Login Web Part With Sharepoint 2010

Register Event Handlers plus free Site Settings – Manage Event Handlers Add-on solution

Real World Branding with SharePoint 2010 Publishing Sites