Restore-PnPRecycleBinItem slow (1-2 sec pr itim) #4724
Unanswered
trackmankris
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I had a sharepoint policy delete a lot of content that we really didnt want to delete, so I need to restore +40.000 files from the recyclebin.
It's only items that were deleted by the policy, so DeletedByName = "System Account"
First i tried to restore it just by piping in the name, but that give me the result I expected - it looked like the process halted.
So I
$IdDeleted = Import-CSV "File.csv"
$IdDeleted | foreach {Restore-PnPRecycleBinItem -Identity $_.Id -force}
The items are restored fine, as far as I can see, but each takes about 1-2 seconds - so it will take about two days to restore.
I'm a noob to sharepoint and powershell, but am I missing something obvious here, or is it by design that it takes so long?
Beta Was this translation helpful? Give feedback.
All reactions