Office 365 – Azure backup remove recovery services vault

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...
Read More

Search Exchange mailbox for a particular folder

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...
Read More

Create windows admin account via bat file

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...
Read More