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.
-: FREE PDF e-Book Download :-
51 JSOM Examples in SharePoint Online
You May Also like the Following SharePoint Online Tutorials: