How to Fix “Can Not Find Script File” Startup Error in Windows 11

The “Can Not Find Script File” startup error is a common issue in Windows that usually appears during boot or login. The error message often references a missing .vbs or .js script file and may repeatedly pop up every time the system starts.

This problem is typically caused by leftover startup entries, incomplete software uninstallations, malware infections, or corrupted registry settings. In many cases, Windows is trying to launch a script that no longer exists on the system.

In this guide, we’ll walk you through effective methods to fix the “Can Not Find Script File” startup error in Windows 11.

How to Fix “Can Not Find Script File” Startup Error

Before applying the fixes below, note the exact file path shown in the error message if possible. This information can help identify the source of the problem.

1. Restart Your Computer

Temporary startup glitches can sometimes trigger script errors.

  1. Save your work and restart your PC.
  2. Check whether the error still appears after reboot.

If the issue persists, continue with the methods below.

2. Check Startup Programs

Broken startup entries are one of the most common causes.

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. Go to the Startup apps tab.
  3. Look for suspicious or unknown entries.
  4. Disable unnecessary startup programs.

Restart your PC and check if the error disappears.

3. Use System Configuration (msconfig)

You can identify problematic startup services.

  1. Press Windows + R, type: msconfig
  2. Press Enter.
  3. Go to the Services tab.
  4. Check Hide all Microsoft services.
  5. Disable suspicious or unnecessary services.
  6. Restart your computer.

This helps isolate startup-related issues.

4. Remove Invalid Registry Startup Entries

Incorrect registry entries may point to missing scripts.

  1. Press Windows + R, type: regedit
  2. Press Enter.
  3. Navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  4. Also check: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
  5. Look for entries referencing missing .vbs or .js files.
  6. Delete suspicious entries carefully.

Be cautious when editing the registry.

5. Check Task Scheduler

Scheduled tasks may try to run missing scripts.

  1. Press Windows + S and search for Task Scheduler.
  2. Open it and review scheduled tasks.
  3. Look for tasks referencing missing script files.
  4. Disable or delete the problematic task.

This prevents Windows from launching the missing file.

6. Scan for Malware

Malware often leaves broken startup scripts behind.

  1. Open Windows Security.
  2. Go to Virus & threat protection.
  3. Click Quick scan or Full scan.

You can also use trusted malware removal tools if needed.

7. Run System File Checker (SFC)

Corrupted system files may contribute to startup issues.

  1. Open Command Prompt as administrator.
  2. Run: sfc /scannow
  3. Wait for the scan to complete.
  4. Restart your PC.

This repairs damaged Windows files.

8. Run DISM Repair Command

DISM can fix deeper system image corruption.

  1. Open Command Prompt (Admin).
  2. Run: DISM /Online /Cleanup-Image /RestoreHealth
  3. Wait for completion and restart your PC.

This restores Windows system components.

9. Perform a Clean Boot

A clean boot helps identify conflicting software.

  1. Press Windows + R, type msconfig, and press Enter.
  2. Go to the Services tab.
  3. Check Hide all Microsoft services.
  4. Click Disable all.
  5. Restart your PC.

If the error disappears, a third-party app is likely responsible.

10. Use System Restore

If the issue started recently, restoring the system may help.

  1. Press Windows + R, type: rstrui
  2. Press Enter.
  3. Choose a restore point before the issue started.
  4. Follow the on-screen instructions.

This reverts your system to a working state.

Conclusion

The “Can Not Find Script File” startup error in Windows 11 is usually caused by broken startup entries, scheduled tasks, or leftover malware-related scripts. By following the methods outlined in this guide, you can identify and remove the source of the error effectively.

From checking startup apps to repairing system files and cleaning registry entries, these solutions cover both basic and advanced troubleshooting methods. Once fixed, your system should boot normally without showing the script file error.

Posted by Raj Bepari

I’m a digital content creator passionate about everything tech.