JurajUQU
asked on
Can't connect to Exchange 2013 powershell
I've tried to connect to PowerShell however I get following errors. There is a URL rewrite redirection but not for the Powershell sub and even if disabled, still doesn't work. SSL certificate is issued for both URLs and ECP and other virtual sub directories are working fine.
VERBOSE: Connecting to exchange.company.uni.edu.a u.
New-PSSession : [exchange.company.uni.edu. au] The WinRM service cannot process the request because the request needs
to be sent to a different machine. Use the redirect information to send the request to a new machine. Redirect
location reported: https://exchange.company.uni.edu.au/powershell?serializationLevel=Full;ExchClientVer=15.0.516.32;c
lientApplication=Managemen tShell;Tar getServer= ;PSVersion =4.0&sessi onID=Versi on_15.0_(B uild_515.3 2)=rJqNiZq NgbqnvLe+s bi6
0Z6b0YqOipGWkJHRio7RmpuK0Z 6Kgc7Gy87G xsnPzMmBzc 3Qzs7Qzc/O zN/LxczIxc /L376y . To automatically connect to the redirected
URI, verify the "MaximumConnectionRedirect ionCount" property of the session preference variable "PSSessionOption", and
use the "AllowRedirection" parameter on the cmdlet.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~
+ CategoryInfo : OpenError: (System.Manageme....Remote Runspace:R emoteRunsp ace) [New-PSSession], PSRemotin
gTransportRedirectExceptio n
+ FullyQualifiedErrorId : RedirectInformationRequire d,PSSessio nOpenFaile d
Failed to connect to an Exchange server in the current site.
Enter the server FQDN where you want to connect.: exchange.company.com.au
VERBOSE: Connecting to exchange.company.com.au.
New-PSSession : [exchange.company.com.au] Connecting to remote server exchange.company.com.au failed with the following error
message : WinRM cannot process the request. The following error occurred while using Kerberos authentication: Cannot
find the computer exchange.company.com.au. Verify that the computer exists on the network and that the name provided is
spelled correctly. For more information, see the about_Remote_Troubleshooti ng Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~
+ CategoryInfo : OpenError: (System.Manageme....Remote Runspace:R emoteRunsp ace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : NetworkPathNotFound,PSSess ionOpenFai led
VERBOSE: Connecting to exchange.company.uni.edu.a
New-PSSession : [exchange.company.uni.edu.
to be sent to a different machine. Use the redirect information to send the request to a new machine. Redirect
location reported: https://exchange.company.uni.edu.au/powershell?serializationLevel=Full;ExchClientVer=15.0.516.32;c
lientApplication=Managemen
0Z6b0YqOipGWkJHRio7RmpuK0Z
URI, verify the "MaximumConnectionRedirect
use the "AllowRedirection" parameter on the cmdlet.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....Remote
gTransportRedirectExceptio
+ FullyQualifiedErrorId : RedirectInformationRequire
Failed to connect to an Exchange server in the current site.
Enter the server FQDN where you want to connect.: exchange.company.com.au
VERBOSE: Connecting to exchange.company.com.au.
New-PSSession : [exchange.company.com.au] Connecting to remote server exchange.company.com.au failed with the following error
message : WinRM cannot process the request. The following error occurred while using Kerberos authentication: Cannot
find the computer exchange.company.com.au. Verify that the computer exists on the network and that the name provided is
spelled correctly. For more information, see the about_Remote_Troubleshooti
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....Remote
gTransportException
+ FullyQualifiedErrorId : NetworkPathNotFound,PSSess
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did you run iisreset after removing the redirection?
Do you have a proxy on the network?
Simon.
Do you have a proxy on the network?
Simon.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for JurajUQU's comment #a39684310
for the following reason:
I was able to resolve it myself.
Accepted answer: 0 points for JurajUQU's comment #a39684310
for the following reason:
I was able to resolve it myself.
ASKER
Simon has mentioned it before which I realised after so I'd like to award him some points.
ASKER
Thanks
ASKER