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??
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??
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?
ASKER
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
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.
It is going to be very difficult to troubleshoot this problem unless you know exactly what the VB script is trying to do.
ASKER
Script is two lines
Set WshShell = WScript.CreateObject("WScr ipt.Shell" )
WshShell.Run """\\boulder\office view\setupws.exe""/S"
Set WshShell = WScript.CreateObject("WScr
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.
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.
ASKER
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\regs vr32 %systemroot%\system32\wshe xt.dll,
%systemroot%\system32\regs vr32 %systemroot%\system32\wsho m.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\regs vr32 %systemroot%\system32\vbsc ript.dll, and then press ENTER.
Type %systemroot%\system32\regs vr32 %systemroot%\system32\jscr ipt.dll, and then press ENTER.
Type %systemroot%\system32\regs vr32 %systemroot%\system32\disp ex.dll, and then press ENTER.
Type %systemroot%\system32\regs vr32 %systemroot%\system32\scro bj.dll, and then press ENTER.
Type %systemroot%\system32\regs vr32 %systemroot%\system32\scrr un.dll, and then press ENTER.
Type %systemroot%\system32\regs vr32 %systemroot%\system32\wshe xt.dll, and then press ENTER.
Type %systemroot%\system32\regs vr32 %systemroot%\system32\wsho m.ocx, and then press ENTER.
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\regs
%systemroot%\system32\regs
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\regs
Type %systemroot%\system32\regs
Type %systemroot%\system32\regs
Type %systemroot%\system32\regs
Type %systemroot%\system32\regs
Type %systemroot%\system32\regs
Type %systemroot%\system32\regs
ASKER
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
Then I get screenshot I posted earlier.
ASKER
Just began a Windows 7 repair install. Have spent too much time on this.
Will award you points
Will award you points
ASKER
Gave up and did a reinstall instead
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.