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,
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
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
Post a Comment