I’ve seen cases where exceptions are thrown if IE is not present.
_Send_HTTP_Request() function in ExtraHopApiClient.psm1, the
Invoke-WebRequest cmdlet is used to make REST API calls. This cmdlet uses the Internet Explorer engine to parse the response DOM content. One of the major problems with this is that this requires Internet Explorer to be installed (not valid on Server Core installations), cannot run in the SYSTEM context, and may have security or compatibility issues.
-UseBasicParsing parameter can be used to bypass the Internet Explorer engine, as DOM parsing is not needed for JSON data. Alternatively, the
Invoke-RestMethod cmdlet can be used, but would require rewriting the module to catch exceptions instead of checking the response code.
-UseBasicParsing doesn’t help, you may want to reach out to Extrahop support for a more thorough look at your particular situation.