I have a document lib that has been stale for a few years. I am trying to clean it up, but there are 1000+ document that are Checked Out
to another user. I am a super admin, so I can go in and get take ownership / check these documents in individually. But that would take HOURS and there may be many more libraries that I need to sort through.
I see there is the Set-PnPFileCheckedIn
command for PowerShell, which is good, but what I don't see is a command to take ownership of checked out files. Or a settings on the following commands that would allow me to loop through checked out items:
Find-PnPFile
Get-PnPListItem
Get-PnPFolerItem
Get-PnPFiel -asListItem
As of now the commands I listed above only return checkedin items, or items that are checked out under your user sessioned account.
Is it that I need to run a command as the user that has the documents checked out?
I know the ListItem fields have a field like CheckedOutTo
but that does not help when you cannot get a list of said checkedout items to update who the document is currently checked out too.
Looking for a PnP command solution to this. If at all possible. I see some solutions using the older SPO commands, and if that is the only way than so be it, but I am tring to stick within the realm of PnP commands.
Thanks all in advance!