Creating Office 365 Safe Links Policy and Rule using PowerShell To create a new Safe Links policy and rule a connection to Exchange Online Protection needs to be created. Establish a connection to Exchange Online Protection by doing the following.
1 |
$UserCredential = Get-Credential |
1 |
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.protection.outlook.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection |
Once the session has been created run the following to import the new…
Leave a Comment