Restore a specific document version in SPO using PowerShell

Highlighted
Occasional Contributor

Hello all,

 

I'm having issues restoring a document version from the UI. How would I do that using PowerShell on a SPO environment?

 

Thank you in advance for the help!

-Wagner

2 Replies
Highlighted
Take a look at PnP PowerShell cmdlets...you might also need to use CSOM API in your PowerShell scripts to work with document versions
Highlighted

@Juan Carlos González MartínOn a related note … I've looked at some documentation about using CSOM API with PowerShell.  I'm used to importing the module SharePointPnPPowerShellOnline, but in the examples I'm seeing Add-Type specifying a path on my C drive, but pointing to paths that aren't on my machine.

 

Do I need to download and/or install something, perhaps the SharePoint Online Client Components SDK?

 

Thank you!