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.PowerShellThis code snippet for Enable list item version history using Powershell.
