Forum Discussion
chenrylee
May 21, 2019Brass Contributor
[Hybrid Exchange] Connect Create PowerShell Session to Exchange Online
I'm working with Windows 10, and want to connect to Exchange Online, but facing some errors. It's my code: $adm_credential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft....
Akshay_Mane
May 23, 2019Iron Contributor
It seems that you've got the wrong ConnectionUri https://outlook.office.de/powershell-liveid/
- You should use this
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking
- Most expected reason, your tenant is not registered in Germany.
Regards,
Akshay
Exchange admin | Apps4Rent