Restore a deleted OneDrive for Business account from Office365: "A site collection with the same Site Id or Path already exists."
If a user has left, their license gets removed and their OneDrive for Business account gets automatically deleted for a period of 93 days.
If you try and restore a user, and un-delete their OneDrive, you run into a problem as restoring the account atomically creates a new empty OneDrive. Restoring gets you this error:-
Restore-SPODeletedSite : A site collection with the same Site Id or Path already exists.
You have to permanently delete the new empty OneDrive account, then restore then old deleted one back:-
To delete permanently the newly created (empty) site:-
Remove-SPOSite -Identity https://xxxxxx-my.sharepoint.com/personal/xxxxxxxxx
To restore the automatically deleted (full) site:-
Restore-SPODeletedSite -Identity https://xxxxxx-my.sharepoint.com/personal/xxxxxxxxx
If you try and restore a user, and un-delete their OneDrive, you run into a problem as restoring the account atomically creates a new empty OneDrive. Restoring gets you this error:-
Restore-SPODeletedSite : A site collection with the same Site Id or Path already exists.
You have to permanently delete the new empty OneDrive account, then restore then old deleted one back:-
To delete permanently the newly created (empty) site:-
Remove-SPOSite -Identity https://xxxxxx-my.sharepoint.com/personal/xxxxxxxxx
To restore the automatically deleted (full) site:-
Restore-SPODeletedSite -Identity https://xxxxxx-my.sharepoint.com/personal/xxxxxxxxx
Comments
Post a Comment