当您登录计算机时,如果您看到一个带有错误消息的消息框Can not find script file in Windows 11和Windows 10,那么这篇文章可能能够指导您解决问题的正确方向。Windows 用户通常在登录时看到它。
如何修复在Windows 11/10
Windows使用脚本文件在(Windows)Windows中运行许多程序。其中许多(Many)设置为在您登录计算机后立即运行,而其他可能基于触发器。也就是说,通常情况下,Windows设置的脚本不会失败,并且很可能某些恶意软件已经设置了要运行的脚本。但是,由于它已从计算机中删除,因此该文件丢失,并且Windows 启动(Windows Startup)会出错。卸载不完整后也可能出现此错误。虽然文件可能已被删除,但脚本或计划的触发器仍然存在。以下是您可以执行的解决问题的步骤 -
- 检查此脚本的所有权
- 重新安装程序
- 通过注册表修复 Winlogin 条目
- 修复注册表中的 .vbs 条目
- 重新创建丢失的文件
- 运行防病毒扫描。
1]这个脚本文件属于你吗?(Does)
错误消息可能显示为 –找不到脚本文件(Cannot find script file)或无法运行.vbs(Cannot Run.vbs)。也就是说,在我们继续修复它之前,我希望你确定一件事。
错误消息框是否显示脚本文件或任何文件的路径?(path of the script file)如果是,您需要确定这是否由您设置或安装。如果您已经设置了一些宏在启动期间运行,或者有一个程序在您设置它时已经完成了它,那么如果您使用原始方法修复它会更好。
通常,这些脚本文件在Startup 文件夹(Startup folder)中可用,或者它们使用Task Scheduler运行。如果您无法找到您的自定义脚本,我强烈建议您通过它们。
您还应该检查该文件是否与您最近卸载的程序有关。
阅读(Read):启动时找不到脚本文件 HPAudioswitchLC.vbs(Cannot find script file HPAudioswitchLC.vbs at startup)。
2]重新安装程序
如果您可以识别与丢失文件关联的程序。我建议你重新安装程序看看。
如果是 Windows 操作系统文件,请运行 System File Checker。
读取(Read):系统找不到指定的文件。
3]使用注册表编辑器(Using Registry Editor)修复Winlogon条目
通过在运行(Run)提示中键入regedit然后按回车键打开注册表编辑器。
在编辑器中导航到以下路径
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
找到字符串Userinit,然后双击进行编辑
该字符串的默认值为“ C:\Windows\system32\userinit.exe,” 如果有其他内容,请务必更改它,然后单击“确定”按钮。
注销并再次登录以检查错误现在是否消失。
4]运行.vbs错误(Run.vbs error)
如果收到Windows Script Host错误,则需要为 vbs 键设置默认值。
您将不得不使用注册表编辑器(Registry Editor)来更改值 -
Computer\HKEY_CLASSES_ROOT\.vbs
按照我们的详细指南修复Windows 脚本宿主错误。
您可能还想检查您的计算机上是否禁用了 Windows 脚本主机访问。
阅读(Read):登录时找不到脚本文件 run.vbs(Cannot find script file run.vbs at logon)
5]重新创建丢失的文件
如果您找不到哪个程序正在调用该文件,并且您已经尝试了所有方法,我建议您重新创建该文件,看看会发生什么。
- 记下路径,并使用文件资源管理器(File Explorer)导航到它
- 如果还缺少其他文件夹结构,则必须创建它
- 创建空白文件后,等待程序调用它
- 如果什么都没发生,你就万事大吉了。
如果该应用程序是合法的,我相信您会再次看到相关错误,并为您提供有关问题所在的信息。有时我们最终会使用垃圾清理器,而该软件会删除认为它是垃圾文件的文件。
6]运行防病毒软件
虽然没有必要,但如果脚本文件不属于您,那么它可以确保系统不会进一步受到损害;最好运行一次杀毒软件。您可以使用任何防病毒解决方案或内置的Windows 安全(Windows Security)软件来扫描和删除问题。
如何修复Windows 脚本宿主(Windows Script Host)问题?
登录Windows 11/10 PC后修复Windows Script Host弹出错误需要多方面的操作。您必须做的第一件事是检查您是否具有访问该文件的正确权限。如果您的计算机上有一些与帐户权限相关的问题,则很有可能经常出现此错误。
找不到脚本文件CheckUpdateLauncher.vbs?
如果您在登录到您的用户帐户后立即收到无法找到脚本文件CheckUpdateLauncher.vbs错误,您可能必须遵循上述解决方案。换句话说,您可以验证注册表编辑器(Registry Editor)中的设置或重新安装错误消息中提到的程序。除此之外,您可以运行防病毒扫描以检查是否存在任何潜在的恶意文件。
如何停止Windows Script Host弹出?
要停止Windows Script Host弹出消息,您需要检查文件或脚本的所有权,重新安装错误提到的应用程序,使用注册表编辑器修复(Registry Editor)Winlogin等。没有一键式解决方案,您必须找到防止此弹出窗口出现在您的屏幕上。
我们希望这里有所帮助。(We hope something here helps you.)
How to fix Cannot find script file in Windows 11/10
When you log in to the computer, if you see a message box with an error mеssage sayіng Can not find script file in Windows 11 and Windows 10, then this post may be able to guide you in the right direction to resolve the issue. Windows users usually see it when they log-in.
How to fix Cannot find script file in Windows 11/10
Windows uses script files to run a lot of programs in Windows. Many of them are set to run as soon as you log in to the computer, while others could be based on a trigger. That said, usually, scripts set by Windows do not fail, and chances are some malware had set up a script to run. However, since it has been removed from the computer, the file is missing, and Windows Startup gives an error. This error can also occur after an incomplete uninstallation. While the file may have been removed, the script or the scheduled trigger remains. Here are the steps you can carry out to resolve the issue-
- Check the ownership of this script
- Reinstall the program
- Fix Winlogin entry via Registry
- Fix the .vbs entry in Registry
- Recreate the missing files
- Run an Antivirus scan.
1] Does this script file belong to you?
The error message can appear as – Cannot find script file or Cannot Run.vbs. That said, there is one thing which I want you to be sure of before we go ahead and fix it.
Does the error message box display the path of the script file or any file? If yes, you need to figure out if this was set up or installed by you. If you have set up some macro to run during the startup or have a program that has done it when you set it up, then it would be better if you fix it using the original method.
Usually, these script files are available in the Startup folder or they run using the Task Scheduler. I would strongly suggest going through them if you are unable to find your custom script.
You should also check if the file was related to a program that you recently uninstalled.
Read: Cannot find script file HPAudioswitchLC.vbs at startup.
2] Reinstall the program
If you can identify the program with which the missing file is associated with. I suggest you reinstall the program and see.
If it is a Windows OS file, run System File Checker.
Read: The system cannot find the file specified.
3] Using Registry Editor to fix Winlogon entry
Open Registry Editor by typing regedit in the Run prompt followed by pressing the enter key.
Navigate to the following path in the editor
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Locate the string Userinit, and double click to edit it
The default value of the string is “C:\Windows\system32\userinit.exe,” if there is anything else than it, then make sure to change it, and click on the OK button.
Log out and log-in again to check if the error is now gone.
4] Run.vbs error
If you receive a Windows Script Host error, then you need to set the default value for the vbs key.
You will have to use the Registry Editor to change the value at-
Computer\HKEY_CLASSES_ROOT\.vbs
Follow our detailed guide to fix Windows Script Host error.
You may also want to check if the Windows Script Host access is disabled on your machine.
Read: Cannot find script file run.vbs at logon
5] Recreate the missing files
If you are not able to find which program is calling that file, and you have tried everything, I would suggest recreating the file, and see what happens.
- Note the path, and navigate to it using File Explorer
- If other folder structures are missing as well, you will have to create it
- Once you create the blank file wait for it to be called by the program
- If nothing happens, you are all set.
If the application is a legit one, I am sure you will see the related error again, giving you information about what has gone wrong. Sometimes we end up using a junk cleaner, and the software removes files thinking its a junk file.
6] Run Antivirus
While not necessary, if the script file doesn’t belong to you, then it to make sure the system is not compromised further; it is best to run the antivirus software once. You can use any antivirus solution or the in-built Windows Security software to scan and remove the problem.
How do I fix Windows Script Host problem?
Multiple things are required to fix the Windows Script Host popup error after logging into Windows 11/10 PC. The first thing you must do is check if you have the correct permission to access the file. If you have some account permission-related issue on your computer, there is a high chance of getting this error frequently.
Cannot find script file CheckUpdateLauncher.vbs?
If you get Cannot find script file CheckUpdateLauncher.vbs error immediately after logging in to your user account, you might have to follow the aforementioned solutions. IN other words, you can verify the setting in Registry Editor or reinstall the program, which is mentioned in the error message. Apart from that, you can run an antivirus scan to check if there is any potential malicious file or not.
How do I stop Windows Script Host pop up?
To stop Windows Script Host popup message, you need to check the ownership of the file or script, reinstall the app mentioned in error, fix Winlogin using Registry Editor, etc. There is no one-click solution, and you must have to find the cause to prevent this popup from appearing on your screen.
We hope something here helps you.