Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

When I run a script in Windows Script, I receive an error message: "Library not registered"


View products that this article applies to.

Error message description

When you try to run a script in Windows Script, you receive the following error message:
Error: Library not registered.

Code: 8002801D

Source: (null)

↑ Back to the top


Cause

This problem occurs because one or more of the scripting components are not registered in the Windows registry.

↑ Back to the top


Resolution

To resolve this problem, use one of the following methods.

Method 1: Download and then reinstall Windows Script

To download and then reinstall Windows Script, visit one of the following Microsoft Web sites, depending on the version of Windows Script that you are using and the operating system that the computer is running.

Windows Script 5.7 for Windows Server 2003

The following file is available for download from the Microsoft Download Center:

Download Download the scripten.exe package now.

Windows Script 5.7 for Windows XP

The following file is available for download from the Microsoft Download Center:

Download Download the scripten.exe package now.

Windows Script 5.7 for Windows 2000

The following file is available for download from the Microsoft Download Center:

Download Download the scripten.exe package now.

Windows Script 5.6 for Windows XP and for Windows 2000

The following file is available for download from the Microsoft Download Center:

Download Download the http://www.microsoft.com/download/details.aspx?FamilyID=c717d943-7e4b-4622-86eb-95a22b832caa&DisplayLang=en package now.

Method 2: Register the scripting components on your computer

To fix this problem, change the scripting components on your computer. 

To manually register the scripting components on your computer, use one of the following sets of steps, as appropriate for your situation.

You are running a 32-bit version of the Windows operating system
  1. Click Start, click Run, type cmd, and then click OK.
  2. Type regsvr32 %systemroot%\system32\vbscript.dll, and then press ENTER.
  3. Type regsvr32 %systemroot%\system32\jscript.dll, and then press ENTER.
  4. Type regsvr32 %systemroot%\system32\dispex.dll, and then press ENTER.
  5. Type regsvr32 %systemroot%\system32\scrobj.dll, and then press ENTER.
  6. Type regsvr32 %systemroot%\system32\scrrun.dll, and then press ENTER.
  7. Type regsvr32 %systemroot%\system32\wshext.dll, and then press ENTER.
  8. Type regsvr32 %systemroot%\system32\wshom.ocx, and then press ENTER.
You are running a 64-bit version of the Windows operating system, and you receive the error message that is mentioned in the "Symptoms" section while you are using the 64-bit scripting components
  1. Click Start, click Run, type cmd, and then click OK.
  2. Type %systemroot%\system32\regsvr32 %systemroot%\system32\vbscript.dll, and then press ENTER.
  3. Type %systemroot%\system32\regsvr32 %systemroot%\system32\jscript.dll, and then press ENTER.
  4. Type %systemroot%\system32\regsvr32 %systemroot%\system32\dispex.dll, and then press ENTER.
  5. Type %systemroot%\system32\regsvr32 %systemroot%\system32\scrobj.dll, and then press ENTER.
  6. Type %systemroot%\system32\regsvr32 %systemroot%\system32\scrrun.dll, and then press ENTER.
  7. Type %systemroot%\system32\regsvr32 %systemroot%\system32\wshext.dll, and then press ENTER.
  8. Type %systemroot%\system32\regsvr32 %systemroot%\system32\wshom.ocx, and then press ENTER.
You are running a 64-bit version of the Windows operating system, and you receive the error message that is mentioned in the "Symptoms" section while you are using the 32-bit scripting components
  1. Click Start, click Run, type cmd, and then click OK.
  2. Type %systemroot%\syswow64\regsvr32 %systemroot%\syswow64\vbscript.dll, and then press ENTER.
  3. Type %systemroot%\syswow64\regsvr32 %systemroot%\syswow64\jscript.dll, and then press ENTER.
  4. Type %systemroot%\syswow64\regsvr32 %systemroot%\syswow64\dispex.dll, and then press ENTER.
  5. Type %systemroot%\syswow64\regsvr32 %systemroot%\syswow64\scrobj.dll, and then press ENTER.
  6. Type %systemroot%\syswow64\regsvr32 %systemroot%\syswow64\scrrun.dll, and then press ENTER.
  7. Type %systemroot%\syswow64\regsvr32 %systemroot%\syswow64\wshext.dll, and then press ENTER.
  8. Type %systemroot%\syswow64\regsvr32 %systemroot%\syswow64\wshom.ocx, and then press ENTER.

Did this fix the problem?

Check whether the problem is fixed. If the problem is fixed, you are finished with this article. If the problem is not fixed, you can contact support.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kbmsifixme, kbdevsicnvrtkb, kbentirenet, kberrmsg, kbtshoot, kbprb, kb, kbfixme

↑ Back to the top

Article Info
Article ID : 949140
Revision : 3
Created on : 4/30/2020
Published on : 4/30/2020
Exists online : False
Views : 257