Within Azure I used the Azure Backup server I unregsitered the server I was using however backup items still displayed which prevent me removing the vault
solution was to go to manage > backup infrastructure
then under management servers click on Backup mananagement server and remove from there.
If it is a single server backup
under backup ingrastructure go to protected servers (azure backup agent)
select server and choose delete
Once removed you can then delete the recovery vault...
Connect to 365 via powershell
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking.
Get-MailboxFolderstatistics -Identity mailboxname | Where {$_.Name -Match "foldername"}
For instance to search my mailbox name Matt for a folder that contains alerts the command looks like this:
PS C:\WINDOWS\system32> Get-MailboxFolderstatistics -Identity matt | Where {$_.Name -Match "alerts"}
Although this give the output below, If you have multiple folders that contain your search criteria it can be difficulty to read
To get a better idea of where the folder is located use the identity to filter
PS C:\WINDOWS\system32> Get-MailboxFolderstatistics -Identity matt | Where {$_.Name -Match "alerts"} | select identity
Identity
--------
matt\LanSweeperAlerts
Another example is a folder called backups that is within my inbox folder
PS C:\WINDOWS\system32> Get-MailboxFolderstatistics -Identity matt | Where {$_.Name -Match "backups"} | select identity
Identity
--------
matt\Inbox\Backups
Once you have finished disconnect your exchange powershell session
Remove-PSSession $Session...
open notepad
Paste the following
@echo off
net user Username Password /add /comment:"Admin" /passwordchg:NO
wmic useraccount where "name='Username'" set passwordexpires=FALSE
net localgroup "Administrators" Username /add
PAUSE
Replace Username with the username you want to use
Replace Password with the password you want to use...
Sign in to outlook.office365.com
Click the gear icon in the upper-right hand corner
Select Options
Navigate on the left hand side and select Block or Allow
To enable, choose Automatically filter junk e-mail
To disable, choose Don't filter e-mail to my Junk E-Mail folder
In the toolbar above, click Save
...
Select the WiFi symbol in the top menu bar and click Open Network Preferences in the drop down menu.
Click on WiFi in the menu on the left and click Advanced located at the bottom right of the pop-up window.
Select the WiFi name and click the minus sign. Click OK.
...
From the Apple menu , choose System Preferences.
Click General.
From the Appearance options at the top of the window, select Dark to enable and Light to disable
...
Issue continues after rejoining pc to domain.
open regitry
Under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
look for any externsions with .bak and look for their username on reg values and remove if found
...