Jun 29 2022 01:58 AM
Jun 29 2022 01:58 AM
A long time i connected to exchange on premise 2010 server from a client. The command to connect (run powershell as admin or special user which has rights to exchange remote):
$UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http:///PowerShell/ -Authentication Kerberos -Credential $UserCredential
In stead of "powershell" i fill in the fqdn of the exchange server. This always worked but not anymore. I do not know what changed locally or on the exchange server but this is the error:
New-PSSession : [servername.fqdn] Connecting to remote server fqdn failed with the following e
rror message :
Cannot connect to the destination that is given on request. Check that the service is running on the destination and accepts requests.
Read the log for wsman, check the management service which is stared on the destination (usually WINRM or IIS, if it is winrm start winrm quickconfig.
see the about_Remote_Troubleshooting Help topic.
At line:1 char:12
+ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -Conne ...
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
+ FullyQualifiedErrorId : CannotConnect,PSSessionOpenFailed
the exchange 2010 server is accepting requests, winrm quickconfig says this and is running.
I have downloaded and started emtshooter to see what the problem could be: emtshooter says that the account that is running does not have exchange remote access. To check this run the following command on exchange:
for all the users which i use in Powershell it says enabled (this is very strange) i have tried users with domain without domain and fqdn but they all have remotepowershell enabled.
What can this be, if it is not the Exchange fw?
Jun 29 2022 02:02 AM
Jun 29 2022 03:42 AM
Jun 29 2022 03:53 AM
Jun 30 2022 12:55 AM
@Harm_Veenstra unforunally this makes no difference still cannot connect to Exchange with the same error. Strange thing is that the troubleshooter says that the account is no remote powershell user but if i ask this out in Exchange management shell it says it is...
Tried different accounts with domain and without domain but all are not working. This has always worked thouh so there must be something changed.
Jun 30 2022 01:59 AM
Jun 30 2022 03:11 AM