In case you don’t know, the Windows Script Host provides capabilities such as batch files but it also includes many other features like it can be used by a user manually as well as created by the operating system to automate the flow of operations in the system. However, there are a lot of errors that could take place in such process. One of them is the following error:

“Script: <PATH of the VBS Script>

Line: x

Char: x

Error: The description of the error.

Code: xxxxxxxx

Source: (Source of the error)”

At the time of writing, it isn’t clear yet what the root cause of the error really is but there are several potential fixes you can check out to fix it. You can try to run the System File Checker or set the default value for the .vbs key, or troubleshoot the problem in a Clean Boot State. You could also try to repair Install Windows 10 or scan your computer for malware. For more detailed instructions refer to the following options.

Option 1 – Try to run a System File Checker scan

  • In the Windows Start Search, type “command prompt” and right click on Command Prompt from the search results and then select the “Run as administrator” option.
  • After opening Command Prompt with admin privileges, type the “sfc /scannow” and tap Enter to execute it.
  • Once the scan is finished, restart your computer and see if the Windows Script Host error.

Option 2 – Try setting the default value for the .vbs key

  • Tap the Win + R keys to open the Run dialog box and type “regedit” in the field and tap Enter to open the Registry Editor.
  • Next, navigate to this registry path: Computer\HKEY_CLASSES_ROOT\.vbs
  • From there, double click on the default string and change its Value data to “VBSFile”.
  • Exit the Registry Editor and restart your computer for the changes to take effect.

Option 3 – Try troubleshooting the problem in a Clean Boot State

Setting your computer in a Clean Boot State can help you diagnose and later troubleshoot the problems in your computer. During this state, the system will start with a minimal number of drivers and startup programs that helps in isolating the problem with the interfering software. To put your computer in a Clean Boot State, follow the given steps below.

  • Log onto your computer as administrator.
  • Type in msconfig in the Start Search to open the System Configuration utility.
  • From there, go to the General tab and click “Selective startup”.
  • Clear the “Load Startup items” check box and make sure that the “Load System Services” and “Use Original boot configuration” options are checked.
  • Next, click the Services tab and select “Hide All Microsoft Services” check box.
  • Click Disable all.
  • Click on Apply/OK and restart your PC. (This will put your PC into a Clean Boot State. And to configure Windows to use the usual startup, just simply undo the changes.)
  • From there, start to isolate the problem by checking which one of the programs you installed recently is the root cause of the problem.

Option 4 – Try to repair install Windows 10

  • First, you have to click this link and then click the Download Tool Now button.
  • Next, click the “Use the tool to create installation media (USB flash drive, DVD, or ISO file)…” option and follow the next given instructions on the screen.
  • Now select the ISO file option in step 5.
  • After that, you should now have an ISO file.
  • Next, go to the location where you’ve downloaded the ISO file.
  • Then right click on the Windows 10 ISO file and select the Open with option and then select File Explorer.
  • Now click on “setup.exe” and follow the next instructions that appear on the screen. When asked, you have to select either Nothing (clean install) or Keep personal files only option. Take note that you must not select the “Keep personal files, apps, and Windows settings”.

Option 5 – Try scanning your computer using Windows Defender

It is possible that your computer is infected with a malware which could be why you’re getting the Windows Host Script error. Thus, you need to scan your computer using Windows Defender.

  • Tap the Win + I keys to open Update & Security.
  • Then click on the Windows Security option and open Windows Defender Security Center.
  • Next, click on Virus & threat protection > Run a new advanced scan.
  • Now make sure that Full Scan is selected from the menu and then click the Scan Now button to get started.

In addition, aside from Windows Defender you need to run a reliable program like Advanced System Repair. This program helps in fixing not just a lot of system issues on Windows 10 but is also efficient in removing any malware in your computer. This program is a one-click solution that helps in fixing lots of system issues such as corrupted files, corrupted registries and it also helps in optimizing your PC’s overall performance as it cleans out any junk files in your computer and other system issues that causes your PC to slow down. To use this efficient tool, follow the instructions below.

 

  1. Turn on your computer. If it’s already on, you have to reboot

  1. After that, the BIOS screen will be displayed, but if Windows pops up instead, reboot your computer and try again. Once you’re on the BIOS screen, repeat pressing F8, by doing so the Advanced Option shows up.
  1. To navigate the Advanced Option use the arrow keys and select Safe Mode with Networking then hit
  1. Windows will now load the Safe Mode with Networking.
  1. Press and hold both R key and Windows key.

  1. If done correctly, the Windows Run Box will show up.
  1. Type in the URL address in the Run dialog box and then tap Enter or click OK.
  1. After that, it will download the program. Wait for the download to finish and then open the launcher to install the program.
  1. Once the installation process is completed, run ASR to perform a full system scan.

  1. After the scan is completed click the “Fix, Clean & Optimize Now” button.