Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: CScript Error: Can't find script engine "VBScript" -alternate solution

07 Nov 2011   #1
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)
 
 
CScript Error: Can't find script engine "VBScript" -alternate solution

I just came across this error in troubleshooting an MGADiag report to solve a non-genuine message on a Vista computer.
It took me a large amount of searching to find the right answer to it - so I thought I'd post my solution here in the hope that it gets a little easier to find for others in the same position


CScript Error: Can't find script engine "VBScript" for script "C:\Windows\system32\slmgr.vbs".

This was preventing the Software Licensing Service in Vista doing what it needs to - and consequently giving rise to the non-genuine message, despite a perfectly genuine install.

The conventional response is to re-register the dll using
regsvr32 vbscript.dll

This works fine in many instances - but in this case, although the registration gave rise to the 'succeeded' message, as it should (thereby showing that the dll was present), there was no change in the response from MGADiag.

The user had been using a registry cleaner - and this was in another forum, and she wasn't the world's most savvy user. All attempts to get her to properly follow reg query instructions failed.

Eventually, I got a clue to the problem from an obscure blog, which mentioned that some AV's blocked a particular registry entry, by substituting their own dll for the vbscript one.

The penny dropped at last - so I created a small reg file to put the default entry there instead.

Code:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{B54F3741-5B07-11cf-A4B0-00AA004A55E8}\InprocServer32]
@="C:\\Windows\\system32\\vbscript.dll"
"ThreadingModel"="Both"
with fingers and toes crossed, I sent her instructions to download and merge the file.
.....and it worked! The thread was by that time 45 long, with just the two of us in it.
Huge sighs of relief all round, and she's promised never to use a registry cleaner again.
So two victories for the price of one.

Not a bad result [edit] - and yes, it should also work in Win7 and XP [/edit]

EDIT: (15/12/2012)
In a recent instance of this problem, Avast5 left behind incorrect values in the Classes\WOW64 area of the registry - these required more detailed hand-editing. Please post a NEW thread in the forum requesting assistance with as much detail as you can, and someone will assist.


My System SpecsSystem Spec
.
27 Dec 2011   #2
jayster

 

Endured the registration prossess just so I copuld say "thank you". Your registry fix brought much joy. More than six months of searching for a fix ended when I found this registry merge. Thank you muchly!
My System SpecsSystem Spec
28 Dec 2011   #3
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)
 
 

Quote   Quote: Originally Posted by jayster View Post
Endured the registration prossess just so I copuld say "thank you". Your registry fix brought much joy. More than six months of searching for a fix ended when I found this registry merge. Thank you muchly!
You're welcome - that's why I posted it
My System SpecsSystem Spec
.

24 Jan 2012   #4
havis23

Window Vista Home Premium 32bit
 
 

wait!!! i'm a noob here... but at least i knew that i got the same problem...
can you tell me what to do from the first step to the last one..
or else, i wont understand..
--
thanks for help...
My System SpecsSystem Spec
25 Jan 2012   #5
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)
 
 

Quote   Quote: Originally Posted by havis23 View Post
wait!!! i'm a noob here... but at least i knew that i got the same problem...
can you tell me what to do from the first step to the last one..
or else, i wont understand..
--
thanks for help...
1) Highlight all the stuff in the Code box - then right-click on it and select Copy
2) Open Notepad
3) right-click in Notepad, and select Paste
4) Save the file as 'regfix.reg' to your desktop
5) close Notepad
6) doubleclick on the regfix.reg file - and confirm it when teh IAC box pops up,
7 ) Wait until you get teh Success message, then reboot and test.
My System SpecsSystem Spec
28 May 2012   #6
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)
 
 

....Second thoughts!
Something has altered the permissions on that registry key. they now require to be modified before using the fix (bother!)

first, let's check that the Key is actually the problem
please run the following command from a COmmand Prompt window, and post the results.

reg query HKEY_CLASSES_ROOT\CLSID\{B54F3741-5B07-11cf-A4B0-00AA004A55E8}\InprocServer32


post the results.

Here are some instructions to make life easier
1) To open an Elevated Command Prompt Window (the CP window), click on Start, All Programs, Accessories – then right-click on Command Prompt, and select Run as Administrator. Accept the UAC prompt.
2) To run the commands easier, highlight the block of commands, and right-click on the highlight – select Copy. In the CP Windows, click on the black/white icon at top left – select Paste. The commands will run but may not complete the last command, so hit the Enter Key once.
3) To copy the results... click on the Black/White icon in the top left, and select Edit... 'Select All', and hit the Enter key - then use Ctrl+V or r-click+Paste to paste it into your response.
My System SpecsSystem Spec
31 May 2012   #7
Cyroq

Windows 7 Ultimate 64bit
 
 

I'm having the same problem, when running the regfix script I get a 'Cannot import' error. I pasted that line into cmd and this is what rolls out:

HKEY_CLASSES_ROOT\CLSID\{B54F3741-5B07-11cf-A4B0-0AA004A55E8}\InprocServer32
(Default) REG_SZ C:\Windows\system32\vbscript.dll
ThreadingModel REG_SZ Both

Still having vbscript.dll errors though.
My System SpecsSystem Spec
31 May 2012   #8
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)
 
 

In that case, your problem is a different one.
Please start a new thread of your own in the Crashes and Debugging forum here, ancluding your exact error messages and the above results, and someone will assist - certainly me, and probably a few others also.
My System SpecsSystem Spec
11 Oct 2012   #9
Fipps

Windows 7 Home Premium 64bit
 
 

Hey, found this forum via google and hoped for a fix. following your instructions this is what is stated in cmd after inquiring the regkey:
Code:
C:\Windows\SysWOW64> reg query HKEY_CLASSES_ROOT\CLSID\{B54F3741-5B07-11cf-A4B0-
00AA004A55E8}\InprocServer32

HKEY_CLASSES_ROOT\CLSID\{B54F3741-5B07-11cf-A4B0-00AA004A55E8}\InprocServer32
    (Standard)    REG_SZ    C:\Program Files (x86)\Common Files\McAfee\SystemCor
e\ScriptSn.20120926201932.dll
    ThreadingModel    REG_SZ    Both
The idea to simply copy and rename the vbscript.dll into that folder (which doesn't exist anymore since I uninstalled bloody McAfee..) after recreating it did not work.

UPDATE: I had a typo in the dll's name. After registering it via regsvr32 it now seems to work alright. Still it's a very ugly solution - maybe you can figure out a more elaborated way.
My System SpecsSystem Spec
11 Oct 2012   #10
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)
 
 

Quote   Quote: Originally Posted by Fipps View Post
UPDATE: I had a typo in the dll's name. After registering it via regsvr32 it now seems to work alright. Still it's a very ugly solution - maybe you can figure out a more elaborated way.
Why? - this one works!
My System SpecsSystem Spec
Reply

 CScript Error: Can't find script engine "VBScript" -alternate solution




Thread Tools




Similar help and support threads
Thread Forum
script error for "googletagmanager.com" while installing video driver
I downloaded the new nvidia drivers via geforce experience. While it was installing, it had a slide show advertising things like shadowplay or nvidia shield, etc. I clicked on one, and it brought me to internet explorer, which was fine. However, when I clicked on the left side of the slideshow, I...
Graphic Cards
Cant find VBScript engine
I have been trying to learn vbs script but get this error message (in vista), I am a newb so a good guide would be appreciated. PLEASE NOTE I HAVE TRIED THE REGSVR32 command so its likely I will need instructions on how to modify the registry should there be an error with the key forums have...
General Discussion
Cannot install windows 7 "partition error" microsoft solution not work
Hi, I am unable to install windows 7 onto my computer. When going to custom in the installation menu and selecting the partition and then pressing ok/install the following error message comes up: "setup was unable to create a new system partition or locate an existing system partition. See...
Installation & Setup
VBScript to create "Restore Point" in Win7
A lot of drilling is required to create a restore-point. This a sample VBscript I found in my research ... Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore") strDescription = InputBox("Restore point description: ","My Restore Point") MYRP = IRP.createrestorepoint (strDescription,...
Backup and Restore
Getting CScript Error: Can't find script engine "VBScript".
I don't remember when was the first time I got this error... I think that was April '11... Here, to be precise: http://www.sevenforums.com/system-security/155615-rpc-virus-virus-2.html#post1334750 I must have spent my time trying to fix it...but got nothing... So, yesterday...I ran...
Windows Updates & Activation
Can't Find Script Engine - VBScript
Hi, I'm having the above titled problem after I removed Kaspersky Internet Security 2011 from the system. Already tried KAV Remover & other uninstall softwares to clean up the Kaspersky's leftovers. Also tried various methods; re-register regsvr32 jscript.dll / regsvr32 vbscript.dll / etc.. ...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App