- Windows 11
- Windows 10
Fix Windows Script Host ‘Cannot Find Script File’
Quick fix
The Windows Script Host message 'Can not find script file' means something tries to run a.vbs or.js script that no longer exists, usually at sign-in. Note the file path in the message, run a Windows Security scan, then turn off the matching entry in . If it is not listed there, find and untick it with Microsoft's Autoruns.
Video walkthrough
If it still does not work
- Do not turn off Windows Script Host itself. The message comes from one missing script, not from the Script Host.
- If Windows Security finds a threat, remove it, restart and scan again. Never restore a flagged script just to stop the message.
- If Autoruns shows several similar entries, untick only the one whose path matches the error exactly.
Sources and verification
Checked against official documentation on . Scope: Windows 11, Windows 10. Menus can change after app and system updates. If a label looks different, follow the linked official page.
- Microsoft Support: Configure startup applications in WindowsTurning off startup apps in Settings > Apps > Startup and in Task Manager.
- Microsoft Learn: Autoruns for WindowsFinding every program and script that starts automatically, and disabling an entry by clearing its checkbox.
- Microsoft Support: Stay protected with the Windows Security appRunning quick and full scans in Virus & threat protection.


