-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Description
The TestECMA2HostConnection.ps1 script fails on Windows Server systems with the error "The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete."
This is a critical issue for enterprise deployments as:
- Internet Explorer was officially retired and is rarely configured on modern Windows Server installations
- The script is essential for validating ECMA2Host connectivity during setup
- This blocks administrators from properly testing their ECMA connector configuration
Environment
- Windows Version: Windows Server 2016/2019/2022
- PowerShell Version: 5.1
- ECMA2Host Version: Latest
- Script Location:
C:\Program Files\Microsoft ECMA2Host\Troubleshooting\TestECMA2HostConnection.ps1
Error Details
PS C:\Windows\system32> C:\Program Files\Microsoft ECMA2Host\Troubleshooting\TestECMA2HostConnection.ps1
cmdlet TestECMA2HostConnection.ps1 at command pipeline position 1
Supply values for the following parameters:
ConnectorName: CSV
invoke-webrequest : The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try
again.
At C:\Program Files\Microsoft ECMA2Host\Troubleshooting\TestECMA2HostConnection.ps1:65 char:17
+ ... $resp = invoke-webrequest -uri $uri -headers $headers -Method GET ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException
+ FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Root Cause
The script uses Invoke-WebRequest without the -UseBasicParsing parameter, causing it to depend on Internet Explorer's DOM parser.
Proposed Solution
Line 65 of TestECMA2HostConnection.ps1 should be modified from:
$resp = invoke-webrequest -uri $uri -headers $headers -Method GETTo:
$resp = invoke-webrequest -uri $uri -headers $headers -Method GET -UseBasicParsingAlternatively, consider using Invoke-RestMethod instead of Invoke-WebRequest for better compatibility.
Workaround
Currently, administrators must either:
- Manually edit the script to add
-UseBasicParsing - Configure Internet Explorer first-launch settings via registry
- Use PowerShell 7+ if available
Impact
- Severity: High - Blocks proper ECMA connector validation
- Frequency: Affects all fresh Windows Server installations
- Workaround Available: Yes, but requires manual intervention
Additional Context
This issue has been reported by multiple administrators and represents a significant barrier to ECMA2Host deployment. Given that Internet Explorer is deprecated, enterprise tools should not depend on it for basic HTTP operations.
The fix is minimal and would improve the deployment experience significantly.