Question

How we can OverwriteCheckIn in Powershell? Please correct second parameter?

$ListItems[$i].File.CheckIn("Checkin automatically",SPCheckinType.OverwriteCheckIn) // second parameter seems wrong
Was it helpful?

Solution

To reference static types and enums use a [] notation:

[Microsoft.SharePoint.SPCheckinType]::OverwriteCheckIn
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top