How To Fix Windows Script Host Error

Some users may find the error to be a virus or a malware that their Windows PC has been infected to, however that is not the case. Script Host Error occurs on your Windows 10 PC when there is an error with the VBScript file, the files contains codes that are used to perform administrative and processing functions within Windows. This error usually occurs during the startup of your computer. In this latest installment of our troubleshooting series, we will tackle how to fix Windows 10 Script Host Errors.

Fix Windows Script Host Error

There are several factors that can be the root cause this particular error ranging from a corrupt VBS script file to an error in the Registry Editor that usually occurs when new programs are being installed in your operating system in which in some case older versions of the programs were not completely uninstalled.

Before performing the recommended troubleshooting steps to Fix Windows Script Host Error, its best to restart your computer first. This action refreshes the operating system and remove any corrupt temporary data that could be causing the problem.

Step 1: Run System File Checker

System File Checker is a tool that scans your computer system for any corrupt files and restores them. Try this step as there have been reports from users that this works with numerous computer related problems and this Script Error as well.

Here’s how to Run System File Checker:

  1. Type Command Prompt at the search bar located at the lower left of your Windows 10.

    Windows Script Host Error

  2. Right click on Command Prompt Result and click Run as Administrator from the drop down menu.

    Windows Script Host Error

  3. At Elevated Command prompt window, type the command “sfc /scannow” and press the Enter Key

    Windows will now scan the computer system and will automatically fix corruptions if there are any. Wait for the scan to complete.
    Windows Script Host Error

  4. Exit Command Prompt window

    After scan is complete and Windows Resource Protection did not find any integrity violations.
    Windows Script Host Error

After Running System File Checker, check if Windows 10 Script Host Errors still occurs.

Step 2: Set the Default Value of .vbs key

To do this:

  1. Press Windows key + R on your keyboard to open RUN dialog box.
  2. At RUN dialog box, type “regedit” and press Enter or click OK to open Registry Editor
  3. At left pane, double click HKEY_CLASSES_ROOT folder to expand it
  4. Locate and click .vbs folder at the left pane.
  5. Double click Default located at the right pane.
  6. Set the Default Value data to VBSFile Default Value
  7. Click OK to apply changes made.
  8. Exit Registry Editor window.

Check if Windows Script Host Error issue still occurs.

Step 3: Deleting the VMapplet and WinStations

To do this:

  1. Press Windows key + R on your keyboard to open RUN dialog box.
  2. At RUN dialog box, type “regedit” and press Enter or click OK to open the Registry Editor
  3. At left pane, click HKEY_LOCAL_MACHINE folder to expand it.
  4. Click on SOFTWARE folder to expand it.
  5. Locate and click MICROSOFT folder to expand it.
  6. Locate and click WINDOWS NT folder to expand it.
  7. Click CurrentVersion Folder to expand it.
  8. Locate and click on Winlogon Folder.
  9. At the Right pane of Winlogon folder, locate VMapplet and WinStationsDisabled entries. These are entries right after the entry userinit exe. Highlight both entries and click Delete from the drop down menu.
  10. Exit Registry Editor window
  11. Restart your PC

Check if Windows Script Host Errors still occurs.

Step 4: Perform a Clean Boot Process to fix Windows Script Host Error

A clean boot boot process is a troubleshooting technique that you can do on your Windows 10 PC. It is used to identify an application that can cause Script Host Error to occur. Try to perform a clean boot process and see if the issue will be fixed.

  1. Press Windows key + R on your keyboard to open RUN dialog box.
  2. At RUN dialog box, type “msconfig” and press Enter or click OK to open System Configuration.
  3. At General tab of System Configuration, choose Selective Startup tab.
  4. Uncheck the option “Load Startup items”
  5. Click on Services tab
  6. Click to check Hide all Microsoft services.
  7. Click Apply to apply changes made
  8. Click OK to exit system configurations window.
  9. Restart your PC.

Once computer completely reboots, check if Windows Script Host Errors still occurs.

After following the mentioned steps above, you will successfully Fix Windows Script Host Error issue.