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 to 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 a Calculated column in SharePoint 2013 List
Below is the PowerShell script you can use to UndoCheckOut using PowerShell for SharePoint 2013. You can pass the particular page URL to do undo checkout.
$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.
You May Also like the Following SharePoint Online Tutorials: