Solved

Can't connect to Exchange 2013 powershell

Posted on 2013-11-26
7
5,742 Views
Last Modified: 2013-12-03
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.au.
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=ManagementShell;TargetServer=;PSVersion=4.0&sessionID=Version_15.0_(Build_515.32)=rJqNiZqNgbqnvLe+sbi6
0Z6b0YqOipGWkJHRio7RmpuK0Z6Kgc7Gy87GxsnPzMmBzc3Qzs7Qzc/OzN/LxczIxc/L376y . To automatically connect to the redirected
URI, verify the "MaximumConnectionRedirectionCount" 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....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportRedirectException
    + FullyQualifiedErrorId : RedirectInformationRequired,PSSessionOpenFailed
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_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : NetworkPathNotFound,PSSessionOpenFailed
0
Comment
Question by:JurajUQU
  • 5
  • 2
7 Comments
 
LVL 63

Accepted Solution

by:
Simon Butler (Sembee) earned 300 total points
Comment Utility
I would start by removing all redirection across the entire server to begin with, because something with that configuration is getting in the way.

What is the purpose of the redirection/rewrite?

Simon.
0
 
LVL 5

Author Comment

by:JurajUQU
Comment Utility
I've tried that - didn't help. Redirection is only http to https
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
Comment Utility
Did you run iisreset after removing the redirection?
Do you have a proxy on the network?

Simon.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 5

Assisted Solution

by:JurajUQU
JurajUQU earned 0 total points
Comment Utility
Hi Simon,

no but I was able to resolve it. I unticked all of the redirection (which didn't help) so then I deleted the rule from URL rewrite, restarted the IIS, and it worked. Then I re-enabled it as it was before and it still is working.

Not sure what has changed but assuming that webconfig file was updated incorrectly or something so removing the rule solved it for me.
0
 
LVL 5

Author Comment

by:JurajUQU
Comment Utility
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.
0
 
LVL 5

Author Comment

by:JurajUQU
Comment Utility
Simon has mentioned it before which I realised after so I'd like to award him some points.
0
 
LVL 5

Author Closing Comment

by:JurajUQU
Comment Utility
Thanks
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now