• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 11025
  • Last Modified:

enable VBScript on Windows 7 (64 bit)

Hi All,

For some reason my laptop wont allow me to run .VBS files.

It returns the following error

can't find script engine "VBScript" for script
"C:\Users\laptop\Desktop\test.vbs"


inside test.vbs all i have is a hello world snippet;

msgbox("Hello world")



Any idea how i fix this?
0
detox1978
Asked:
detox1978
  • 7
  • 5
  • 2
  • +1
6 Solutions
 
FDomingos88Commented:
In the start menu search, type run and in the run windows, type the command regsvr32 VBScript .
0
 
FDomingos88Commented:
Alternatively, you can press Winkey + R to open the run window
0
 
wlramseyCommented:
regsvr32 %systemroot%\system32\vbscript.dll

In case the environment variables are not setup.

I had to do this when I first setup my 64-bit Win 7 machine.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
detox1978Author Commented:
Tried that, it still errors.
0
 
Bill PrewCommented:
Can you do the following two commands and report back what they display:

assoc .vbs

ftype vbsfile


They should display something like:

.vbs=VBSFile

vbsfile="%SystemRoot%\System32\WScript.exe" "%1" %*


~bp
0
 
detox1978Author Commented:
run both of them and they return the same values you listed


0
 
Bill PrewCommented:
A couple of other items:

Are you running 32 or 64 bit?

When you did the regsvr32 command, were you in Administrator mode?

~bp
0
 
detox1978Author Commented:
it's 64bit and used to have McAfee installed (not sure if that might have loocked it down, but i've uninstalled it)


Tried it as Administrator without any luck
0
 
wlramseyCommented:
I found this that had someone with the same problem

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/Q_25350267.html

There is a comment at the bottom with a list of fixes.

LOFTUSIT:
10.20.2010 at 02:06AM CDT, ID: 33945375
Hi Randy

Try this patch program from Loftus IT. It should resolve your issue by properly registering the VBScript, Jscript and MSXML components on your 64-bit machine.

1.) Download FIX2738.ZIP from the following link, noting that it is case sensitive:
http://www.loftusit.com.au/repos/FIX2738.ZIP

2.) Extract the ZIP somewhere on your machine.

3.) Run Fix2738.exe as Administrator by right clicking and choosing “Run as administrator”.

4.) Click the “Start” button to fix the affected components.

5.) When finished you can view the log file and check for any errors.

6.) The “Check Scripting Status” button should enable you to confirm the current state of VBScript and JavaScript. Of course, attempting a reinstall of your “Sierra Wireless” software would be the best test.

Regards
Loftus IT
0
 
detox1978Author Commented:
Gave it a try, but it didn't work.  It looks like it run ok as this was logged;

"System32 - Successfully repaired vbscript.dll"
"System32 - Successfully repaired jscript.dll"
"System32 - Successfully repaired msxml3.dll"
"System32 - Successfully repaired msxml6.dll"
"System32 - Successfully repaired scrrun.dll"
"SysWow64 - Successfully repaired vbscript.dll"
"SysWow64 - Successfully repaired jscript.dll"
"SysWow64 - Successfully repaired msxml3.dll"
"SysWow64 - Successfully repaired msxml6.dll"
"SysWow64 - Successfully repaired scrrun.dll"



Could there be a software restriction in place?
0
 
Bill PrewCommented:
You might try the fix script for VBS from here:

http://www.winhelponline.com/blog/file-asso-fixes-for-windows-7/

~bp
0
 
Bill PrewCommented:
Also, you might have to restart after these fixes.

~bp
0
 
detox1978Author Commented:
run the vbs regkey, which run ok.  but i still cant run vbscripts
0
 
detox1978Author Commented:
fixed it.

I found a McAfee complete uninstall utility on their website.
0
 
Bill PrewCommented:
Glad you got it resolved!

~bp
0
 
detox1978Author Commented:
thanks for the pointers, it became clear something was stopping it as everything seemed ok.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 7
  • 5
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now