ACTIVE MALWARE WINDOWS

How to fix
“Can not find script file C:\Windows\run.vbs” error
on Windows

Resolve the "Cannot find script file C:\Windows\run.vbs" error on Windows 10/11 effortlessly. Follow our expert-tested solutions for quick fixes!

How to fix “Can not find script file C:\Windows\run.vbs” error ?
Quick Summary
Error severity
Medium
Est. time
20 minutes
Offer Fortect PC Suite
Start fix →
Ad · we may earn a commission
0 Comments
01

What causes How to fix “Can not find script file C:\Windows\run.vbs” error ?

  • Computer is infected with malware
  • Malicious program manipulates Userinit registry value
  • Malware deletes or moves the .vbs file from System32 folder
  • Malware spreads via spam email attachments
  • Malware spreads through peer-to-peer (P2P) networks
  • Malware spreads through malvertising
Offer Fortect PC Suite

Repairs Windows system files, removes malware, and restores a clean OS state — without reinstalling.

Ad · we may earn a commission
Get Fortect PC Suite ↗

Hi, I tried logging into my computer and a black screen appeared with an error window stating that the Windows startup file cannot be found. I have no idea what this is. How can I fix this "Can not find script file C:\\Windows\\run.vbs" error?

"Can not find script file C:\\Windows\\run.vbs" is an error which might appear on Windows operating systems[ref en-1]. Researchers note that this issue is not related to the software/hardware or applications. In fact, it indicates that your computer is infected with malware[ref en-2]. 

You can encounter a black screen when trying to log in into the computer as the malicious program manipulates Userinit registry value and changes Windows default value data with Vbscript filename. Since this virus deletes or moves the .vbs file from the common System32 folder, users receive "Can not find script file C:\\Windows\\run.vbs" error. 

Usually, malware causing "Can not find script file C:\\Windows\\run.vbs" problem spreads via spam email attachments, peer-to-peer (P2P) networks or malvertising. Users who tend to download music or movies illegally, click on suspicious online ads, or open spam emails risk infecting their computers with this and other cyber threats. 

Run vbs error
Run vbs error

 

Note malware which is leading to "Can not find script file C:\\Windows\\run.vbs" error can be programmed to perform other malicious actions on your system, including the following:

  • Logging keystrokes;
  • Infiltrating potentially unwanted programs (PUPs) or malware;
  • Creating a backdoor by connecting the PC to the remote server.

Our security experts recommend you to protect your computer and private information. For that, you should use a reliable antivirus software to perform regular scans and eliminate potentially unwanted programs (PUPs) or malware. [d1] can help you fix "Can not find script file C:\\Windows\\run.vbs" error automatically and uninstall the malware as well. 

Otherwise, you can try to fix "Can not find script file C:\\Windows\\run.vbs" issue by resetting the registry keys back to defaults. However, as it might get risky to cause more system damage, we have prepared instructions showing how to fix "Can not find script file C:\\Windows\\run.vbs" below.

Two ways to fix "Can not find script file C:\\Windows\\run.vbs" error on Windows

Note that if you choose to fix "Can not find script file C:\\Windows\\run.vbs" error manually, you must not forget to uninstall the malware as well. Unfortunately, this can only be done by running a full system scan with a professional antivirus or by an IT specialists. 
This video will make your life easier:
[youtube xDbWVBfLJN8]

Method 1: Edit Registry Keys

Please, be attentive when editing Windows Registry[ref en-3] keys — if you fail to enter them correctly it might lead to further damage of the operating system. Likewise, carefully follow these steps:

  1. Log in and press CTRL + ALT + DEL until Task Manager appears;
  2. Click File button and select Run New Task;
    Create explorer exe task
    Create explorer exe task
  3. Type explorer.exe and press Enter;
  4. Press Windows key + R and enter Regedit.exe;
  5. Go to HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\Current Version\\Winlogon;
    Run vbs error
    Run vbs error

  6. Double-click on Userinit item;
  7. Change the value data from wscript C:WINDOWS\\run.vbs to C:\\Windows\\system32\\userinit.exe;
  8. Log off and log in again.

Method 2: Change the value of .vsb key

  1. Click Windows key + R and submit Regedit.exe;
  2. Go to Computer\\HKEY_CLASSES_ROOT\\.vbs on the left;
    Change the value of vbs key
    Change the value of vbs key
  3. Double-click Default value;
  4. Set the value to VSBFile;
  5. Click OK and check if the problem is resolved.

Bottom line

To fix the 'Can not find script file C:\Windows\run.vbs' error, you can use reliable antivirus software to perform regular scans and eliminate malware. Alternatively, you can reset the registry keys back to their defaults, but this may risk further system damage. If these solutions do not work, consider seeking professional assistance.

Frequently asked questions

This error typically occurs when a scheduled task or startup process is attempting to run a VBScript file that has been deleted or is missing from the specified directory.

You can search for the run.vbs file in other directories or check your system restore points; if it’s not recoverable, you may need to recreate the script or remove the task trying to run it.

Open Task Scheduler, look for tasks that reference 'run.vbs', and either disable or delete them to stop the error from appearing during startup.

Did this fix work for you?
Gabriel E. Hall

Written & verified by

Malware Removal Expert
Malware removal Ransomware recovery Browser hijackers Spyware analysis Security tools testing

Gabriel E. Hall is a malware removal expert and cybersecurity researcher with over ten years of hands-on experience analysing threats and writing removal guides. She has documented hundreds of malware families — from browser hijackers and adware to ransomware and rootkits — providing step-by-step cleanup instructions tested against real infections. Gabriel's work combines deep technical analysis with clear, actionable language that readers without a security background can follow. Her guides consistently appear among the most-referenced resources for malware removal on Windows systems.

0 Comments

Be the first to comment

Still worried? Run a free check.

Paste any URL or domain — we'll scan it against 4.2M known threats in 10 seconds.

View full scanner → Add to your website →