$UserCredential = Get-Credential2. Enter your Exchange Online credentials
3. Run;
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection4. Run;
Import-PSSession $SessionWhen you are finished run;
Remove-PSSession $Session
No comments:
Post a Comment