How To Fix “Windows Script Host” Error - Can Not Find Script File

Introduction

Are you a Windows user constantly getting interrupted by the "Windows Script Host" error message? Does the phrase "Can Not Find Script File" now sound all too familiar? Then, you've come to the right place. In this comprehensive guide, we're going to show you how to put an end to these disruptions. We'll lead you through a few straightforward methods, including using the Autorun utility, tweaking the Registry Editor, and running system checks with SFC and DISM commands.

Correcting the "Windows Script Host" Error with Autoruns

Encountering the "Windows Script Host" error that says "Can Not Find Script File" can certainly disrupt your workflow. Fortunately, the Autoruns utility can provide a straightforward solution to this issue.

Commence the process by obtaining the Autoruns utility from the official Microsoft website. After successfully installing Autoruns, launch the utility and navigate to the "Logon" tab. Examine the list for any entries tied to vbs files. Upon locating such an entry, deselect the corresponding box. A system reboot follows this action. This reboot helps apply the changes made and is key to fixing the vexing "Can Not Find Script File" error that has been hindering your Windows experience.

autoruns utility from microsoft

Download and Run the Microsoft Autoruns Utility

Fix the Windows Script Host via Registry Editor

To further resolve the "Windows Script Host" error, your Windows Registry Editor comes in handy. Initiate the process by opening the Registry Editor: type "regedit" into your Start menu's search bar and press enter.

Once inside the Registry Editor, navigate to the path: "HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings". In the right-hand panel, find the "Enabled" key. Double-click it and set the value data to "1". Confirm this change by clicking OK. Conclude this process by restarting your computer to let the changes take effect.

Additionally, there's a need to alter the default value for the .vbs key. Revisit the Registry Editor and proceed to the path: "HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command". Here, look for the "(Default)" key in the right pane, double-click it, and ensure the value data is "%SystemRoot%\System32\WScript.exe "%1" %*". Modify the value if it differs from the recommended setting. Save the changes by clicking OK, close the Registry Editor, and restart your PC to verify if the "Can Not Find Script File" error has been resolved.

registry editor changes

Registry Editor Changes

Leverage Command Prompt to Repair Corrupted System Files

The ultimate solution to the "Windows Script Host" error lies in using the System File Checker (SFC) and Deployment Image Servicing and Management (DISM) commands, both powerful tools in diagnosing and repairing system file issues.

Kick-start the process by opening the Command Prompt with administrator privileges. Initiate the SFC scan by entering the command: "sfc /scannow" and press enter. This command begins a thorough system scan, identifying any corrupted files. If discovered, the SFC tool will automatically attempt to fix them.

Once the SFC scan completes, it's time to utilize the DISM tool. Type in: "DISM /Online /Cleanup-Image /RestoreHealth" and press enter. This command works to restore potentially damaged system images. Note that this process may require some time to fully execute.

Following the completion of both commands, reboot your computer. This restart allows your system to incorporate the changes and repairs made, potentially resolving the "Windows Script Host" error.

command prompt scan system

Command Prompt: System File Checker

 
Previous
Previous

How To Turn Off Time Sensitive Notification on Snapchat (iPhone)

Next
Next

How To Change Your Roblox Password