Issue Experienced:
When attempting to launch Exchange Management Shell (EMS) and Exchange Admin Center (EAC), running into the following error messages respectively.
EMS Error #1:
Welcome to the Exchange Management Shell!
Full list of cmdlets: Get-Command
Only Exchange cmdlets: Get-ExCommand
Cmdlets that match a specific string: Help *<string>*
Get general help: Help
Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?
Exchange team blog: Get-ExBlog
Show full output for a command: <command> | Format-List
Show quick reference guide: QuickRef
Tip of the day #63:
Any cmdlet that accepts a size value lets you specify whether the integer value is in kilobytes (KB), megabytes (MB), gi
gabytes (GB), or terabytes (TB). For example:
Set-Mailbox "Kim Akers" -ProhibitSendQuota 200MB -UseDatabaseQuotaDefaults $False
VERBOSE: Connecting to ExchSrvr.mail.com.
New-PSSession : [ExchSrvr.mail.com] Connecting to remote server ExchSrvr.mail.com failed with the
following error message : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IIS 8.0 Detailed Error - 500.0 - Internal Server Error</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;}
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}
.config_source code{font-size:.8em;color:#000000;}
pre{margin:0;font-size:1.4em;word-wrap:break-word;}
ul,ol{margin:10px 0 10px 5px;}
ul.first,ol.first{margin-top:5px;}
fieldset{padding:0 15px 10px 15px;word-break:break-all;}
.summary-container fieldset{padding-bottom:5px;margin-top:4px;}
legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;}
legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px;
font-weight:bold;font-size:1em;}
a:link,a:visited{color:#007EFF;font-weight:bold;}
a:hover{text-decoration:none;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.4em;margin:10px 0 0 0;color:#CC0000;}
h4{font-size:1.2em;margin:10px 0 5px 0;
}#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS",Verdana,sans-serif;
color:#FFF;background-color:#5C87B2;
}#content{margin:0 0 0 2%;position:relative;}
.summary-container,.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
.content-container p{margin:0 0 10px 0;
}#details-left{width:35%;float:left;margin-right:2%;
}#details-right{width:63%;float:left;overflow:hidden;
}#server_version{width:96%;_height:1px;min-height:1px;margin:0 0 5px 0;padding:11px 2% 8px 2%;color:#FFFFFF;
background-color:#5A7FA5;border-bottom:1px solid #C1CFDD;border-top:1px solid #4A6C8E;font-weight:normal;
font-size:1em;color:#FFF;text-align:right;
}#server_version p{margin:5px 0;}
table{margin:4px 0 4px 0;width:100%;border:none;}
td,th{vertical-align:top;padding:3px 0;text-align:left;font-weight:normal;border:none;}
th{width:30%;text-align:right;padding-right:2%;font-weight:bold;}
thead th{background-color:#ebebeb;width:25%;
}#details-right th{width:20%;}
table tr.alt td,table tr.alt th{}
.highlight-code{color:#CC0000;font-weight:bold;font-style:italic;}
.clear{clear:both;}
.preferred{padding:0 5px 2px 5px;font-weight:normal;background:#006633;color:#FFF;font-size:.8em;}
-->
</style>
</head>
<body>
<div id="content">
<div class="content-container">
<h3>HTTP Error 500.0 - Internal Server Error</h3>
<h4>Module "WSMan" could not be found</h4>
</div>
<div class="content-container">
<fieldset><h4>Most likely causes:</h4>
<ul> <li>The module could not be found.</li> <li>IIS received the request; however, an internal error
occurred during the processing of the request. The root cause of this error depends on which module handles the
request and what was happening in the worker process when this error occurred.</li> <li>IIS was not able to access
the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.</li>
<li>IIS was not able to process configuration for the Web site or application.</li> <li>The authenticated user
does not have permission to use this DLL.</li> </ul>
</fieldset>
</div>
<div class="content-container">
<fieldset><h4>Things you can try:</h4>
<ul> <li>Verify that the module name is not misspelled in the configuration/system.webServer/globalModules
config section. The error description may contain additional information to help you determine which module is causing
the error.</li> <li>Ensure that the NTFS permissions for the web.config file are correct and allow access to the
Web server's machine account.</li> <li>Check the event logs to see if any additional information was logged.</li>
<li>Verify the permissions for the DLL.</li> <li>Create a tracing rule to track failed requests for this HTTP
status code. For more information about creating a tracing rule for failed requests, click <a
href="http://go.microsoft.com/fwlink/?LinkID=66439">here</a>. </li> </ul>
</fieldset>
</div>
<div class="content-container">
<fieldset><h4>Detailed Error Information:</h4>
<div id="details-left">
<table border="0" cellpadding="0" cellspacing="0">
<tr class="alt"><th>Module</th><td> IIS Web Core</td></tr>
<tr><th>Notification</th><td> BeginRequest</td></tr>
<tr class="alt"><th>Handler</th><td> Not yet determined</td></tr>
<tr><th>Error Code</th><td> 0x80070002</td></tr>
</table>
</div>
<div id="details-right">
<table border="0" cellpadding="0" cellspacing="0">
<tr class="alt"><th>Requested URL</th><td> https://ExchSrvr.mail.com:444/powershell?serial
izationLevel=Full;ExchClientVer=15.0.1395.4;clientApplication=ManagementShell;TargetServer=;PSVersion=3.0&sessionID
=Version_15.0_(Build_1394.4)=rJqNiZqNgaqsuqe8t8/O0ZyQkYuWkYqKkpGai9GckJKBzsbLzsbGycbOyoHNz87H0s7O0s/Kq8/LxczJxc3H</td><
/tr>
<tr><th>Physical Path</th><td> C:\Program Files\Microsoft\Exchange
Server\V15\ClientAccess\PowerShell-Proxy</td></tr>
<tr class="alt"><th>Logon Method</th><td> Not yet determined</td></tr>
<tr><th>Logon User</th><td> Not yet determined</td></tr>
</table>
<div class="clear"></div>
</div>
</fieldset>
</div>
<div class="content-container">
<fieldset><h4>More Information:</h4>
This error means that there was a problem while processing the request. The request was received by the Web server,
but during processing a fatal error occurred, causing the 500 error.
<p><a href="http://go.microsoft.com/fwlink/?LinkID=62293&IIS70Error=500,0,0x80070002,9200">View more information
»</a></p>
<p>Microsoft Knowledge Base Articles:</p>
<ul><li></li></ul>
</fieldset>
</div>
</div>
</body>
</html>
Error occurred during the Kerberos reponse.
[Server=ExchSrvr, TimeStamp = 114/2018 23:28:18]
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 : -2144108173,PSSessionOpenFailed
EMS Error #2:
failed with the following error message: [ClientAccessServer=,BackEndServer=,RequestId=d89f6ed1-19
8b-4a00-9941-a08f1bb78c54,TimeStamp=11/5/2018 6:58:02 AM]
[AuthZRequestId=b2c5b4c3-edd9-410c-a7fe-af0499783858][FailureCategory=AuthZ-SetupVersionInformationCorruptException] Unable to determine the installed file version from the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine'. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
EAC Error #1 (occurs with EMS Error #2):
Connecting to remote server failed with the following error message : IIS 8.0 Detailed Error - 500.0 - Internal Server Error
Cause:
EMS Error #1 occurs because the WS-Management (WSMan) module is not registered / loaded in IIS.
EMS Error #2 and EAC Error #1 occurs because Windows PowerShell version 2.0 is not installed.
Resolution:
To resolve EMS Error #1 follow these steps.
- Open IIS and navigate to the Default Web Site.
- In the control pane, click on Modules.
- WSMan should not be found in the enabled modules list.
- Click on Configure Native Modules in the action pane.
Verify that WSMan is listed there without a check in the box next to it.
- If WSMan is not listed, go to step 10.
- Navigate to PowerShell virtual directory under Default Web Site.
- Click on Modules in the control pane.
- Verify WSMan is not in the list of enabled modules.
- Click on Configure Native Modules in the action pane. Verify that WSMan is listed without a check in the box next to it.
- If WSMan does not appear in the list, click on the Server's Name in the left navigation pane and then click on Modules in the control pane.
- Click on Configure Native Modules in the action pane.
- Click on the Register button.
- Enter "WSMan" in the Name field and "%windir%\system32\wsmsvc.dll" (both entries without the quotation marks). Click OK button to save and register.
- WSMan should now appear in the list of native modules without a check in the box next to it.
- Open a Command Prompt (w/ administrator privileges) and execute IISRESET /noforce command.
Error EMS #1 should now be resolved when you retry performing the action.
To resolve EMS Error #2 and EAC Error #1, perform the following steps to install Windows PowerShell version 2.0.
- Open Server Manager.
- Click on Manage and then select Add Roles and Features.
- Click next a few times in the wizard until you reach Select Features screen.
- Expand Windows PowerShell selection and check the box next to Windows PowerShell 2.0 Engine and then keep clicking next until you see an install button.
- Click install and wait until the operation completes.
- Reboot the server.
When you launch EMS or EAC, you should be able to get into both tools without any issue at this point.