Omar El-Anis – 365 Developer

My experiences with SharePoint, Flows, PowerApps, JavaScript and all of the other lovely web technologies out there!

Uncategorised

Get all deleted sites within SharePoint Admin Centre

Use the script below to get all of the deleted sites in the SharePoint Admin Recycle bin for your tenancy

</p>
<p>$username = "user@domain.co.uk"<br>
$Password = Read-Host -Prompt "Please enter your password" -AsSecureString<br>
$Site = "https://tenant-admin.sharepoint.com"<br>
$cred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $userName, $(convertto-securestring $Password -asplaintext -force)<br>
Connect-SPOService -Url $Site -Credential $cred<br>
Get-Command -Module Microsoft.Online.SharePoint.Powershell<br>
Get-SPODeletedSite</p>
<p>

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments