Full Fix: Script file run.vbs is missing on startup on Windows 10, 8.1, 7
Windows 10 runs a series of essential scripts on startup, but sometimes users may encounter various error messages preventing them from logging in. One of the most frequent startup errors is this one: “Can not find script file C:\WINDOWS\run.vbs“.
More specifically, when users try to log in, a pop-up window appears on a black screen, informing users that the script file run.vbs is missing. This error occurs when a malicious program modifies your computer’s registry. Fortunately, there are two quick workarounds that you can use to fix this problem, and we’re going to list them in this article.
Here’s how to fix missing run.vbs errors
Run.vbs error can sometimes appear on your PC and cause certain issues. This can be an annoying problem, and speaking of problems, here are some similar issues that users reported:
- Cannot find script file Windows 7 – This is a variation of this problem, and it can appear on Windows 7 as well. To fix it, create a new user profile and check if the problem still appears.
- Run.vbs error Windows 7, 8.1, 10 – Unfortunately, this error can appear on any version of Windows, and previous Windows versions aren’t an exception. However, you can fix the issue using one of our solutions.
- Run.vbs error at startup – If this problem appears right on startup, it’s rather likely the issue is caused by malware. To fix the problem, modify your registry and perform a full system scan.
Solution 1 – Use a Windows restore point
Because of the black screen, it’s difficult to locate and uninstall the malicious software that’s causing startup issues. As a result, you should use your system’s restore point and revert the OS to the point where this malware wasn’t present on your machine.
To run System Restore, do the following:
- Press Windows Key + R to open the Run dialog. Now enter %systemroot%\system32\rstrui.exe and press Enter or click OK.
- Select Choose a different restore point and click Next.
- Now check Show more restore points checkbox and select the desired restore point from the menu. Pay attention to the Date and Time section, and pick a time when the issue wasn’t present on your PC. Now click Next to proceed.
- Follow the instructions on the screen to complete the restoration process.
Solution 2 – Run the commands listed below
If there is no system restore point available on your computer, follow the troubleshooting steps listed below:
- Type cmd in the Search Menu > run Command Prompt as an administrator.
- Type the following commands:
- reg add “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v “Shell” /t REG_SZ /d “explorer.exe” /f
- reg add “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v “Userinit” /t REG_SZ /d “C:\Windows\System32\userinit.exe,” /f
- reg add “HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon” /v “Shell” /t REG_SZ /d “explorer.exe” /f
After you run all commands, restart your PC.
Solution 3 – Perform a detailed system scan
It’s rather likely that run.vbs error was caused by malware on your PC. Sometimes malware will modify your registry and cause this problem to appear. To make sure that your system is malware-free, we advise you to perform a full system scan with your antivirus.
It’s worth mentioning that not all antivirus tools are equally effective, so you might want to consider Bitdefender antivirus. Bitdefender offers great protection, and it’s one of the best antivirus solutions on the market, so you might want to try it out.
Once you perform a full system scan and remove all malware from your PC, the problem should be completely resolved.
Solution 4 – Modify your registry
If you’re getting run.vbs error on your PC, the problem might lie in your registry. Sometimes malicious applications can modify your registry and cause this issue to appear. However, you can fix the problem simply by making a couple of changes in your registry. To do that, just follow these steps:
- Press Windows Key + R and enter regedit. Now press Enter or click OK.
- When Registry Editor opens, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon in the left pane. In the right pane, double-click the Userinit value.
- Make sure that Value data is set to C:\Windows\system32\userinit.exe, and now click OK to save changes.
Sometimes your PC might be infected with malware, and that malware will change the Userinit value in your registry. However, after modifying the registry, the issue should be completely resolved.
Several users reported that they are getting a black screen that is preventing them to do anything on their PC. If this happens, you won’t be able to access Registry Editor using the conventional methods. However, you can avoid this problem by doing the following:
- Press Ctrl + Shift + Esc to open Task Manager.
- When Task Manager opens, go to File > Run new task.
- Enter regedit and press Enter.
After Registry Editor opens, follow the instructions from above to change Userinit value.
Solution 5 – Change the value of .vbs key in the registry
According to users, run.vbs error can appear on your PC because the value of .vbs key was changed. To fix this problem, you need to do the following:
- Open Registry Editor like we showed you in the previous solution.
- Navigate to Computer\HKEY_CLASSES_ROOT\.vbs in the left pane. In the right pane, double-click the (Default) value.
- Set the Value data to VBSFile and click OK.
After making these changes, check if the problem is resolved.
Solution 6 – Perform SFC and DISM scans
If you’re having run.vbs error on your PC, the cause might be the corruption of system files. However, you can fix this issue simply by running SFC and DISM scans on your PC. To do that, follow these steps:
- Press Windows Key + X to open Win + X menu. Choose Command Prompt (Admin) or PowerShell (Admin).
- When Command Prompt starts, enter sfc /scannow command and run it.
- The SFC scan will now commence. Keep in mind that the scan can take about 15 minutes, so don’t interfere with it in any way.
After the SFC scan is finished, the problem should be resolved. If this issue is still present, you need to perform a DISM scan. You can do that by following these steps:
- Start Command Prompt as administrator.
- Run DISM /Online /Cleanup-Image /RestoreHealth command.
- The DISM scan will now start. This scan can take about 20 minutes or more, so don’t interrupt it.
Once the DISM scan is finished, check if the problem is still there.
If you can’t see anything except the black screen, you’ll have to run Command Prompt by doing the following:
- Press Ctrl + Shift + Esc to start Task Manager.
- Now go to File > Run new task.
- Enter cmd and make sure to check Create this task with administrative privileges. Now click OK or press Enter.
- Once the Command Prompt starts, run both SFC and DISM scans.
Solution 7 – Navigate to Safe Mode
Safe Mode is a segment of Windows that runs with default settings, so it’s perfect for troubleshooting problems such as run.vbs error. To enter Safe Mode, follow these steps:
- Restart your PC several times during the boot sequence.
- You’ll see three options available. Choose Troubleshoot > Advanced options > Startup Settings. Click the Restart button.
- Your PC will now restart. Once your PC boots, select any version of Safe Mode by pressing the appropriate key on your keyboard.
Once you enter Safe Mode, check if the problem is still there. If the issue doesn’t appear in Safe Mode, you can use it to fix the problem.
Solution 8 – Create a new user account
If you keep getting run.vbs error on your PC, you might be able to fix the problem simply by creating a new user account. Sometimes this problem can only affect your account, but you can fix that by doing the following:
- Go to Settings app >Accounts.
- Go to Family & other people. Select Add someone else to this PC in the right pane.
- Select I don’t have this person’s sign-in information.
- Now choose Add a user without a Microsoft account.
- Enter the desired username and click Next.
If you can’t access the Settings app due to this issue, you can create a user account from Command Prompt. To do that, follow these steps:
- Start Command Prompt as an administrator.
- When the Command Prompt starts, run the following commands:
- net user /add your_username
- new localgroup administrators your_username /add
After running these two commands, you’ll create a new administrator account on your PC. Simply switch to the new administrative account and check if the issue appears there as well.
If the issue isn’t present on the new account, move your personal files to it, and start using it instead of your old account.
Run.vbs error can be quite annoying, but we hope you managed to fix it using one of our solutions.
Editor’s Note: This post was originally published in January 2017 and has been since completely revamped and updated for freshness, accuracy, and comprehensiveness.
RELATED STORIES YOU NEED TO CHECK OUT:
- Fix Windows Update errors with Microsoft’s dedicated tool
- Here’s how to fix Windows Defender error 0x8000404
- Fix Windows 10 Anniversary Update mouse and keyboard lag
FIFA 19 is a football simulation video game developed and published by Electronic Arts. Millions of gamers play this game on a daily basis, making […]
Windows Media Player allows you to burn the media files to your CD. However, at times the player may display Cannot download media information for […]
World of Warships is a great game, but many users reported Unsupported operating system error when running their game. Threads dedicated to this issue are […]