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
Enable List Item Version History using Powershell
Sushant Kesari
Dec 10
2015
Code
995
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
Add-PSSnapin Microsoft.SharePoint.PowerShell
$webURL = Read-Host
"Please enter your SiteCollection Url"
$spSite = New-Object Microsoft.SharePoint.SPSite($webURL)
$web = $spSite.OpenWeb()
$list = $web.Lists[
"Customer"
]
Write-Host “Enabling list version history'
for
:- ” $list.Title -ForegroundColor Yellow
$list.EnableVersioning = $
true
$list.Update()
Write-Host “Enable Versioning completed successfully” -ForegroundColor Green
$web.Dispose()
Remove-PSSnapin Microsoft.SharePoint.PowerShell
Enable list item version history
Powershell
SharePoint