Windows Script Host Error: Invalid Syntax (800401E4)


You might see the following error after upgrading from Windows 2003 Server to 2008 (or another Windows platform).

Error:  Invalid Syntax, Code 800401E4, Source: (null)
Microsoft VBScript runtime error: The remote server machine does not exist or is unavailable: 'GetObject'

The likely solution will be that the server is missing some components (See item #2 below).

If you are trying to run an ADSI/WMI Script remotely from a client machine which gets information the from IIS web server around websites etc. you may see this:

Solution:

  1. Ensure Firewall is not blocking access to your server from remote access on the client (if you are running the script remotely)
  2. ADSI provider should be installed on the client as well as the IIS machine for the above script to work. For running ADSI script against IIS we need to ensure the ADSI provider is installed as below.

Windows Server 2003/XP:

Add/Remove windows Components –> Application Server –> Internet Information services (IIS) –> Common Files.

Windows Vista/Windows 7:

Control Panel –> Programs and Features –> Turn Windows Features on or off –> Internet Information Services –> Web Management tools –> IIS 6 Management Compatibility –> IIS Metabase and IIS 6 configuration compatibility

Windows Server 2008:

Server Manager –> Roles –> web Server (IIS) –> Add Role Services –> Management Tools –> IIS 6 Management Compatibility –> Select IIS 6 Metabase compatibility, IIS 6 WMI compatibility and IIS 6 Scripting Tools.

Leave a comment

Please note that we won't show your email to others, or use it for sending unwanted emails. We will only use it to render your Gravatar image and to validate you as a real person.