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 a .txt file Get-recipient -resultsize unlimited | select Name -expand Læs mere…

Setup VPN L2TP/IPsec

Set up L2TP/IPSec VPN on Windows Server 2019 Introduction A VPN or Virtual Private Network is used to securely tunnel the data from a local computer to a remote server. You can visualize VPN as a private network distributed across the internet or public network. Using VPN, different devices can Læs mere…

Configure DKIM with Office 365

Description Many administrators are familiar with SPF (Sender Policy Framework) as a system to declare and verify who can send emails from a domain. In the fight against spam and phishing, SPF is not enough anymore. DKIM (DomainKeys Identified Mail) is an email authentication system based on asymmetric cryptographic keys. Læs mere…

Outlook Data File Performance

Outlook Data File Performance If you have a large .pst or .ost file, you may experience application pauses while you perform typical operations in Outlook. These typical operations include reading email messages, moving email messages, and deleting email messages. The following list summarizes expected behavior based on the size of 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 Reviewer for all User mailboxes foreach ($user in $users) {Write-Host Læs mere…