On our libraries we set versioning settings = create major versions and keep 50 of them. We'd like to remove only the "Keep the following number of major versions" setting on all libraries. Because there are many libs we'd like to execute a PowerShell script. But
the major setting checkbox itself seems to be no property, we just can set
$list.EnableVersioning = $true $list.EnableMinorVersions = $falsewe cannot just set the number of major versions to 0 (= invalid value)
- we cannot just reverse EnableVersioning (set it to false, update and afterwards set it to true again => the former number of major versions reappear)
So how to get rid of the number of major versions limit without changing the rest of the versioning settings using PowerShell?