Link to home
Start Free TrialLog in
Avatar of haroldharpeth
haroldharpeth

asked on

Windows 7 library not registered windows script host

Have a VBS script that is pushed out everytime a user logins on to the network.  Have one user that all of sudden on the windows 7 pro 64 bit box they are getting an error message and just this box 42 other windows 7 pro 64 bit boxes work fine.

Windows Script Host Box

Script \\location
Line: 2
Char: 1
Error: Library not registered
Code: 8002801D
Source: (null)

Then a check box for ok


Any thoughts looks like some sort of required VBS Dll isnt registered but cant find any documentation on this??

Avatar of Patmac951
Patmac951
Flag of United States of America image

This definitely sounds like a DLL file is not registered on the problem computer.   You have to determine what DLL is having the problem and then attempt to run REGSVR32 and attempt to register the DLL file on the problem computer put you have to figure out what DLL it is/ Have you checked the system logs on the server that pushes out the script or the Windows 7 computer system logs for further details?

Secondly another thing you can check is on the other computers where script works on figure out what  .NET framework is installed.  In the control panel,  check the installed software the other computers for the .NET framework and make sure the problem computer has all the same .NET framework versions installed as the other computers.
Avatar of haroldharpeth
haroldharpeth

ASKER

.NET framework is the same on all computers just checked so far no errors in log files under applications or system either.  Any other ideas on how to track down the offending DLL
Can you post a screen print of the script?  If not have you tried running the script manually from a command prompt on the problem computer?  You might get more details in the command prompt run and it also might send further details to the System event log on the problem computer.
Another thing to try is open the script with an editor like notepad and look at it in detail it appears the error is occurring on line 2 of the script.  Is line 2 calling a program what is it specifically doing?
Not just this particular script  as I am learning. Outlook generating a script error  on the outlook today page

Line :296
Char 1
Error: Library not registered
Code :0
URL : outlook:today
Do you admin rights on the server that pushes out the VB script from your original post?  Can you open the VB script in an editor like Notepad?  The original error is in line 2 of the VB script what is the detail on line 2 what is that line of the script trying to do?  If you can get this information it can give us more details of what DLL is not registered on the problem computer.

It is going to be very difficult to troubleshoot this problem unless you know exactly what the VB script is trying to do.
Script is two lines

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """\\boulder\office view\setupws.exe""/S"
Ok so line 2 of the script appears to run an EXE file from a network share called "setupws.exe"  This appears to be a custom program unique to your network this is not a program I am familiar with.  I am assuming this is a custom program that was written for your particular network environment. My guess is  it stands for Setup Workstation, do you have any idea what this program does on the workstation?

This program is attempting to call a DLL file on this computer that is not registered but you need to know what SETUPWS.EXE is doing and what DLL it is looking for.
Another thing to verify is to make sure the problem computer has access to the network share the program is trying to run.  On the problem computer can you access \\boulder\office view?  This might simply be a permissions issue.
Found this knowledge base article for prior OS verisons
http://support.microsoft.com/kb/949140

Mentions what files to register. Full Text below.  First four register but fifth and six entry do not register.

%systemroot%\system32\regsvr32 %systemroot%\system32\wshext.dll,
 %systemroot%\system32\regsvr32 %systemroot%\system32\wshom.ocx

Checked both files are on the hard drive.

Generates an error trying to register.  (see screenshot below)

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
Click Start, click Run, type cmd, and then click OK.
Type %systemroot%\system32\regsvr32 %systemroot%\system32\vbscript.dll, and then press ENTER.
Type %systemroot%\system32\regsvr32 %systemroot%\system32\jscript.dll, and then press ENTER.
Type %systemroot%\system32\regsvr32 %systemroot%\system32\dispex.dll, and then press ENTER.
Type %systemroot%\system32\regsvr32 %systemroot%\system32\scrobj.dll, and then press ENTER.
Type %systemroot%\system32\regsvr32 %systemroot%\system32\scrrun.dll, and then press ENTER.
Type %systemroot%\system32\regsvr32 %systemroot%\system32\wshext.dll, and then press ENTER.
Type %systemroot%\system32\regsvr32 %systemroot%\system32\wshom.ocx, and then press ENTER.

 User generated image
Setupws is for a application called officeview

http://officeview.com/

Pretty sure it not just this script but now have 4 programs all showing some sort of scripting error or wont run at all. Including internet explorer 8 32 bit version but the 64 bit works just fine.
ASKER CERTIFIED SOLUTION
Avatar of Patmac951
Patmac951
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That was link I referenced earlier and both 32 bit and 64 bit work fine until I attempt to register wshext.dll

Then  I get screenshot I posted earlier.
Just began a Windows 7 repair install. Have spent too much time on this.  
Will award you points

Gave up and did a reinstall instead