2017 年 3 月 11 日

修复 Windows 10 启动时的 Windows 脚本宿主错误

Fix Windows Script Host Errors on Startup Windows 10: The main cause of this error is a 病毒或恶意软件 which has infected your system with malicious code but you don’t need to worry as it’s only an error with .vbs script file which can be resolved quickly by following the below-listed steps.

修复 Windows 10 启动时的 Windows 脚本宿主错误

Windows Script Host

Script: C:usersu510desktopOperators-Expressions-demosOperators-Expressions-demosscriptsjs-console.js
line: 1
char: 1
error: Object expected
code: 800A138F
source: microsoft JScript runtime error

修复 Windows 10 启动时的 Windows 脚本宿主错误

建议创建一个还原点,以防出现问题。

Method 1: Run System File Checker (SFC) and CheckDisk (CHKDK)

1.按 Windows 键 + X,然后单击命令提示符(管理员)。

具有管理员权限的命令提示符

2.现在在cmd中输入以下内容并按回车键:

sfc /scannow sfc /scannow /offbootdir=c: /offwindir=c:windows

SFC 立即扫描命令提示符

3.Let system file checker run and then restart your PC.

Method 2: Run Microsoft safety scanner

Its’ look like it is a virus infection, I would suggest you run the 微软安全扫描仪 and check if it helps. Make sure to disable all antivirus and security protection when running Microsoft safety scanner.

Method 3: Clean boot

1.按Windows键+R然后输入 MSCONFIG and hit enter to 系统配置。

MSCONFIG

2.在常规选项卡上,选择 选择性启动 并在其下方确保选项“加载启动项” 未被选中。

系统配置检查选择性启动干净启动

3.Navigate to the Services tab and checkmark the box that says “隐藏所有 Microsoft 服务。

隐藏所有微软服务

4.下一步,点击 禁用所有 这将禁用所有其他剩余服务。

5.Restart your PC and check if you’re able to Fix Windows Script Host Errors on Startup.

6.完成故障排除后,请务必撤消上述步骤,以便正常启动电脑。

Method 4: Set the default value .vbs key

1.按Windows键+R然后输入 注册表编辑器 然后按Enter键以打开注册表编辑器。

运行命令regedit

2.Next, navigate to the following key:

ComputerHKEY_CLASSES_ROOT.vbs

3.In the right-hand side window double click on Default.

go to .vbs key and change its default value to VBSFile

4.Change the Value of Default to VBSFile 并点击确定。

5.Reboot your PC to save changes and your system may start working fine.

Method 5: Delete VMapplet and WinStationsDisabled from Registry

1.按Windows键+R然后输入 注册表编辑器 然后按Enter键以打开注册表编辑器。

运行命令regedit

2.Next, navigate to the following key:

ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon

3.In the right side window, delete all the entries after userinit which would probably include VMApplet and WinStationsDisabled.

delete VMApplet and WinStationsDisabled

请注意: I’m not responsible if you type a wrong userinit path below and lock yourself out of your user account. Also only make the below change if you Windows is installed on C: Drive.

4.Now double click userinit and remove the entry ‘C:windowssystem32servieca.vbs’or ‘C:WINDOWSrun.vbs’ and make sure the default value now is currently set to ‘C:Windowssystem32userinit.exe,’ ( Yes it includes the trailing comma) and hit OK.

delete servieca.vbs or run.vbs entery from userinit

5.Finally, close the Registry Editor and restart your PC.

Method 5: Run Repair Install

此方法是最后的手段,因为如果没有任何效果,那么此方法肯定会修复电脑的所有问题。修复 仅使用就地升级来修复系统问题,而无需删除系统上存在的用户数据。因此,请按照本文查看如何轻松修复安装 Windows 10。

这样你就成功了 修复 Windows 10 启动时的 Windows 脚本宿主错误 但如果您对这篇文章仍有任何疑问,请随时在评论部分提问。