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

Page 1 of 4 123 ... LastLast

  1. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
       #1

    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.
    Last edited by NoelDP; 15 Dec 2012 at 05:29. Reason: include Win7 as option
      My Computer


  2. Posts : 1
    vista 32 bit
       #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 Computer


  3. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
    Thread Starter
       #3

    jayster said:
    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 Computer


  4. Posts : 1
    Window Vista Home Premium 32bit
       #4

    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 Computer


  5. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
    Thread Starter
       #5

    havis23 said:
    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 Computer


  6. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
    Thread Starter
       #6

    ....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 Computer


  7. Posts : 4
    Windows 7 Ultimate 64bit
       #7

    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 Computer


  8. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
    Thread Starter
       #8

    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 Computer


  9. Posts : 1
    Windows 7 Home Premium 64bit
       #9

    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.
    Last edited by Fipps; 11 Oct 2012 at 07:26. Reason: Update
      My Computer


  10. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
    Thread Starter
       #10

    Fipps said:
    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 Computer


 
Page 1 of 4 123 ... LastLast

  Related Discussions
Our Sites
Site Links
About 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 21:00.
Find Us