Windows Script Host error: how to fix

Anonim

Error Windows Script Host How to Fix

Windows Script Host is a special component of the operating system that allows you to run scripts written in JS (Java Script), VBS (VISUAL BASIC Script) and other languages. With incorrect operation, various malfunctions may be observed during Windows startup and operation. Such errors often can not be corrected by a simple reboot of the system or graphic shell. Today we will talk about what actions need to be done to troubleshoot the functioning of the WSH component.

Correct the Windows Script Host error

Immediately it is worth saying that if you wrote your script and when it was launched, you got a mistake, then you need to look for problems in the code, and not in the system component. For example, this dialog box says this is this:

Error Windows Script Host caused by an error in the script code

The same situation may occur in the case when the code has a link to another script, the path to which is incorrectly or this file is not at all on the computer.

Next, we will talk about those moments when when you start Windows or launch programs, such as a notepad or calculator, as well as other applications that use system resources, the standard Windows Script Host error appears. Sometimes there may be several such windows. It happens after updating the operating system, which can pass both in regular mode and with failures.

Error Windows Script Host caused by a crash in the Windows operating system

The reasons for such behavior of the OS are as follows:

  • Invalidly exhibited system time.
  • Failure in the service of updates.
  • The incorrect installation of the next update.
  • Unlicensed assembly "Windows".

Option 1: System Time

Many users think that the system time, which is shown in the area of ​​notifications, exists only for convenience. This is not quite so. Some programs that appeal to developer servers or other resources can work incorrectly or even refuse to function due to discrepancies in the date and time. The same applies to Windows with its update servers. In the event that there is a discrepancy in your system time and server time, then problems can be observed with updates, so it is worth paying attention to first.

  1. Click on the clock in the lower right corner of the screen and go through the link specified in the screenshot.

    Go to the time settings and dates in Windows 7

  2. Next, we go to the "Time on the Internet" tab and click on the change button of the parameters. Please note that your account must have administrator rights.

    Go to the time settings on the Internet in Windows 7

  3. In the settings window, we set the checkbox to the checkbox specified on the image, then select Time.Windows.com in the "Server" drop-down list and click "Update Now".

    Setting up time synchronization with Microsoft server in Windows 7

  4. If everything goes successfully, the appropriate inscription will appear. In case of an error with exceeding the waiting time, simply press the update button again.

    Successful time synchronization message with server in Windows 7

Now your system time will be regularly synchronized with the Microsoft and Difference time server.

Option 2: Update Service

Windows is a very complex system, with many simultaneous processes, and some of them may affect the operation of the service responsible for the update. High resource consumption, various failures and employment of components that help the update, "force" the service to make endless attempts to fulfill their work. The service itself can also catch up. Exit here one: disable it, and then restart the computer.

  1. We call the "Run" string with the combination of the Win + R keys and in the field called "Open" write a command that allows you to access the appropriate snap.

    Services.msc.

    Go to the system snap service in Windows 7 from the row

  2. In the list we find the "Update Center", click PCM and select the item "Properties".

    Transition to Windows 7 Update Service Properties

  3. In the window that opens, click the "Stop" button, and then OK.

    Windows 7 update service stop

  4. After rebooting, the service must start automatically. It is worth checking if it is even if it is still stopped, turning on it in the same way.

    Running Windows 7 Service Center

If errors continue to appear after completed, then you need to work with already installed updates.

Option 3: incorrectly installed updates

This option implies the removal of those updates, after installing the failures in Windows Script Host. This can be done both manually and using the system recovery utility. In both cases, it is necessary to remember when the errors "fell", that is, after which date.

Manual removal

  1. We go to the "control panel" and find the applet with the name "Programs and Components".

    Go to the program applet and components from the Windows 7 control panel

  2. Next, go to the link responsible for viewing updates.

    Go to viewing installed updates in Windows 7

  3. We sort the list by the date of installation by clicking on the header of the last speaker with the inscription "Installed".

    Sort upgrades by installation date in Windows 7

  4. Select the desired update, click PCM and select "Delete". We also do with the rest of the positions, remembering the date.

    Remove the installed update in Windows 7

  5. Reboot your computer.

Recovery utility

  1. To go to this utility by clicking the right mouse button on the computer icon on the desktop and select the item "Properties".

    Transition to system properties from Windows 7 desktop

  2. Next, go to "System Protection".

    Go to system protection settings in Windows 7

  3. Press the "Restore" button.

    Running system recovery utility in Windows 7

  4. In the window that opens, the Utility Utility "Next".

    Go to the selection of recovery points in the Windows 7 Recovery Utility

  5. We put a tank that is responsible for displaying additional recovery points. The points you need will be called "Automatically Created Point", type - "System". Of these, you need to choose the one that corresponds to the date of the last update (or that after which failures began).

    Search for recovery points in the Windows 7 system utility

  6. Click "Next", we wait until the system is offered to reboot and execute the actions on a "rollback" to the previous state.

    Running Windows 7 system recovery process

  7. Please note that in this case, those programs and drivers that have been installed after this date can be removed. You can find out if it will be, you can click the "Search for Software Software" button.

    Finding related to the recovery system of programs in Windows 7

See also: How to restore Windows XP, Windows 8, Windows 10

Option 4: Unlicensed Windows

Pirate builds "Windows" are good only by the fact that they are completely free. Otherwise, such distributions can bring a lot of problems, in particular, the incorrect work of the required components. In this case, the recommendations given above may not work, since the files in the downloaded image were already failed. Here you can only advise you to search another distribution, but it is better to use the licensed copy of Windows.

Conclusion

Solutions of the problem with Windows Script Host is quite simple, even a novice user will cope with them. Cause Here is exactly one: incorrect operation of the system update tool. In the case of pirate distributions, you can give the following advice: use only licensed products. And yes, write your scripts correctly.

Read more