LatestPower ShellSharePoint OnlineSoftware Support

Restore deleted sharepoint site office 365 powershell

Open Power Shell as an Administrator

Power Shell ITDukes

Go to Start
Search for Power Shell
Right click on Windows Power Shell
Run as Administrator

 To install the SharePoint module

Install-Module -Name Microsoft.Online.SharePoint.PowerShell

(Need to configure this setting only once on your computer)
-Press “A” or “Y”
Press Enter

You may need to download the SharePoint Online Management Shell

Import-Module -Name Microsoft.Online.SharePoint.PowerShell
Connect-SPOService -Url https://replace with Domain name-admin.sharepoint.com

Sign in with Global Administrator’s Credentials

To get the list of Active Sites run the following command

Get-SPOSite

Run the following command to view the deleted site collections

Get-SPODeletedSite

Copy the link of the Deleted site which you want to restore

To restore a site collection, run the following command

Restore-SPODeletedSite -Identity https:// replace with deleted site url

To connect with Exchange Online using PowerShell follow this link
Exchange Online