TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to create wiki page library in SharePoint using PowerShell
Vijai Anand Ramalingam
Mar 21, 2013
14.2
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog we will be seeing how to create wiki page library in SharePoint using PowerShell
$listName="Wiki"
$description="My Wiki Library"
$template="Wiki Page Library"
$siteURL="
http://serverName:1111/
"
$site=Get-SPSite $siteURL
$web=$site.RootWeb
$listColl=$web.Lists.TryGetList($listName)
if($listColl -eq $null)
{
$templateType=$web.ListTemplates[$template]
[Guid]$listId = New-Object Guid
$listId=$web.Lists.Add($listName,$description,$templateType)
$list=$web.Lists[$listId]
$list.OnQuickLaunch = $true
$list.Update()
write-host -f green $listName "is created successfully"
}
else
{
write-host -f yellow $listName " already exists in the site"
}
$web.Dispose()
$site.Dispose()
How to create wiki page library in SharePoint using PowerShell
Next Recommended Reading
Programmatically create wiki page in SharePoint