- Устраняем ошибку Windows Script Host
- Исправляем ошибку Windows Script Host
- Вариант 1: Системное время
- Вариант 2: Служба обновлений
- Вариант 3: Некорректно установленные обновления
- Вариант 4: Нелицензионная Windows
- Заключение
- How to troubleshoot script errors in Internet Explorer
- Summary
- Resolution
- Step 1: Make sure that script errors occur on multiple webpages
- Step 2: Make sure that the problem is caused by files or settings on your computer
- Method 1: Verify that Active Scripting, ActiveX, and Java are not being blocked by Internet Explorer
- Method 2: Remove all temporary Internet files
- Method 3: Install the latest software updates for Windows
- Advanced debugging
- Method 1: Verify that active scripting, activeX, and java are not blocked by an antivirus program or by a firewall
- Method 2: Verify that your antivirus program isn’t set to scan the Temporary Internet Files or the Downloaded Program Files folders
- Method 3: Turn off Smooth Scrolling
- More information
- Procedure to turn off notification about every script error in Internet Explorer
- Troubleshooting Script Errors when printing from Internet Explorer
Устраняем ошибку Windows Script Host
Исправляем ошибку Windows Script Host
Сразу стоит сказать о том, что если вы писали свой скрипт и при его запуске получили ошибку, то необходимо искать проблемы в коде, а не в системном компоненте. Например, вот такое диалоговое окно говорит именно об этом:
Такая же ситуация может возникнуть и в том случае, когда в коде имеется ссылка на другой скрипт, путь к которому прописан неверно либо данный файл вовсе отсутствует на компьютере.
Далее мы поговорим о тех моментах, когда при старте Windows или запуске программ, например, Блокнота или Калькулятора, а также других приложений, использующих системные ресурсы, появляется стандартная ошибка Windows Script Host. Иногда подобных окон может появиться сразу несколько. Случается такое после обновления операционной системы, которое может пройти как в штатном режиме, так и со сбоями.
Причины такого поведения ОС следующие:
- Неверно выставленное системное время.
- Сбой в работе службы обновлений.
- Некорректная установка очередного апдейта.
- Нелицензионная сборка «винды».
Вариант 1: Системное время
Многие пользователи думают, что системное время, которое показывается в области уведомлений, существует только для удобства. Это не совсем так. Некоторые программы, обращающиеся к серверам разработчиков или к иным ресурсам, могут работать некорректно или вовсе отказаться функционировать по причине расхождений в дате и времени. Это же касается и Windows с ее серверами обновления. В том случае, если будет расхождение в вашем системном времени и времени сервера, то могут наблюдаться неполадки с апдейтами, поэтому на это стоит обратить внимание в первую очередь.
- Нажимаем на часы в правом нижнем углу экрана и переходим по ссылке, указанной на скриншоте.
Далее идем на вкладку «Время по интернету» и жмем на кнопку изменения параметров. Обратите внимание, что ваша учетная запись должна обладать правами администратора.
В окне настроек устанавливаем галку в указанный на изображении чекбокс, затем в выпадающем списке «Сервер» выбираем time.windows.com и нажимаем «Обновить сейчас».
Если все пройдет успешно, то появится соответствующая надпись. В случае ошибки с превышением времени ожидания просто нажимаем кнопку обновления еще раз.
Теперь ваше системное время будет регулярно синхронизироваться с сервером времени Майкрософт и расхождения не будет.
Вариант 2: Служба обновлений
Windows – это очень сложная система, с множеством одновременно протекающих процессов, и некоторые из них могут повлиять на работу службы, отвечающей за обновление. Высокое потребление ресурсов, различные сбои и занятость компонентов, помогающих апдейту, «заставляют» службу совершать бесконечные попытки выполнить свою работу. Сам сервис также может сбоить. Выход здесь один: отключить его, а затем перезагрузить компьютер.
- Вызываем строку «Выполнить» сочетанием клавиш Win+R и в поле с названием «Открыть» пишем команду, которая позволит получить доступ к соответствующей оснастке.
В списке находим «Центр обновления», кликаем ПКМ и выбираем пункт «Свойства».
В открывшемся окне жмем кнопку «Остановить», а затем ОК.
После перезагрузки служба должна запуститься автоматически. Стоит проверить, так ли это и, если она все еще остановлена, включить ее тем же способом.
Если после выполненных действий ошибки продолжают появляться, то необходимо поработать с уже установленными обновлениями.
Вариант 3: Некорректно установленные обновления
Данный вариант подразумевает удаление тех обновлений, после установки которых начались сбои в Windows Script Host. Сделать это можно как вручную, так и с помощью утилиты восстановления системы. В обоих случаях необходимо вспомнить, когда «посыпались» ошибки, то есть после какой даты.
- Идем в «Панель управления» и находим апплет с названием «Программы и компоненты».
Далее переходим по ссылке, отвечающей за просмотр обновлений.
Сортируем список по дате установки, кликнув по шапке последней колонки с надписью «Установлено».
Выбираем нужное обновление, кликаем ПКМ и выбираем «Удалить». Также поступаем с остальными позициями, помня про дату.
- Для перехода к данной утилите кликаем правой кнопкой мыши по значку компьютера на рабочем столе и выбираем пункт «Свойства».
Далее переходим к «Защите системы».
Нажимаем кнопку «Восстановление».
В открывшемся окне утилиты жмем «Далее».
Ставим галку, отвечающую за показ дополнительных точек восстановления. Необходимые нам поинты будут называться «Автоматически созданная точка», тип – «Система». Из них необходимо выбрать ту, которая соответствует дате последнего обновления (или того, после которого начались сбои).
Жмем «Далее», ждем, пока система предложит перезагрузиться и выполнит действия по «откату» к предыдущему состоянию.
Обратите внимание, что в этом случае могут быть удалены и те программы и драйвера, которые были установлены вами после этой даты. Узнать, произойдет ли это, можно нажав кнопку «Поиск затрагиваемых программ».
Читайте также: Как восстановить систему Windows XP, Windows 8, Windows 10
Вариант 4: Нелицензионная Windows
Пиратские сборки «винды» хороши лишь тем, что они совершенно бесплатны. В остальном же такие дистрибутивы могут принести массу проблем, в частности, некорректную работу необходимых компонентов. В этом случае рекомендации, приведенные выше, могут не сработать, так как файлы в скачанном образе уже были сбойными. Здесь можно только посоветовать поискать другой дистрибутив, но лучше воспользоваться лицензионной копией Windows.
Заключение
Решения проблемы с Windows Script Host довольно просты, и с ними справится даже начинающий пользователь. Причина здесь ровно одна: некорректная работа инструмента обновления системы. В случае с пиратскими дистрибутивами можно дать следующий совет: пользуйтесь только лицензионными продуктами. И да, правильно пишите ваши скрипты.
How to troubleshoot script errors in Internet Explorer
This article solves the problem that the webpage can’t be displayed when a script error occurs in Internet Explorer.
Original product version: В Internet Explorer 11, Internet Explorer 10, Internet Explorer 9
Original KB number: В 308260
Summary
When you receive script errors, webpages may not be displayed or work correctly in Internet Explorer.
When script errors occur in Internet Explorer, you may receive following error messages:
Problems with this Web page might prevent it from being displayed properly or functioning properly. In the future, you can display this message by double-clicking the warning icon displayed in the status bar.
If you select Show Details, you may see detailed information about the following errors:
The following warning message may also appear in the Internet Explorer Status bar:
This problem occurs because the HTML source code for the webpage doesn’t work correctly with client-side script, such as Microsoft JScript or Microsoft Visual Basic script. This problem may occur for one or more of the following reasons:
- A problem exists in the HTML source code of the webpage.
- The web page is using newer technologies that are not supported by Internet Explorer.
- The web page is using client-side visual basic script — that is deprecated.
- Active scripting, ActiveX controls, or Java programs are blocked on your computer or on the network. Internet Explorer or another program, such as antivirus programs or firewalls, can be configured to block Active scripting, ActiveX controls, or Java programs.
- Antivirus software is configured to scan your Temporary Internet Files or Downloaded Program Files folders.
- Internet-related folders on your computer are corrupted.
- Your video card drivers are corrupted or outdated.
Server-side scripts such as Visual Basic scripts in Active Server Pages (ASP) run on a web server. Script errors that occur because of server-side script failures do not produce error messages in Internet Explorer, but they may create a webpage that does not display or work correctly. The troubleshooting information in this article applies to client-side script errors. Contact the administrator of the web server if you suspect that a problem affects a server-side script.
These methods listed in this article may help you troubleshoot the script errors that are caused by files or settings on your computer. For quick visual instructions about how to troubleshoot script errors in Internet Explorer, watch this video:
Resolution
Microsoft encourages you update your system with the latest windows update available. For more information about Windows Update, see FAQ.
Step 1: Make sure that script errors occur on multiple webpages
If the only sign of this problem is the error message, and the websites are working, you can probably ignore the error. Also, if the problem occurs on one or two webpages, the problem may be caused by those pages. If you decide to ignore the errors, you can disable script debugging.В To do it, select the Disable script debugging (Internet Explorer) checkbox in Internet Options > Advanced > Browsing settings.
If this problem occurs on more than one or two sites, don’t disable script debugging.
Step 2: Make sure that the problem is caused by files or settings on your computer
To narrow down the source of the problem, use another user account, another browser, or another computer to view the webpages that triggered the script error.
If the script error doesn’t occur when you view the webpage through another user account, in another browser, or on another computer, the problem may be caused by files or settings on your computer. In this situation, follow the methods in this article to resolve this problem:
After you complete each method, try to open a webpage on which you previously received a scripting error. If you don’t receive the error, the problem is resolved.
Method 1: Verify that Active Scripting, ActiveX, and Java are not being blocked by Internet Explorer
Active scripting, ActiveX, and Java are all involved in shaping the way that information is displayed on a webpage. If these features are blocked on your computer, it may disrupt the display of the webpage. You can reset your Internet Explorer security settings to make sure these features aren’t blocked. To do it, follow these steps:
Start Internet Explorer.
On the Tools menu, select Internet Options. If you can’t see the Tools menu, press Alt to display the menus.
In the Internet Options dialog box, select the Security tab.
Select Default Level > OK.
ActiveX controls and Java programs are turned off in the High security level in Internet Explorer.
Method 2: Remove all temporary Internet files
Every time that you open a browser to view a webpage, your computer stores a local copy of that webpage in a temporary file. If the size of the temporary Internet files folder becomes too large, some display problems may occur when you open webpages. Periodically clearing the folder might help to resolve the problem.
To remove all the temporary Internet-related files for Internet Explorer.
Start Internet Explorer.
On the Tools menu, select Internet Options. If you can’t see the Tools menu, press Alt to display the menus.
Select the General tab.
Under Browsing History, select Delete.
In the Delete Browsing History dialog box, select the following check boxes, and then select Delete:
- Temporary Internet Files
- Cookies
- History
Select Close, and then select OK to close the Internet Options dialog box.
Method 3: Install the latest software updates for Windows
To stay up to date, select the Start button > SettingsВ > Update & SecurityВ > Windows Update, and then select Check for updates.
Advanced debugging
This section is intended for more advanced computer users. It includes three methods to help resolve the problem.
Method 1: Verify that active scripting, activeX, and java are not blocked by an antivirus program or by a firewall
Scripts, ActiveX controls, and Java programs help shape the way a webpage is displayed. If these features are blocked, it may disrupt the display of webpages.
To make sure that scripts, ActiveX controls, and Java programs aren’t blocked, see the documentation for the firewall or antivirus program that you use. Then make any necessary changes.
Method 2: Verify that your antivirus program isn’t set to scan the Temporary Internet Files or the Downloaded Program Files folders
If an antivirus program interprets a script as a virus, and prevents it from running, a script error may occur. To prevent this issue, make sure that the antivirus program isn’t scanning the Temporary Internet Files folder or the Downloaded Program Files folder.
To prevent the program from scanning these folders, see the documentation for the antivirus program that you use. Then make any necessary changes. For adding exclusions to Windows Security in Windows 10 environments review, Add an exclusion to Windows Security.
Method 3: Turn off Smooth Scrolling
If you experience a video display problem, the Smooth Scrolling feature may cause a script to be timed incorrectly. It can generate a script error. To turn off the Smooth Scrolling feature in Internet Explorer, follow these steps:
- Start Internet Explorer.
- On the Tools menu, select Internet Options. If you can’t see the Tools menu, press Alt to display the menus.
- On the Advanced tab, clear the Use Smooth Scrolling check box.
- Select OK, and then exit Internet Explorer.
If this resolves the problem, check whether there is an updated driver available for your video adapter. To obtain an updated driver, contact the manufacturer of your video adapter or of your computer.
More information
Procedure to turn off notification about every script error in Internet Explorer
Start Internet Explorer.
On the Tools menu, select Internet Options. If you can’t see the Tools menu, press Alt to display the menus.
On the Advanced tab, clear the Display a notification about every script error box, and then select OK.
Troubleshooting Script Errors when printing from Internet Explorer
If you try to print a webpage in Internet Explorer, you may receive a script error that resembles the following example:
Generally, outdated printer drivers can cause problems when you print from Internet Explorer. To resolve these problems, try updating to the latest printer driver for your printer.
To resolve this issue, follow the steps in Fix printer problems in Windows 7 and Windows 8.1 to check your printer and update the printer driver.
In some cases, an updated version of the driver may not be available through Windows Update. You may have to visit the manufacturer’s website to locate and download the latest printer driver for your printer.
If you can’t print or preview a webpage in Internet Explorer, see the following article: