All guides
  • Windows 11
  • Windows 10

Fix Windows Script Host ‘Cannot Find Script File’

Source-checked About 15 minutes3 official sources

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 SettingsAppsStartup or Task ManagerStartup apps. If it is not listed there, find and untick it with Microsoft's Autoruns.

Write down the script path

Take a screenshot of the message. The folder and file name after 'Can not find script file' tell you which program or task is trying to run it.

Scan with Windows Security

Open Windows SecurityVirus & threat protection and select Quick scan. If the path points into Temp or AppData and you do not recognize it, run Scan optionsFull scan as well.

Windows Security Virus & threat protection with the Quick scan button and Scan options link
Windows Security Virus & threat protection with the Quick scan button and Scan options link

Turn off the startup app

Windows 11: open SettingsAppsStartup and switch off the entry that matches the path or program. Windows 10: open Task ManagerStartup, select it and choose Disable. Restart and check if the message is gone.

Windows 11 Settings > Apps > Startup list with an on/off switch for each startup app
Windows 11 Settings > Apps > Startup list with an on/off switch for each startup app

Find hidden entries with Autoruns

If the entry is not in Startup, download Autoruns from Microsoft Sysinternals, run it and search for the script's file name. Clear the checkbox next to the matching entry instead of deleting it.

Restart and check

Restart Windows. If the message is gone and your apps still work, leave the entry turned off.

Reinstall the program it belongs to

If the path is inside a program you still use, uninstall it and install it again from the company that makes it, so it puts its script back.

Repair Windows only if more is broken

If other Windows features also fail, open Command Prompt as administrator and run DISM.exe /Online /Cleanup-image /Restorehealth, then sfc /scannow.

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.