In this post we will discuss how we can do undo check out a page using PowerShell in SharePoint 2013. Recently we face one issue in one of the migration project. Some pages were coming check out by some people and when we try to do check-in, overwrite check-out or discard check out, nothing worked for us.
Also you can read:
– Generate URL using Calculated column in SharePoint 2013 List
– Office 365 Calendar Add-in by Virto Software Product Review
– The maximum number of web parts for all zones on this page has been exceeded error in SharePoint 2013
Below is the PowerShell script you can use to UndoCheckOut using PowerShell for SharePoint 2013. You can pass the particular page URL to do undocheckout.
$spWeb = Get-SPWeb(“https://SiteURL/”)
$spFile = $spWeb.GetFile(“https://SiteURL/Pages/MyTestpage.aspx”)
Hope this will be helpful.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.