Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to create wiki page library in SharePoint using PowerShell
WhatsApp
Vijai Anand Ramalingam
11y
14.3
k
0
0
25
Blog
$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
Up Next
Programmatically create wiki page in SharePoint
Ebook Download
View all
SharePoint Online And Office 365 Administration
Read by 3.6k people
Download Now!
Learn
View all
Membership not found