Fix: Script file run.vbs is missing on startup
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
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.
- Press and hold (or right-click) the StartÂ button, and then selectÂ Control Panel
- SearchÂ Control PanelÂ forÂ Recovery
- SelectÂ RecoveryÂ >Â Open System RestoreÂ >Â Next
- Choose the restore point related to the problematic app, driver, or update, and then selectÂ NextÂ >Â Finish.
Solution 2 – Run the commands listed below
If there is no system restore point available on your computer, follow the troubleshooting steps listed below:
1. Type cmd in the Search Menu > run Command Prompt as an administrator
2. 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
3. Restart your computer.
Use the two workarounds listed above and tell us which one worked better for you.
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