Exchange – Useful Powershell Commands

Here is some useful Powershell Commands for reports: To install the latest public version of the module, run the following command Set-ExecutionPolicy RemoteSigned Install-Module -Name ExchangeOnlineManagement To Connect to Exchange Online with Powershell using modern authetication Import-Module ExchangeOnlineManagement Connect-ExchangeOnline Disconnect-ExchangeOnline List All Email Adresses in Læs mere…

Office 365 – Setting Default Calendar Permissions To Reviewer For All Users

Step 1: Connect to Exchange Online using PowerShell $Credential = Get-Credential$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Credential -Authentication Basic -AllowRedirectionImport-PSSession $Session Step 2: Generate a list of all mailboxes $users = Get-Mailbox -Resultsize Unlimited Step 3: Set Default access to Læs mere…