SharePoint 2010: PowerShell Script to create Discussion Board / Discussion Forum

Scenario:

We need to create discussion board / discussion forum using power shell script

Resolution:

$spWeb Get-SPWeb $webURL

$listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DiscussionBoard

$spWeb.Lists.Add(“Discussion Forum”, “Custom List”, [int]$listTemplate)

Thanks to my friend Abdur Raheem 

1 Comment »

  1. Nice post Farhan. Keep sharing.

RSS feed for comments on this post · TrackBack URI

Leave a comment