Connect to M365
$Credential = Get-Credential
Import-Module MsOnline
Connect-MsolService -Credential $credential
$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $credential -Authentication "Basic" -AllowRedirection
Import-PSSession $exchangeSession -DisableNameChecking
Export the list to .csv
Full guide/description at : http://www.bwya77.com/powershell/get-users-outlookinbox-rules-office-365/
No comments:
Post a Comment