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

Office 365 – Change from Semi-Annual to Monthly

Create a bat file setlocal reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration\ /v CDNBaseUrl if %errorlevel%==0 (goto SwitchChannel) else (goto End) :SwitchChannel reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v CDNBaseUrl /t REG_SZ /d "http://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60" /f reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v UpdateUrl /f reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v UpdateToVersion /f reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Updates /v UpdateToVersion /f reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Office\16.0\Common\OfficeUpdate\ /f :End Endlocal Run as admin Load up office go to account click on update now...
Read More

Error when opening file synced through onedrive

Trying to open a file you may get Error 0x80070194 The cloud file provider exited unexpectedly Options try again skip cancel Found onedrive was not running in task bar, When trying to open onedrive it appeared in taskbar but immediately closed and no trace of it in task manager. I ran %localappdata%\Microsoft\OneDrive\onedrive.exe /reset  and loaded up onedrive and it stayed open...
Read More

Add Azure Active Directory User to Local Administrators Group

Through the admin portal a user who is a globe admin is a admin on the local pc that is on the azure domain. However for better security you there are time in which you need to be a admin to use some software. On the pc first login with the azure user account you want to add as admin.(this gets the User GUID to the PC) Open command prompt as admin (you will need to enter your admin details) then type the below and click enter net localgroup administrators AzureAD\username /add for example [email protected] username is test31341 If you have azure connect replace Azuread with the domain that you are syncing...
Read More

Office 365 SharePoint Change External Sharing policy using Powershell

  Install the modules Microsoft Online Service Sign-in Assistant for IT Professionals RTW Windows Azure Active Directory Module for Windows PowerShell (64-bit version) SharePoint Online Management Shell   1) Open Windows PowerShell as an administrator (use Run as administrator). 2) Run this command, and enter Office 365 Global Admin credentials. $credential = Get-Credential 3) Run these commands to connect to Office 365. Import-Module MsOnline Connect-MsolService -Credential $credential 4)Run these commands to connect to SharePoint Online. Replace your-tenant with the actual value for your domain. Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking Connect-SPOService -Url https://your-tenant-admin.sharepoint.com -credential $credential Get-SPOSite Get-sposite https://your-tenant.sharepoint.com/Site location Look at Sharing Capability To change what one you type to change to "Disabled" – external user sharing (share by email) and guest link sharing are both disabled "ExternalUserSharingOnly" – external user sharing (share by email) is enabled, but guest link sharing is disabled "ExistingExternalUserSharingOnly" - (DEFAULT) Allow sharing only with the external users that already exist in your organization’s directory "ExternalUserAndGuestSharing" - external user sharing (share by email) and guest link sharing are both enabled   Set-SPOSite -Identity your-tenant.sharepoint.com/Site location -SharingCapability ExternalUserSharingOnly  ...
Read More