How to Fix Windows Script Host

If you are experiencing script host issues, you might notice error messages such as “Library not registered.” Script host issues occur when scripting components do not exist in the Windows registry, according to Microsoft. Your version of Windows determines how the missing scripting components affect your system. You can repair script host problems by using your PC’s native features.

Register Components on 32-Bit Systems

Step

Press the “Windows” key. Type “cmd” in the dialog box and press “Enter.” This will open the Command Prompt.

Step

Type the following commands at the prompt one at a time and press “Enter:”

Step

regsvr32 %systemroot%\system32\vbscript.dll

Step

regsvr32 %systemroot%\system32\jscript.dll

Step

regsvr32 %systemroot%\system32\dispex.dll

Step

regsvr32 %systemroot%\system32\scrobj.dll

Step

regsvr32 %systemroot%\system32\scrrun.dll

Step

regsvr32 %systemroot%\system32\wshext.dll

Step

regsvr32 %systemroot%\system32\wshom.ocx

Step

Exit the Command Prompt.

Register Components on 64-bit Systems

Step

Press the “Windows” key. Type “cmd” in the dialog box and press “Enter.” This will open the Command Prompt.

Step

Type the following commands at the prompt one at a time and press “Enter:”

Step

%systemroot%\system32\regsvr32 %systemroot%\system32\vbscript.dll

Step

%systemroot%\system32\regsvr32 %systemroot%\system32\jscript.dll

Step

%systemroot%\system32\regsvr32 %systemroot%\system32\dispex.dll

Step

%systemroot%\system32\regsvr32 %systemroot%\system32\scrobj.dll

Step

%systemroot%\system32\regsvr32 %systemroot%\system32\scrrun.dll

Step

%systemroot%\system32\regsvr32 %systemroot%\system32\wshext.dll

Step

%systemroot%\system32\regsvr32 %systemroot%\system32\wshom.ocx

Step

Exit the Command Prompt.