Exchange_Connect.ps1
|
function Exchange-Connect { $credential = Get-Credential $exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $credential -Authentication Basic -AllowRedirection Import-PSSession $exchangeSession -AllowClobber } |