Skip to content
Branch: master
Find file Copy path
Find file Copy path
Initial 61897f4 Feb 10, 2020
1 contributor

Users who have contributed to this file

32 lines (21 sloc) 1.16 KB
Script provided as is. Use at own risk. No guarantees or warranty provided.
Description - Log to Exchange Online using the V2 modules
Reference -
Source -
Prerequisites = 1
1. Ensure Exchange Online V2 module is loaded
More scripts available by joining
## Variables
$systemmessagecolor = "cyan"
$processmessagecolor = "green"
## If you have running scripts that don't have a certificate, run this command once to disable that level of security
## set-executionpolicy -executionpolicy bypass -scope currentuser -force
write-host -foregroundcolor $systemmessagecolor "Script started`n"
Import-Module ExchangeOnlineManagement
write-host -foregroundcolor $processmessagecolor "Exchange Online V2 module loaded"
Connect-ExchangeOnline -ShowProgress $true
write-host -foregroundcolor $processmessagecolor "Connected to Exchange Online`n"
write-host -foregroundcolor $systemmessagecolor "Script Completed`n"
You can’t perform that action at this time.