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

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 Windows 7 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

 

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

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

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

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

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

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

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

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

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 for2: CScript Error: Can't find script engine "VBScript" -alternate solution
Thread Forum
Cant find VBScript engine General Discussion
Cannot install windows 7 "partition error" microsoft solution not work Installation & Setup
VBScript to create "Restore Point" in Win7 Backup and Restore
Script error, "can't Load or run appendchild" Browsers & Mail
Getting CScript Error: Can't find script engine "VBScript". Windows Updates & Activation
Can't Find Script Engine - VBScript General Discussion
VBS script: Cannot find script engine 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 02:57 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33