VBScript Errors at Startup / Unable to install Windows Script 5.2 – wshom.ocx error.

Question:

I am seeing several errors on client machines at login due to supposed errors with a couple of vbscripts we run to map printers and drives etc.

On most machines they will run perfectly fine with no errors whatsoever, but on a few they come up with the error “Library Not Registered” and often applies to different lines in the script. The machines affected are Windows XP and all are at SP3.

On a couple of machines, I was able to solve the problem with Windows Script 5.2 which, after installing, removed the errors and ran the scripts OK. On a few more problematic machines, when trying to install Windows Script 5.2 I receive the error “Error registering the OCX c:\windows\system32\wshom.ocx”

Manually registering wshom.ock fails and I cannot seem to resolve the error.

Has anyone else encountered this problem and, if so, was there a solution that did not involve reloading Windows.

Solution:

Hi, does it allow you reregister the VBScript file:
regsvr32 c:\Windows\System32\vbscript.dll

Can you manually register the OCX:
regsvr32 /u c:\windows\system32\wshom.ocx
regsvr32 c:\windows\system32\wshom.ocx

Regards,

Rob.

digg delicious stumbleupon technorati Google live facebook Sphinn Mixx newsvine reddit yahoomyweb
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...