How to disable "Discussion Board" list template in SharePoint 2010

It took almost my two days to search a way for hiding the "Discussion Board" area from a blank site.



Main target was to not allow the users to create a Discussion Board in the site. I tried few ways but did not work as required. So the final thing that worked was the Powershell Scrip. I used the below script (found by one of my colleague) and it worked perfectly fine. Hope it will save someone's day.

Regards,




Before:


After:




Add-PSSnapin microsoft.sharepoint.powershell
$web = Get-SPWeb "http://yoursitename/fullURL"
$web.Features | ForEach-Object {
  Write-Host $_.Definition.Id "---" $_.Definition.DisplayName
  IF ($_.Definition.DisplayName -eq "DiscussionsList")
  {
    Disable-SPFeature -Identity $_ -URL "http://yoursitename/fullURL"
    Write-Host "Disabled feature DiscussionsList"
  }
}
Write-Host "------------------------------"
Read-Host "Press any button" 



How to disable "Discussion Board" list template in SharePoint 2010
How to hide"Discussion Board" list template in SharePoint 2010
How to remove "Discussion Board" list template in SharePoint 2010


 

Comments

Popular Posts

GREYCstoration Oil Paint plugin for Photoshop

Service Bus Gateway service stuck at Starting

PowerApps SubmitForm not clearing People Picker value

Apple iPhone sending SMS automatically 00447786205094

Download file failed signature verification and may have been tampered with - Workflow Manger 1.0 Refresh (CU2)