Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

enable VBScript on Windows 7 (64 bit)

Posted on 2010-11-18
16
Medium Priority
?
9,070 Views
Last Modified: 2012-05-10
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
Comment
Question by:detox1978
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
  • 2
  • +1
16 Comments
 
LVL 6

Assisted Solution

by:FDomingos88
FDomingos88 earned 400 total points
ID: 34168020
In the start menu search, type run and in the run windows, type the command regsvr32 VBScript .
0
 
LVL 6

Expert Comment

by:FDomingos88
ID: 34168033
Alternatively, you can press Winkey + R to open the run window
0
 
LVL 1

Assisted Solution

by:wlramsey
wlramsey earned 800 total points
ID: 34168055
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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 2

Author Comment

by:detox1978
ID: 34168063
Tried that, it still errors.
0
 
LVL 58

Assisted Solution

by:Bill Prew
Bill Prew earned 800 total points
ID: 34168089
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
 
LVL 2

Author Comment

by:detox1978
ID: 34168130
run both of them and they return the same values you listed


0
 
LVL 58

Expert Comment

by:Bill Prew
ID: 34168135
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
 
LVL 2

Author Comment

by:detox1978
ID: 34168188
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
 
LVL 1

Assisted Solution

by:wlramsey
wlramsey earned 800 total points
ID: 34168263
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
 
LVL 2

Author Comment

by:detox1978
ID: 34168404
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
 
LVL 58

Assisted Solution

by:Bill Prew
Bill Prew earned 800 total points
ID: 34168454
You might try the fix script for VBS from here:

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

~bp
0
 
LVL 58

Expert Comment

by:Bill Prew
ID: 34168463
Also, you might have to restart after these fixes.

~bp
0
 
LVL 2

Author Comment

by:detox1978
ID: 34168480
run the vbs regkey, which run ok.  but i still cant run vbscripts
0
 
LVL 2

Accepted Solution

by:
detox1978 earned 0 total points
ID: 34168874
fixed it.

I found a McAfee complete uninstall utility on their website.
0
 
LVL 58

Expert Comment

by:Bill Prew
ID: 34169681
Glad you got it resolved!

~bp
0
 
LVL 2

Author Closing Comment

by:detox1978
ID: 34195108
thanks for the pointers, it became clear something was stopping it as everything seemed ok.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question