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. oh yeah
    September 5th, 2007 14:20
    50

    Excellent!
    Thanks. Worked great

  2. Wscipt.exe - TechEnclave
    August 27th, 2007 13:08
    49

    [...] i got stuck with Wscipt.exe i did google i find it was Unable to Open Hard or USB Flash Drive with Windows Script Host Cannot Find Script File autorun.vbs … i did what it said but now when i done i get thi error when i open drive on hdd or pen drive i am [...]

  3. Anil
    August 25th, 2007 08:12
    48

    Thanks man.. it GREEEAAATEEEEE

  4. Jules
    August 22nd, 2007 18:12
    47

    Thanks man
    It working very well.
    Y’re a great man.
    God bless you

  5. Alex
    August 19th, 2007 21:51
    46

    Tbankssssssssssss you jst saved a computer

  6. chris
    August 18th, 2007 01:17
    45

    thanks man it really works

  7. hassan
    August 14th, 2007 17:34
    44

    thankx man God bless u .but u forget to tell one thing that after the whole great process one must restart his computer.and all done………

  8. hassan
    August 14th, 2007 17:31
    43

    hey man i dont know how to thank u .i tried every software but couldnt get myself out of this problem.God bless u man.may u live long.onece again thank u thank u very much……………

  9. hassan
    August 14th, 2007 17:02
    42

    hey i have followed all the but still can not find the way out.i can not open my drives with some fucking chinese words

  10. abid
    August 3rd, 2007 20:07
    41

    hi, this solves my problem…Thanx papu..

  11. zia
    August 3rd, 2007 19:42
    40

    Weldone. Thank you very much

  12. prabu
    July 22nd, 2007 20:10
    39

    thks for u informatiom. I gone through the simple steps as per ur instructions and my system works fine. thks again…

  13. Darshan
    July 19th, 2007 20:07
    38

    Thanks man..

  14. Arjun Reddy G
    July 16th, 2007 20:49
    37

    thanks dude!!!

    ur instructions are amazing…
    my system is working is fine.

    nyways this article is fucking amazing
    and I hope it’s very clear to everybody…

    Thanks & regards,
    Arjun Reddy G.

  15. ani
    July 15th, 2007 16:36
    36

    it,s really cool . well guy,……

  16. Dave
    July 13th, 2007 01:35
    35

    Hey i’ve gone through the steps described in the help and still no solution. The autorun files keep reappearing when i reboot. Also in my case i have another file aswell which is a .exe file and the name keeps on changing to a random 9 letter prefix. This program launches when i double click on a hard disk and the uses 100% of my cpu until i end the process. Ive tried insalling that script defender and even changed some of the permissions on the drives. Nothings working. I cant do a clean install either because it is on all the drives and this is my Digital Audio Workstation with 100gb+ of data on it so a backup isn’t viable.
    One final thing the virus was transmitted by my pen drive and not through the internet.

    Any help is much appreciated

    Yours

    Dave Major

  17. LNSJ
    July 11th, 2007 00:06
    34

    thanx a lot brotha !!!

  18. LNSJ
    July 11th, 2007 00:05
    33

    thanx a lot bro………u r da man !!!

  19. Sohail
    July 9th, 2007 20:46
    32

    Hey it worked perfectly fine with me. Thank You very much.

  20. Vinay
    July 9th, 2007 03:18
    31

    Thanks a ton for this valuable information..

    It was very frustrating when the drives wont open on a double-click. Your solution helped.

    Thank you once again :)

  21. Ahmad
    July 7th, 2007 19:35
    30

    Thank you so much, it really help me…

  22. spm
    July 4th, 2007 09:34
    29

    Thanks, this article helped me solve this problem,
    but it took me some time googling to find this article, so I decided to write some tags to help other googlers find their way to this page.

    “remove auto from drive context menu”
    “edit drive context menu”
    cannot open c: drive +auto +menu

  23. dan
    June 29th, 2007 08:39
    28

    I tried this, works great. Fixed the my problem with my machine reading USB drives.

    Was getting this problem on double click:

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

  24. Ken
    June 28th, 2007 20:08
    27

    My HKEY was “Userinit”=”C:\WINDOWS\system32\userinit.exe,”. Still have the same problem. None of my hard drives will open when doing a double click.

  25. stamos
    June 27th, 2007 17:13
    26

    also before i delete autorun files, when i put a removable disk a window appeared with the name” attrib.exe” and said” no hard drive found in hard Disk/DDR1/DDR2″ something like that. many times, that it started to get on my nerves. i presed cancel and then the same window appeared with deferent DDRs

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

gova.vbs - cannot find script file - choose the program you want to use to open this file c - usb.wsf - post free ads gova - gova virus - can not find script file J:\antivirus.vbs - windows script host C:\windows\jargon.vbs - cannot open folders on usb virus - cannot open usb drive - choose the program you want to use to open this file - flash drive open with program - "can not find script file" usb.wsf after reformat - C:\Program files\usb anti autorun\usb.wsf - cannot find autorun.vbs - unable to open c with double click - choose the program you want to use removable drive error - corsair flash drive choose program to open file - unable to download dogwaffle to harddisc - _sws.vbs - are my stored jpegs safe from worm virus on external drive - autorun vbs removal - cannot open drive choose program - choose program to open hardisk - d Windows+7&Vista&XP+Touch+AIO.iso.torrent - double click hard disk, open CMD shell instead - flash drive open - god fucking help me remove autorun.inf - how to correct autorun on harddisk - jargon.vbs flash drive - open usb flash files - Open folder to view files usb - unable to open pen drive in Vista - unable to open hard disk - usb flash drive virus windows cannot msi.com regedit - when i double click my external drive its says windows cannot find usb.exe - windows jargon vbs. - c.autorun.vbs - CAN'T FIND SCRIPT FILE G:/SOLUTION.VDS - cannot open flashdrive always shows open with - can't open local disk (c:) open with "choose the program you want to use to open this file" - cant open my flash drive because of tend micro - can not find script file H:\UjBright_Antivirus.vbs - cannot open folder message unable to open script file - error opening hard disk - Flash Disinfector - free autorun.inf trojans removal tool - hard disk unable to open disk management - mma.bat mma.reg mma.vbs codes - remove gova.vbs - unable to open \\.\physical drive -