Using PowerShell to restore a deleted Site Collection in SharePoint 2016

I recently ran into an issue where one of our Site Collections got mysteriously deleted. I’m still figuring out the logs to see how it happened, but I came across a quick and easy PowerShell command to restore the Site Collection when I couldn’t find it in any of the recycle bins.

Get-SPDeletedSite | Restore-SPDeletedSite

This command will give you a list of recently deleted site collections and then prompt you to restore each of them individually.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s