$UserCredential =
Get-Credential
$Session =
New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/
-Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession
$Session
If you need to use the MSOL commands, you will need to sign into that too, which you can use the following command:
Connect-MsolService
-Credential $UserCredential
No comments:
Post a Comment