Solution: Can’t find script engine “VBScript” for script.

This is a problem I’ve run into probably 3 or 4 times, and each time, the solution is the same.  It’s a frustrating issue that can drive you nuts if you don’t know where to look to correct it.

Most solutions on the internet point to a bit of a dead end comprised of general-purpose advice for any sort of library-related problems in Windows.  They advise that you try the following commands at an elevated Command Prompt:

cd %windir%\system32
regsvr32 vbscript.dll
regsvr32 jscript.dll

Problem is, this never seems to work… at least, not on the machines I’ve worked on.

Fortunately, the real solution is comparably easy.  Open up regedit and check the following registry key:


Within it, there is a registry value called (Default) which should carry a Data value of:


If it says something else, you’ll need to change it to match the above.  This should fix your problem!

So what’s the reason for the bad value?  Nearly always, it’s thanks to a broken or partially uninstalled antivirus (the most common culprits are McAfee and avast!, both of which I’ve seen leave behind values in this key after an attempted uninstall).  AV programs use this value to redirect script processing through a driver of their own for filtering purposes so that they can check for suspect behavior.

Donate to say "Thanks" if this post has helped save you time and money! 🙂

50 thoughts on “Solution: Can’t find script engine “VBScript” for script.

  1. I have been Googling this problem and came across this post. I started having a VBScript problem (window keeps saying can’t find script engine “VBScript” for script. I am pretty sure it must have something to do with Avast. However, I couldn’t follow through on the instructions I found in this item because HKCR\CLSID\{B54F3741-5B07-11cf-A4B0-00AA004A55E8}\InprocServer32 does not appear in my registry. I am something of a novice and wonder if anyone might be able to help me further with this?

  2. I get “Cannot edit: Error writing the value’s new contents.” Error Message. What do I do now?

  3. Nikilet,

    Sorry for the late reply; I have been very busy!

    It’s strange you are receiving the error without that registry key intact. You might next try running an avast removal tool to ensure every trace of it is removed:


    Sounds like a permissions issue. Right-click the registry key and select Security. Take ownership of the key and its contents, then edit the permissions to allow Full Control to Everyone. Let me know if this helps!


  4. Hi! I didn’t realize you had answered me. I did find the key. I’m a novice and I was looking under the wrong CLSID, but I persisted and finally found it. Under the key are
    Implemented Categories (Default) REG_SZ (value not set)
    InprocServer32 (Default) REG_SZ C:\Program Files\Alwil
    Default Engine REG_SZ C:\Windows\system32\
    ThreadingModel REG_SZ Both
    OLEScript (Default) REG_SZ (value not set)
    ProgID (Default) REG_SZ VBScript

    First, I think avast!5 was the free antivirus I used for a while. Then I uninstalled that and installed their avast! Internet Security, which is presently v. 7.

    Does this help any?

  5. So sorry, I didn’t realize I had two different replies. To Steve, previously I couldn’t have done as you instruct because I couldn’t find the key. Now that I have found it, I don’t know how to do what you ask. I have the Permissions box open, but I don’t know the steps to take. Only the TrustedInstaller has Full permissions. When I click on my Administrators account it is read only, same for SYSTEM.

  6. I thought this was going to be a breeze, but the instructions aren’t altogether clear to me. When I go to Advanced/Owner tab, it lists Administrator’s account with my name on it, and it lists just my name as “My PC.” I’m the only one who uses this computer and I use the administrators account. Which one do I select?

  7. I don’t know if I did things correctly or not, but I was able to open the key to that first Permissions box and select my administrator account and user account, go to the bottom and select FULL under the permissions.

    Let’s just assume I did that right. Now, based on the info I gave above as to what is listed under this key, what do I change? Under InprocServer32, (Default), Data is listed as Avast. But under Default Engine is C:\Windows\system32\vbscript.dll. Do I only need to put the C:\Windows\system32\vbscript.dll under Data in the (Default) line too?

  8. I had made a backup of the whole registry, and then also individual backup of this key and I decided I didn’t want to wait for an answer so I went ahead and tried it. It worked! my VBScript works again. But now do I need to figure out how to change that key back to what it was?

  9. Hey Nikilet,

    Yeah, I get busy pretty quickly in this industry. It’s good to hear you got it working… what do you mean how to change it back to what it was? Didn’t you just fix it? 😉


  10. I spent hours looking around for a solution to this problem. I use the RDP plugin quite a bit and it just stopped working. I could see that vbscript wasn’t running (I even tried debugging it in VisualStudio but breakpoints wouldn’t set). But your solution worked. Given the cause of the problem I’m surprised there isn’t a lot more information about it. A demo version of Mcafee came pre-installed on my laptop and I removed it before it expired. And now, after finding this post, I can see that it left its detritus behind. Other things are misbehaving a bit… I imagine these are similar problems.

    Your solution is so specific… like a needle in a haystack. How did you figure this out?

    Thanks so much,

  11. Good work!
    I was looking for it.
    The registry key was pointing to the directory from McAfee. I had uninstalled McAfee before.
    Thank you!

    Hugs from Brazil.

    Bom trabalho!
    Estava procurando por isso.
    A chave do registro estava apontando para o diretório do McAfee. Eu tinha desinstalado o McAfee antes.
    Muito obrigado!

    Abraços do Brasil.

  12. Hi there and thanks very much for the good advice. I was able to solve the problem with CISCO VPN Client Installation using first your procedure and then applying the following:

    CISCO IPSec VPN Client Installation Issues on a 32 bit Machine running Windows 7 — internal error code 2738
    VERSION 2 Click to view document history

    In case we see the error message Internal Error 2738 follow these steps:
    1. Run a command prompt in administrator mode (Start/All Programs/Accessories/ right click on Command Prompt, select Run As Administrator)
    2. type: cd %systemroot%\system32
    3. type: regsvr32 vbscript.dll Now try installing the client in admin mode on Windows 7. If the same error pops up again use the following:
    a. Click on the Start menu, choose Run, type cmd and click OK
    b. To unregister the VBScript engine, run this command: reg delete “HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8}” /f
    c. type: regsvr32 vbscript.dll

    There are many candidate solutions for the issue but none seemed to work for me and browsing the forums it seems that many have shared this exprience.

  13. Pingback: How To Fix The Error: Can’t Find Script Engine “VBScript” For Script

  14. Thanks so much for the post, it pointed me in the right direction. In my case it was that the Macafee that was preinstalled on a new laptop was uninstalled before the first reboot. This left the registry keys pointing at the now uninstalled macAfee substitutes. I was able to download their removal tool from their website, ran it and that cleared the issue after a reboot.

  15. Hi All… I’ve had this same problem for the past 18 hours… I tried everything listed here but nothing seemed to work. . I had just uninstalled Kaspersky Internet Security and installed BitDefender Internet Suitem then tried to run Zimbra Desktop. My error was the same as many of you have received. … something like “can’t find script engine “Vbscript” etc. etc. ” I really don’t know why the reg changes didn’t take… something missed by me perhaps. In any case……….
    Anyway… I checked elsewhere and at this site found a script which I used and YES YES YES…. I ran the script as Admin and it worked first time… I have Win 7 Ult btw. Anyway… thanks to all the folks here who have done the leg work leading me up to the solution… and to the folks at Windows Seven Forums who got me over the finish line! Here is the link: Scroll down to the msi file and download. Hope this helps anyone else with the same problem.

  16. Thanks a million for that! I had the same message come up on startup after removing mcafee (surprise surprise…..). I had no idea where to go or what to do till you told me.

    A real sanity-restorer 🙂 !!!!

  17. Hello,
    I have read all the replies and for some reason i allowed full control to every user, but every time i try to do it for Owner/Creator it reverts back to special permissions and still won’t let me put in the new script. Any suggestions on how to fix this?

    thank you,

  18. Coty,

    To be honest, this particular key featuring Full Control permissions for Everyone really doesn’t present much of a security risk. If a malware specimen seeks to infect you, it will not be the first place it will turn, and likely by the point where it gains the ability to traverse the registry it will already have achieved the privilege escalation necessary to edit the value anyway.

    In short, I don’t think I’d worry about it in the least.


  19. I am using windows 8 and trying this method…when I right click to change the path, I have several options, those being, key, string value, DWORD (32 bit value), QWORD (64bit value), multi-string value, expendable string value, Binary Value.

    I am not sure which to click

  20. after installation of VB 2008 it shows installed successfully but when i go to program files\visual studio 8\empty (the folder shows nothing) what should i do…? Plz reply ASAP .. its urgent.. thnxx in advance 🙂

  21. This is THE solution! Thank you SO much. McAfee caused the same issue to me, and i have not been able to update my toshiba drivers ever since (they ship with a vb installation). Thank you thank you i will blog link your article on my blog, in case someone has the same issue! Need to spread the word as much as possible 🙂

  22. Hello, I’m having this problem as so many other it seems, yet my computer is really putting up a fight.
    I get all the way to the last part of your solution, the changing of the data value. However, when i try to change it from C:\Program Files\Common Files\McAfee\SystemCore\ScriptSn.20120906162058.dll to C:\Windows\system32\vbscript.dll i get a pop up box saying “can not edit. Error at reading of new value content” well it doesn’t really say that, but it’s as close as it get’s (i’m norwegian, my computer is on norwegian). So it won’t let me change bloody thing. Am i doing something wrong?

  23. Hi there,
    ive followed all the instructions but ive already uninstalled the antivirus McAfee since long, what shall i do now? Can u help?

  24. Hi there,
    Ive followed all the instructions to change the default one but the problem is that ive uninstalled the antivirus McAffe since long, its not working. when i swicth on my notebook, the same box appear cant find vbscript .. Can u help, what shall i do?

  25. Thanks mate!

    This fixed worked well for me and McAfee is starting to lose my confidence if its apps cant fix what it breaks at least on unisntall =(

    Thank you again!

  26. Cheers mate your solution worked like a charm… McAfee ePO policy string was placed there.

    I just want to know if changing the above mentioned registry key would make any harm in the production servers.

    Please confirm.


  27. I totally agreed on that, but what if I need to install McAfee and some point? :S

    Will there be any misconfiguration or it will correct things itself?

    Thanks for the quick reply 🙂

  28. Hello I’m actually experiencing this problem of “can’t find script engine “VBScript for script. “C\ProgramData\497711409.vbs”
    Can you please help me as I’m using window vista .
    Thank for your help.
    ( France)

  29. Hello. I followed your directions. I found the register key. I am getting an error message when I attempt to change it. It states that I cannot edit the key. ANy suggestions? Thanks a bunch. I have been trying to get my windows firewall back and this 0X80070422 is another error I am trying to resolve.
    Thanks again.

  30. Same issue as everyone here, but editing the values of the Registry has not helped.

    Yes, McAffee had munged them.
    Yes, I was able to modify them.
    No, it did not help.

    The application in particular I am working with uses VBS to compute values to display in bar code labels. The bar code label values are not changing and this seems to be the reason why. Basically, it does not run VBS anywhere.

    Sigh. Any ideas?

  31. Hey there!,

    I had exactly the same issue I solved it by finding every instance of {B54F3741-5B07-11CF-A4B0-00AA004A55E8}\InProcServer32. And changing the, in my case McAfee, value to: C:\Windows\System32\vbscript.dll

    Hope this helps!


  32. Thanks for picking that one up for me Jon. Sounds like a reasonable recommendation to me too. Alvaro, it’s got to be something left in the registry as a reference to McAfee IMO. Do a search!

  33. Thank for this. It helped me out. Just like the last view replies before me I had to edit multiple lines before it worked. So there where multiple lines with the same value. So browse to HKCR\CLSID\{B54F3741-5B07-11cf-A4B0-00AA004A55E8} (or instead of HCKR go to HKEY_CLASSES_ROOT) and check if there are multiple lines.

  34. Fantastic — it was exactly the issue that was mentioned here. I changed the registry per the instructions given above and it fixed the issue.

    Thank You

  35. Thanks a lot. It was badly required. Your suggestion fixed my problem and get it done. Best Wishes.

  36. THANK YOU!!!This problem was on my daughter’s netbook and I could not figure it out. Ihad to go to EDIT to grant permission and then I was able to edit.

  37. Exactly correct! I had AVAST Free version, upgraded to paid, and got Can’t find script engine error.

    To get permission to change the entry in Vista, right click on InprocServer32, in the popup menu click on Permissions. In the Permissions window click Advanced. In the Advanced window click either Administrators or Users > Edit.
    In Permissions Entry window, beside Full Control check Allow > OK. That menu will close. Click Apply in the Advanced Security Settings window, then OK in the Permissions window. You can now right click and ‘Modify … ‘ the entry labeled (Default).

    I hope this clarifies how to gain permission.

  38. This post is much appreciated. I had this problem on a PC with McAfee installed, when trying to install the manuals for an Epson Expression C-225 printer.
    The regedit you advised sorted the problem, thanks for sharing!

  39. I had the problem with Epson manual software not downloading because it couldn’t find VBScript. Tried altering regedit as you suggested, but no luck, but did find out that McAfee had left behind and altered the register you advised editing. My solution was to use the McAfee removal software. This changed the register to just vbscript.dll in Windows 7 64 bit. Thank you I didn’t know McAfee would leave its foot prints on my software to this existent.

  40. I seem to be having the permission issue and followed the instructions below and it worked well for me.

    Sounds like a permissions issue. Right-click the registry key and select Security. Take ownership of the key and its contents, then edit the permissions to allow Full Control to Everyone. Let me know if this helps!

    Thanks Steve

    If still having trouble try running installation as administrator. Right click on on program and click on ‘run as administrator’

  41. I have tried many many times to fix the script engine by change registry key.
    but it doesn’t work at all. Even though run as administrator in safe mode.
    Could you help suggest me how to do ? Thanks.

    ps. My OS is Vista Business (32-bits) with SP2

  42. I my case, I had to set HKEY_CLASSES_ROOT\VBScript\CLSID value Default from (value not set) to {B54F3741-5B07-11cf-A4B0-00AA004A55E8}
    Thanks very much for the help.

Leave a Reply

Your email address will not be published. Required fields are marked *