Unable to Open Hard or USB Flash Drive with Windows Script Host Cannot Find Script File autorun.vbs Error

In some situation especially when anti-virus program has cleaned, healed, disinfected or removed a worm, trojan horse or virus from computer, there may be error happening whenever users try to open or access the drive by double clicking on the disk drive icon in Explorer or My Computer window to try to enter the drive’s folder. The problem or symptom happens in hard disk drive, portable hard disk drive or USB flash drive, and Windows will prompt a dialog box with the following message:

Windows Script Host

Can not find script file autorun.vbs.

Sometimes you will be asked to debug the VBScript with error code of 800A041F – Unexpected ‘Next’.

or

Choose the program you want to use to open this file with:

In this case, the “Always use the selected program to open this kind of file” option is grayed out.

The symptom occurs because when autorun.vbs is created by trojan horse or virus. The virus normally loads autorun.inf file to root folder of all hard drive or USB drive, and then execute autorun.bat file which contains script to apply and merge autorun.reg into the registry, with possible change to the following registry key to ensure that virus is loaded when system starts:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
Userinit=userinit.exe,autorun.exe

Finally, autorun.bat will call wscript.exe to run autorun.vbs.

When antivirus or security software detected the autorun.vbs file as infected, the file will be deleted or removed or quarantined. However, other files (autorun.*) and registry value still referring to autorun.vbs, and this document no longer exists, hence the error when users double click to open a drive folder.

To correct and solve this error, follow this steps:

  1. Run Task Manager (Ctrl-Alt-Del or right click on Taskbar)
  2. Stop wscript.exe process if available by highlighting the process name and clicking End Process.
  3. Then terminate explorer.exe process.
  4. In Task Manager, click on File -> New Task (Run…).
  5. Type “cmd” (without quotes) into the Open text box and click OK.
  6. Type the following command one by one followed by hitting Enter key:

    del c:\autorun.* /f /s /q /a
    del d:\autorun.* /f /s /q /a
    del e:\autorun.* /f /s /q /a

    c, d, e each represents drive letters on Windows system. If there are more drives or partitions available, continue to command by altering to other drive letter. Note that you must also clean the autorun files from USB flash drive or portable hard disk as the external drive may also be infected.

  7. In Task Manager, click on File -> New Task (Run…).
  8. Type “regedit” (without quotes) into the Open text box and click OK.
  9. Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

  10. Check if the value name and value data for the key is correct (the value data of userint.exe include the path which may be different than C drive, which is also valid, note also the comma which is also needed):

    “Userinit”=”C:\WINDOWS\system32\userinit.exe,”

    If the value is incorrent, modify it to the valid value data.


122 Responses to “Unable to Open Hard or USB Flash Drive with Windows Script Host Cannot Find Script File autorun.vbs Error”

Pages: « 5 4 [3] 2 1 » Show All

  1. avesh
    January 28th, 2008 12:26
    75

    thanks a lot.
    The tutorial is great.
    all sub7 trojens were removed.

  2. Deepakraj
    January 26th, 2008 13:12
    74

    I am still not able to solve my problem through this procedure.
    I am still having a problem opening my hard drives.
    The message which appears for D:\ drive is :
    Can not find script file “D:\mma.vbs”.

    and for C:\ drive is :
    Can not find script file “C:\mma.vbs”.

    when I right click on the drives following thing is written with the drive name in brackets

    Open(Sub7@Chatx.net)
    explore(Sub7@Chatx.net)

    Please do help me…

  3. don
    January 19th, 2008 12:41
    73

    THANK YOU VERY VERY MUCH MAN U SAVED MY PC
    THANK U
    PLEASE SEND ME UR SITE WHICH HAS MORE TIPS AND TRICKS
    THANKS ONCE AGAIN

  4. Buzor
    January 17th, 2008 02:52
    72

    10x Bro u r just great

  5. whinz
    January 16th, 2008 14:54
    71

    thnx.. nice one… hehehe

  6. Eric Gits
    January 10th, 2008 00:52
    70

    i opened my flash disk by double clicking it on my computer i saw a file called Sex City.jpg.wsf i then deleted it after trying to open it in vain.Now i cant open the disk at all by the same method.when i double click it on my computer, it brings a pop up “cant find script file \Sex City.jpg.wsf” when i try to open the files thro the explorer they either wont open or all appear corrupted.what can i do somebody please help me.this flash is also my mp3 player.the sngs are corrupted too.

  7. prijesh
    December 18th, 2007 20:30
    69

    but what will be the contain in autorun.vbs, if we delete it, it will not effect my system.

    thank you

    prijesh
    http://www.pentaitservices.com

  8. vince robins
    December 15th, 2007 10:02
    68

    hi im vince…what are other ways to heal maskrider virus? i tried to heal it but its says that access to that virus is denied. pls help. thnks so much.

  9. deli
    December 14th, 2007 07:15
    67

    tenho vista home premium e nao consigo por a detectar uma porcaria de pen disk my flash pd9 da adata instalada no pc. porque?

  10. fanar
    December 9th, 2007 16:56
    66

    my hard disk not to open apear message access is denied

  11. debo
    December 8th, 2007 02:24
    65

    thanks it worked very well,
    but after i restart my computer, it starts all over again, so i have to do everythin over again,. is it normal?

  12. Debo
    December 8th, 2007 01:37
    64

    You’re the best!!!! It worked so quick, i had tried so many things including typing “regsvr32 /i shell32.dll” in the run but it ll didnt work. thanks.
    it even solved the problem of me not being able to see my removable disk. God bless you!!!

  13. kishore
    December 6th, 2007 22:39
    63

    when i did above things in mycomputer.
    Iam able to open only C drive.
    when iam trying to open d,e drivers it goes again to mydocuments.

    can you pls suggest me.

    Problem: when i click any d,e drives it takes me directly to mydocuments folder.

    thanks
    kishroe

  14. Afroz
    November 28th, 2007 05:57
    62

    thaxs a million tons

  15. Mayur
    November 27th, 2007 07:21
    61

    My flash drive started working fine, but then after couple of days it got messed up again. So now I use the folder tree to get to my flash drive. Can somebody give me a permanent solution.

    Thanks

  16. Abdullatif
    November 24th, 2007 04:13
    60

    at first thanks alot friend, but it solved half of the problem, the other half is yahoo messenger still don’t work, do you have any idea for that, thanks in advance.

    Abdullatif

  17. Jabir Bangash
    November 18th, 2007 16:14
    59

    hi my name is jabir. I am working with an ISP as broadband Network Engineer. I was facing this problem from a long time. I follow the above easy steps and i got rid of this stupid drive virus.
    thanks alot…………..

  18. Joseph Laurence Alcomendras
    November 16th, 2007 14:15
    58

    …..thanks it works.. my pc now is good as it gets..thanks man!!!!

  19. Sharmila
    October 17th, 2007 12:59
    57

    Thanks a lot .. It helped me fix my external harddisk

  20. Frenzess-Joy
    October 14th, 2007 19:12
    56

    Gud day…
    I’ve tried ur step-by-step solution, but it did not work for me…
    Maybe it’s because my problem is about “mma.vbs”, and not “autorun.vbs”… Could you suggest some ways in which I could solve this problem?
    Thanks a lot in advance… I wish you could help me with this problem…

  21. Mayur
    September 18th, 2007 23:10
    55

    Hey man i tried that solution, and my value for Userinit was not different from what you wrote. It solved my previous problem, in which it opened the OPEN WITH dialog box. But now when I click on the drive it opens a new search window. It doesn’t go into the drive

  22. Alkali
    September 12th, 2007 22:51
    54

    I tried your solution with all drives but except C:\ Drive all other Drives are working fine….

    Would you please suggest some solution for C:\ Drive….

    Thanks in advance….

  23. Gonzalo
    September 9th, 2007 14:46
    53

    thank you very much for the explanation and very well written steps. ;)
    …it solved the problem

  24. reilly
    September 8th, 2007 08:26
    52

    This worked for my hard drives but my computer wouldn’t delete the flashdrive autorun because it doesn’t read it. What can I do to fix this?

  25. Kevin
    September 5th, 2007 20:38
    51

    thanks a lot. u r simply great! may god loves u and your family =)

Pages: « 5 4 [3] 2 1 » Show All

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

usb.wsf - can not find script file usb.wsf - cannot find script file usb.wsf - gova.vbs remover - usb.wsf virus - unable to open usb flash drive - gova.vbs - usb anti autorun\usb.wsf - unable open hard disk - cant use my USB with an error ''window script host" - cannot find script file .vbs - can not find script file - choose the program you want to use to open this file - usb drive open with - cannot open usb drive - what is usb.wsf - usb.wsf error - gova.vbs virus - can not find script file vbs - usb anti autorun/usb.wsf - autorun.inf windows 7 workaround - cannot find script file anti.vbs - unable to open usb drive - c:\program files\usb anti autorun\usb.wsf - cannot find script file auto1.vbs - how do you open a usb file - virus cleaner+gova - flash drive "choose the program you want to use to open this file" - usb flash open with - can not open usb flash drive - open with drive problem - virus choose the program you want to use to open this file - "usb.wsf"+autorun +remove - mma.vbs - unable to open pen drive on double click - unable to open external hard disk - USB open program - windows script host cannot find script file - all - cannot open usb flash drive - removing autorun.vbs - unable to open script file usb - can't open flash jargon script - jargon.vbs - cannot find script file c windows jargon.vbs - can not find script file .vbs - can not find script file system.vbs - removing gova.vbs - unable to open the drives - usb device choose program to open -