С ошибками сценария в ОС семейства Windows можно встретиться вне зависимости от версии операционной системы. Все они приносят значительные неудобства пользователю, так как программа, при которой появилась ошибка, прекращает работать. При каких условиях возникает ошибка windows script host, как исправить, чтобы она не повторялась впредь, рассказываю ниже. Нужно выполнить ряд простых действий.
Содержание статьи
- «Windows Script Host» – что это за ошибка?
- Как решить проблему
- Настройка времени
- Отключение обновлений
- Удаление некорректно установленных обновлений
- Установка лицензионной Windows
- Ошибки файловой системы
- Установить значение по умолчанию для ключа .vbs
- Проверка компьютера на наличие вредоносных программ
- Отключите Windows Script Host через реестр
- Как действовать, если рабочий стол не запускается?
- Что делать, чтобы такие ошибки более не появлялись?
- Комментарии пользователей
Нужно иметь в виду, что этот сбой не зависит от имеющегося в операционной системе программного обеспечения, а, скорее, относится к ошибке сценария самой системы. Поэтому ошибкой многих пользователей считается сбор информации и анализ работы внешних программ, а также их перенастройка в надежде устранить сбой.
Как решить проблему
Основными причинами возникновения ошибки скрипта Windows являются следующие:
- действие вирусов;
- ошибка времени;
- ошибка обновлений ОС;
- пиратская версия системы;
- сбой работы системных файлов.
Действие вредоносного ПО необходимо иметь в виду. Чаще всего именно вирусы являются причиной ошибки сценария Windows. Поэтому первым шагом будет проверка системы на вирусы одним из эффективных антивирусных программ с обновленными базами. Важно проверить не только системный раздел, но и всю информацию, и логические структуры, имеющиеся в системе.
Настройка времени
Часто ошибка script host в Windows вызывает простое несовпадение временных параметров. В этом случае следует обратить внимание на строку времени: некорректными может быть как само время, так и дата.
Внимание! Настройку даты и времени нужно делать от пользователя с полными правами.
Эти параметры нужно проверить. Для настройки времени и даты следует выполнить такие действия:
- Открыть через кнопку «Пуск» «Панель управления»-«Часы и регион»;
- В разделе «Дата и время» кликнуть на подменю «Установка даты и времени»;
- Откроется окно с указанием даты, времени и часового пояса, где нужно нажать на кнопку «Изменить дату и время»;
- В открывшемся окне откорректировать требуемые параметры и нажать на кнопку ОК.
Перезагружать компьютер нет необходимости. Дата и время установится сразу после применения настроек. Эти параметры можно настроить в BIOS в главном окне.
Отключение обновлений
Включенная функция загрузки и установки обновлений в редких случаях, но приводит к возникновению ошибки скрипта. Когда не помогла настройка времени, автоматические обновления лучше на время отключить. В Windows 10 сделать это можно через Редактор локальной групповой политике:
- Сочетанием клавиш Win+R открыть функцию «Выполнить»;
- Ввести команду gpedit.msc;
- Откроется окно реестра, где переходим по ветке «Конфигурация компьютераАдминистративные шаблоныКомпоненты WindowsЦентр обновления Windows»;
- Двойным щелчком мыши открыть настройки пункта Настройка автоматического обновления и в соответствующей области поставить флажок на «Отключено».
Для применения настроек нужно нажать кнопку ОК. После закрытия всех окон с применением настроек рекомендуется перезагрузить компьютер. После этого обновления не должны загружаться в систему.
Удаление некорректно установленных обновлений
Бывает так, что обновления с ошибками выпускает сама компания Microsoft – разработчик операционной системы Windows. Это приводит к массовым сбоям операционных систем Windows, которые получили обновление со сбоем.
Важно! Удалять обновления нужно лишь в том случаи, если вы уверены, что ошибку вызывает именно конкретный апдейт.
Пользователь волен подождать некоторое время, чтобы было выпущено обновление, устраняющее ошибку, однако просто удалить файлы намного проще и безопаснее для системы. Удалить установленное обновление можно через Панель управления следующим образом:
- В Панели управления открыть пункт «Программы»-«Удаление программы»;
- Откроется окно, где в левом меню следует выбрать пункт «Просмотр установленных обновлений»;
- Для удаления обновления необходимо кликнуть по нему правой кнопкой мыши и нажать пункт «Удалить».
Для более достоверного удаления важных обновлений рекомендуется отсортировать их по дате и удалить именно тот апдейт, после установки, которого начались ошибки сценария. После окончания процесса удаления нужно перезагрузить компьютер.
Установка лицензионной Windows
Причиной описываемого сбоя часто является встроенный или внешний взломщик лицензии. Дело в том, что такое ПО изменяет код системы и вносит в него свои правки. Из-за этого могут некорректно работать множество сценариев, что и приводит к возникновению ошибки.
Поэтому очень важно устанавливать и пользоваться только лицензионной Windows любой версии. Приобрести ее можно непосредственно у Microsoft, скачав на официальном сайте или купить у официального дистрибьютора. Это безопасно и практично, так как пользователь лицензионной ОС всегда своевременно получает все обновления системы и поддержку производителя.
Ошибки файловой системы
Проверить файловую систему на наличие ошибок можно, введя в командной строке «sfc /scannow».
Это инициирует процесс сканирования SFC. По возможности найденные ошибки будут исправлены. Если таковые найдены не были, можно восстановить целостность системы. Для этого предусмотрены определенные команды. Вводить их нужно поочередно, после каждой нажимать кнопку Enter:
- Dism/Online/Cleanup-Image/CheckHealth;
- Dism/Online/Cleanup-Image/ScanHealth;
- Dism/Online/Cleanup-Image/RestoreHealth.
После окончания всех процессов рекомендуется перезагрузить компьютер через кнопку «Пуск». Далее, когда система окончательно загрузится, ошибок сценария больше быть не должно.
Установить значение по умолчанию для ключа .vbs
Еще одной распространенной причиной ошибки сценария Windows Script Host является сбой параметров ключа .vbs. Его параметры по умолчанию восстанавливают через реестр. Для этого выполняют следующие действия:
- Открыть сочетанием клавиш Win+R функцию «Выполнить» и ввести команду regedit;
- Откроется окно реестра, где нужно перейти по цепочке HKEY_CLASSES_ROOT.vbs;
- В левой части кона будет расположена папка .vbs, на которую нужно нажать левой клавишей мыши;
- В правой части окна появится значок «По умолчанию», на который нужно нажать двойным щелчком мыши и в поле Значение прописать VBSFile.
Для утверждения параметров нажать на кнопку ОК и закрыть все окна. Далее рекомендуется перезагрузить компьютер и убедиться в отсутствии ошибки.
Проверка компьютера на наличие вредоносных программ
Процедуру проверки на вирусы рекомендуется проводить как минимум раз в полгода. При этом, следует использовать актуальную версию антивирусной программы с обновленными базами. На современном рынке программных продуктов существует много эффективных антивирусов.
Например, с официального сайта можно скачать Kaspersky – признанный во всем мире один из лучших антивирусов. Существуют версии для дома и бизнеса с разным набором функций и дополнительных защит. Проверка состоит из следующих шагов:
- Запустить главное меню программы (с ярлыка или на панели задач);
- Выбрать пункт «Проверка»;
- Рекомендуется выбрать «Полная проверка» и нажать на кнопку «Запустить проверку».
Дождаться окончания проверки с выводом результатов. Обнаруженные угрозы можно удалять или попытаться вылечить на усмотрение пользователя и с учетом важности зараженных файлов.
Также можно воспользоваться антивирусной программой «Avast». Скачать бесплатную версию программы можно, перейдя на официальный сайт разработчика.
Отключите Windows Script Host через реестр
Отключение скриптов в системе повышает безопасность ОС, однако запрещает работу пакетных файлов bat или cmd. Для домашних нужд это вполне эффективный вариант устранения ошибки сценариев, если предыдущие способы не дали желаемый результат. Для отключения Script Host через реестр нужно выполнить такие действия:
- Открыть окно реестра по команде regedit;
- Пройти по цепочке HKLMSoftwareMicrosoftWindows Script HostSettings;
- В правой части окна найти параметр Enable и открыть его двойным щелчком мыши;
- Установить значение 0.
Чтобы включить параметр заново, нужно поставить значение 1. Для этого в параметрах по веткам:
- HKEY_CLASSES_ROOTbatfileshellopencommand
- HKEY_CLASSES_ROOTcmdfileshellopencommand
Меняем стоковые параметры на NOTEPAD.EXE %1.
Как действовать, если рабочий стол не запускается?
Если при включении ПК рабочий стол не запустился, ничего страшного. Есть способ это исправить. Требуется последовательно выполнить несколько действий:
- Одновременно нажать клавиши «Ctrl», «Alt» и «Del».
- Выбрать пункт «Запустить диспетчер задач».
- Перейти во вкладку «Файл».
- Кликнуть по «Новая задача (Выполнить…)».
- В интерактивном поле ввести запрос «explorer.exe» и нажать «ОК».
После этого рабочий стол станет доступен и можно будет приступить к решению проблемы одним из способ, указанных выше.
Что делать, чтобы такие ошибки более не появлялись?
Несколько рекомендаций, способных помочь избежать ошибки «Windows Script Host» в будущем:
- Антивирусная программа, установленная на компьютере, должна содержать все актуальные пакеты данных. Это значит, что нельзя препятствовать ее регулярным обновлениям.
- За ПК следует работать от имени пользователя, а не администратора – так безопаснее.
- Следует оказаться от посещения сомнительных интернет-ресурсов и загрузки файлов из потенциально ненадежных источников.
Совет: чтобы избежать неприятностей и проблем, следует проводить проверку компьютера на наличие вирусных программ хотя бы раз в месяц.
Ошибка сценария в Windows – проблема не установленных программ, а самой операционной системы. Поэтому решать ее нужно в большинстве случаев с помощью различных манипуляций с ОС. Для этого необходимо иметь полный доступ к ресурсам Windows и минимальную компьютерную грамотность. Если все делать внимательно и по инструкции, пользователь устранит сбой и вернет работоспособность системы.
Видео по теме:
Windows Script Host is an administration tool built into every Windows operating system. Its main function is the scripting abilities like batch files. The Windows Script Host error may appear on your Windows 10 computer due to virus invasion, registry errors, or VBS script files. This article on MiniTool mainly discusses how to fix Windows Script Host on Windows 10 and how to recover deleted files if needed.
What does Windows Script Host do?
Windows Script Host, short for WSH, is a Microsoft technology; it is designed for computer administrators to automate and manage some tasks for client computers (or servers). The scripting abilities which can be comparable to batch files are included in Windows Script Host. One of the most obvious characteristics is: it’s language-independent. That means the host can work with different Active Scripting language engines.
All in all, the Windows Script Host provides an environment for Windows users to execute scripts in different languages which will perform tasks via different object models.
Windows Script Host Error Windows 10
Windows Script Host Error
What is Windows Script Host error? It is an error that occurs now and then on PCs running all versions of Windows operating system. The Windows Script Host error is system related (it’s independent of any specific software) and often indicates the virus/malware infection, registry issue, or VBScript file problem.
Many people encounter this problem because the Windows Script Host tool has been damaged in their computers. The following content shares the causes and different situations of Windows Script Host issue.
What Causes Windows Script Host Errors
Three types of reasons are found to be responsible for Windows Script Host errors in Windows 7/8/10/11.
- Virus or Malware: A virus or malware attack is proven to be the major cause of the Windows Script Host error. The virus/malware may attack your system and infect the crucial system files with malicious code. In this case, you must remove/eliminate the virus completely in time; otherwise, it may delete your valuable files/partitions, and even ruin your system.
- VBS script file damage: the VBS script refers to the file that contains VBScript or Visual Basic Scripting codes. If the file goes wrong, it will cause several Windows Script Host errors.
- Registry errors: this type of error usually shows up when you install new programs over the old programs directly. This will result in a slow speed in opening the programs and even a sudden crash in the system. To avoid this, you should uninstall the old ones completely before starting the installation of the new program.
Windows Script Host: Error Messages
The execution of the Windows Script Host failed sometimes and you may find yourself stuck in the following situations.
Situation 1: Windows Script Host Access Is Disabled on This Machine
You may encounter Windows Script Host access is disabled on this machine, Contact your administrator for details.
Obviously, the error appears because you lose access to Windows Script Host on your current machine.
- If you are using another person’s computer, you should ask the administrator for help, as suggested.
- Yet, if you are running your own computer, you may try the methods that will be introduced in the next part to gain access again.
Situation 2: Windows Script Host Can Not Find Script File
Windows Script Host says Can not find script file “C:UsersPublicLibrariesChecks.vbs” (the file location is not fixed). This “can not find script file” error occurs when the certain script file needed by the system currently has been damaged or lost. In theory, you could recover/repair the needed script file to fix the Windows Script Host cannot find script file issue.
Additionally, you may also receive the Can’t find script engine «VBScript» for script error message sometimes.
Situation 3: Windows Script Host The System Cannot Find the File Specified
You may also see a Windows Script Host window informing you that The system cannot find the file specified.
Similarly, this error occurs when the system fails to find a certain script file (*.vbs).
In addition to access being denied, can not find the script file, and the system cannot find the file specified mentioned above, there are also other possible error messages indicating the Windows Script Host error:
- Not enough storage
- Not enough memory
- Blocked by group policy
- The parameter is incorrect
- Etc.
How to Fix Windows Script Host on Windows 10
When your computer occurs a Windows Script Host error, you are supposed to find solutions. Here we compile several practical methods for you. But before this, we advise you to take good care of your data first.
Here we provide two options for you to manage your data. MiniTool ShadowMaker is a professional software to back up all important drives, systems, files, and folders on your computer. It allows you to make differential and incremental backup schemes which can avoid duplicated backups. Besides, it contains a file sync function that can back up files to multiple locations simultaneously. You can find more functions about this software on this page. If you are looking for backup software, MiniTool ShadowMaker is a reliable one.
Free Download
The other choice is MiniTool Power Data Recovery, a free data restore tool. It can recover lost data due to OS crashes, virus attacks, mistaken deletions, and so on. Even if you haven’t used any data recovery software before, you can easily master how to use this software because of its simple operation interface and clear introduction.
MiniTool Power Data Recovery provides comprehensive features to help you restore data. For saving your scan time, you can select specific scan locations like the desktop, Recycle Bin, and a selected folder. You can also set scan conditions like selecting file systems and file types before you start the scan process. Besides, you can recover files from external hard drives, USB flash drives, memory cards, and other data storage devices.
As a professional data recovery software, MiniTool Power Data Recovery causes no damage to your files. Why not have a try?
Free Download
Recover Data with MiniTool Power Data Recovery
Step 1: Click the button below to download MiniTool Power Data Recovery.
Free Download
Step 2: Initialize the setup program to finish the installation process of MiniTool Power Data Recovery. Then, run this data recovery software to see the main interface.
Step 3: Select a proper option from the top of the software’s main interface.
In the case where Windows Script Host goes wrong, you should:
- Select Logical Drives to recover files from a certain drive.
- Select Devices to recover files from a missing drive (you should also select this when you don’t know which drive the files are included in).
Step 4: Double-click on the target partition or the disk to perform a full scan on it. Then, wait for the scan result.
Step 5: Look through the files found by MiniTool Power Data Recovery and check the wanted files.
You can click the Preview button to check the selected files are what you want. Use Filter, Search, and Type functions to quickly locate your files.
Step 6: Click on the Save button to choose another drive/disk to store the recovered files.
Step 7: Click on the OK button to confirm your choice.
MiniTool Power Data Recovery free edition can retrieve up to 1GB of files for free. You can get an advanced edition to enlarge the recovery capacity in this site.
Useful Ways to Fix Windows Script Host Error in Windows 10
Fix 1: Run the Microsoft Safety Scanner.
If your WSH issue is caused by malware or virus attacks, the Microsoft Safety Scanner tool is a good choice to fix your computer.
Step 1: Download the Microsoft Safety Scanner if you don’t have one.
Step 2: Install it properly on your PC.
Step 3: Disable all the antivirus software and security essentials.
Step 4: Run the Microsoft Safety Scanner to check your PC for viruses.
Step 5: Wait for the scan and do what it suggests you do.
Fix 2: Run System File Checker (SFC).
System File Checker is a useful tool to scan your Windows and fix corrupted files. When your computer can’t work as normal or encounters the error we discussed in this passage, you can try to run SFC.
Step 1: Press Win + R to open the Run window and input cmd.
Step 2: Press Ctrl + Shift + Enter at once to run Command Prompt as administrator.
Step 3: Choose Yes in the User Account Control pane.
Step 4: Type sfc /scannow and press Enter.
Step 5: Wait for the command to finish and close the window.
Step 6: Restart your computer.
Fix 3: Change the value of the .vbs key.
Step 1: Press Win + R to open the Run window.
Step 2: Type regedit and click on the OK button.
Step 3: Choose Yes in the User Account Control pane.
Step 4: Navigate Computer > HKEY_CLASSES_ROOT > .vbs.
Step 5: Right-click on the (Default) key in the right pane.
Step 6: Choose Modify… from the context menu.
Step 7: Change the Value data into VBSFile.
Step 8: Click on the OK button to confirm.
Step 9: Close Registry Editor and reboot your PC to let changes take effect.
Fix 4: Delete entries after Userinit.exe
If you encounter a Windows Script Host error on startup, you can try this method to solve it.
Step 1: Press Win + R to open the Run window.
Step 2: Type regedit and press Enter to open Registry Editor.
Step 3: Navigate to Computer > HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows NT > CurrentVersion > Winlogon.
Step 4: Delete any entries you find after the Userinit.exe. For example, VMApplet and WinStationsDisabled in the following interface.
Step 5: Double-click on Userinit.exe and make sure the default value is C:Windowssystem32userinit.exe.
Step 6: Close Registry Editor and reboot your PC to let changes take effect.
Please note that you can also try to delete the *.vbs entry when meeting Windows Script Host error on startup.
Fix 5: Run System Restore
You may find the Windows Script Host error occurs when you boot the computer or while you’re using it. Both situations mean the error is caused by recent computer use. If you have created system restore points before, you can restore your system to a previous state to solve this problem.
Step 1: Press Win + R to open the Run window.
Step 2: Input control and click Enter to open the Control Panel.
Step 3: Select Large icons under the View by tab to find the Recovery choice.
Step 4: Choose Open System Restore and select a restore point in the pop-up window.
Fix 6: Rely on Repair Install.
If you have tried all the methods above but the issue still exists, this method should be your last resort. Windows reinstallation can reload the system files and registry keys, which will surely fix the Windows Script Host error and repair the corrupt system files.
For detailed operations about how to reinstall Windows 10, you can go to this article: How to Reinstall Windows 10 without CD/USB Easily (3 Skills)
How to Disable Windows Script Host in Win10
According to the report, some HTML malware will use WSH objects. Therefore, Windows users who don’t need this feature prefer to disable it. You can disable it with the next steps.
Step 1: Open the run dialog box the way you like.
Step 2: Type regedit and click on the OK button.
Step 3: Choose Yes in the User Account Control pane to open Registry Editor.
Step 4: Find the Enabled value under HKEY_CURRENT_USERSoftwareMicrosoftWindows Script HostSettings.
Step 5: Double-click on Enabled from the right-hand pane.
Step 6: Set the Value data to 0 and click the OK button.
Please be advised that you won’t be able to run any scripts using WSH after disabling it (VBScript and JScript scripts are included).
How to enable the Windows Script Host again? Definitely, you should change the Value data of Enable key to 1. If you find Windows Script Host Enable key missing, please create a key by yourself.
Conclusion
Windows Script Host errors can occur occasionally, but they can be easily resolved. If you run into this error, please try the above methods to fix it. When you find data lost after the error is fixed, please try MiniTool Power Data Recovery to retrieve them.
Free Download
If you have any problem in using the software, please let us know via [email protected].
С ошибкой сценария хоста Windows можно столкнуться в любое время, независимо от того, какую версию операционной системы вы используете. Неожиданное появление этого сбоя указывает на то, что какой-то модуль работает не так, и необходимо внести соответствующие исправления.
Однако пользователи часто не понимают, какое сообщение содержится в самой ошибке. Путаница происходит потому, что сбой в Windows Script Host не зависит от программного обеспечения, установленного на устройстве. Скорее он представляет собой строку в сценарии, который является частью самой операционной системы.
При этом причины возникновения этой проблемы могут различаться, но чаще всего это указывает на заражение вредоносным ПО. Поэтому в качестве самого первого шага, в попытке исправить ситуацию, следует выполнить полное сканирование системы с помощью надёжного антивирусного программного обеспечения. Помимо этого проблема может быть вызвана повреждёнными системными файлами, ошибками в реестре или чем-то ещё. Поэтому ниже вы найдете несколько решений, для разных ситуаций.
Решение 1. Просканируйте свой компьютер на наличие вредоносных программ
Хотя на рынке существует множество сторонних приложений для защиты системы, Windows включает в себя бесплатный антивирус – Защитник Windows. В настоящее время это программное обеспечение находится на одном уровне со многими известными поставщиками ПО безопасности. Поэтому при отсутствии на компьютере стороннего антивируса, используйте его. Первым делом необходимо выяснить, заключается ли проблема в наличии вредоносных программ на ПК.
Просканируете компьютер:
- Щелкните правой кнопкой мыши Пуск и выберите Параметры.
- Перейдите к обновлению и безопасности.
- Выберите Безопасность Windows слева и нажмите Защита от вирусов и угроз.
- Затем кликните на Параметры сканирования;
- Нажмите флажок Проверка автономного Защитника Windows и Сканировать сейчас.
Это действие перезагрузит компьютер и запустит глубокое сканирование системы.
Решение 2. Запустите сканирование SFC и DISM
Средство проверки системных файлов может диагностировать и восстанавливать проблемные или повреждённые системные данные Windows:
- Введите cmd в поиске Windows.
- Щелкните правой кнопкой мыши командную строку и выберите Запуск от имени администратора.
- В новом окне введите sfc /scannow и нажмите Enter. Выполните сканирование SFC.
- Дождитесь завершения работы программы, и перезагрузите компьютер.
Если сканирование SFC ничего не нашло или не смогло исправить обнаруженные нарушения целостности, вам следует выполнить восстановление образа Windows с помощью DISM. Откройте командную строку от имени администратора ещё раз и запустите следующие команды, нажимая Enter после каждой:
- Dism/Online/Cleanup-Image/CheckHealth;
- Dism/Online/Cleanup-Image/ScanHealth;
- Dism/Online/Cleanup-Image/RestoreHealth.
Решение 3. Восстановите значение VBS по умолчанию через реестр
Неправильное изменение реестра Windows может привести к ошибкам, повреждению системных файлов и ОС. Убедитесь, что вы сделали резервную копию базы данных, прежде чем переходить к следующим шагам.
- Введите regedit в поиске Windows и нажмите Enter.
- Зайдите в реестр. Если отобразится Контроль учётных записей пользователей, нажмите Да.
- В открывшемся окне реестра нажмите на строку Правка, а затем – Найти и введите Vbs – нужно найти одноименную папку.
- Дважды щелкните ключ по умолчанию справа.
- Убедитесь, что для ключа установлено значение VBSFile, и нажмите OK.
- Восстановите значение VBS по умолчанию.
Решение 4. Отключите Windows Script Host через реестр
Windows Script Host был представлен в Windows 98 – он позволяет запускать на компьютере больше языков программирования. К сожалению, если вредоносному ПО удастся проникнуть в устройство, оно может злоупотребить этим и получить доступ к большему количеству внутренних функций. Таким образом, полное отключение Windows Script Host, если он не используется, является хорошей практикой безопасности, которая также остановит появление связанной с ним ошибки.
- Введите regedit в поиске Windows и нажмите Enter.
- После захода в редактор реестра перейдите по следующему пути: HKEY_CURRENT_USERSoftware MicrosoftWindows Script HostSettings.
- Если справа вы не видите ключ Enabled, создайте его.
- Для этого щелкните правой кнопкой мыши в пустое место в правом окне и выберите «Создать»> «Значение DWORD (32 бита)».
- После появления ключа дважды щелкните по нему ЛКМ и установите для него значение 0 Отключить хост Windows Script.
- Теперь перейдите по следующему пути и повторите шаги, описанные выше: HKEY_LOCAL_MACHINESoftwareMicrosoftWindows Script HostSettings.
Примечание. При каждой попытке запуска файла VBS вы будете получать сообщение об ошибке: «Доступ к сценарию хоста Windows отключён на этом компьютере». Вы можете повторно включить его, изменив значение ключа в упомянутых разделах реестра на 1.
Вы сталкиваетесь с сообщениями об ошибках Windows Script Host, например «Система не может найти файл, указанный для сценария Startup.vbs»? Или что-то вроде «Доступ к Windows Script Host отключен на этой машине»? Обычно эти ошибки вызваны повреждением системных файлов, вредоносным ПО, ошибками реестра и проблемами с файлами сценария VBS.
Итак, если у вас достаточно ошибок Windows Script Host, читайте дальше, чтобы узнать, как можно решить эти проблемы.
Windows Script Host – это встроенный инструмент, предназначенный для администраторов ПК для автоматизации задач и управления ими . Он предоставляет среду, в которой вы можете выполнять сценарии на разных языках. По умолчанию этот инструмент интерпретирует и запускает файлы VBScript (.VBS и .VBE) и файлы JScript с открытым текстом (.JS и .JSE).
Когда вы сталкиваетесь с ошибками Windows Script Host, это означает, что инструмент Windows Script Host не может прочитать определенный файл сценария. Теперь, когда мы это знаем, давайте посмотрим, как можно обрабатывать ошибки Windows Script Host.
1. Сканируйте свой компьютер на наличие вирусов и устраняйте все угрозы.
Если вредоносное ПО является основным виновником этого сообщения об ошибке, вы можете выполнить полное сканирование своего устройства и удалить все вредоносные программы.
Для начала вот несколько простых шагов, которые необходимо выполнить:
- Введите Безопасность Windows в строке поиска Windows и выберите Лучшее соответствие .
- В следующем окне выберите Защита от вирусов и угроз .
- Затем выберите « Параметры сканирования», а затем выберите « Полная проверка» из появившихся вариантов.
- Наконец, нажмите кнопку Сканировать сейчас .
Если вы хотите просканировать определенные файлы или выполнить быстрое сканирование, откройте настройки защиты от вирусов и угроз в соответствии с предыдущими шагами и выберите вариант Быстрое сканирование или Выборочное сканирование . В дополнение к этому, вы также можете попробовать запустить автономную проверку Microsoft Defender .
2. Измените значение по умолчанию для файла VBS.
VBS (Virtual Basic Script) – это файл, содержащий код, который можно запустить с помощью инструмента Windows Script Host. Если этот файл настроен неправильно, это может вызвать несколько ошибок Windows Script Host.
Итак, чтобы решить эту проблему, попробуйте изменить значение по умолчанию для файла VBS, выполнив следующие действия:
- Нажмите Win + R, чтобы открыть диалоговое окно «Выполнить команду».
- Введите Regedit и нажмите ОК, чтобы открыть редактор реестра.
- Перейдите в Компьютер> HKEY_CLASSES_ROOT> .vbs .
- Дважды щелкните значение (По умолчанию) на правой панели, чтобы открыть его.
В следующем окне установите для параметра Value значение VBSfile, а затем нажмите OK, чтобы сохранить эти настройки.
Когда вы закончите, закройте редактор реестра и перезагрузите компьютер.
3. Исправьте поврежденные системные файлы с помощью SFC и DISM.
Если ошибки Windows Script Host вызваны повреждением системных файлов, вам могут пригодиться инструменты SFC и DISM . Это два важных инструмента, на которые вы всегда можете положиться, если хотите быстро найти и восстановить вредоносные системные файлы.
Для начала вот как можно запустить инструмент DISM:
- Нажмите Win + R, чтобы открыть диалоговое окно «Выполнить команду».
- Введите CMD и нажмите Ctrl + Shift + Enter, чтобы открыть командную строку с повышенными привилегиями.
- Затем введите следующую команду и нажмите Enter :
DISM /Online /Cleanup-Image /ScanHealth
- Дождитесь завершения сканирования. Оттуда введите следующую команду и нажмите Enter :
DISM /Online /Cleanup-Image /RestoreHealth
- Когда сканирование будет завершено, перезагрузите компьютер, чтобы применить эти изменения.
- Теперь вы можете запустить сканирование SFC. Для этого откройте командную строку в соответствии с предыдущими шагами, введите следующую команду и нажмите Enter :
sfc /scannow
- Когда сканирование будет завершено, закройте командную строку и перезагрузите компьютер.
4. Используйте сканер безопасности Microsoft.
Если у вас установлена антивирусная программа, вы можете использовать ее для поиска и удаления любых вредоносных программ, которые могут вызывать эту ошибку. Но если у вас нет антивирусной программы, вы можете попробовать Microsoft Safety Scanner. Это бесплатный и простой в использовании инструмент, предназначенный для быстрого поиска и удаления вредоносных программ с устройств Windows.
Вот как можно использовать Сканер безопасности Microsoft:
- В зависимости от характеристик вашей системы загрузите 32- или 64-разрядную версию Microsoft Safety Scanner .
- После установки откройте программу и выберите тип сканирования, которое вы хотите запустить.
- Нажмите Далее, чтобы продолжить, и следуйте инструкциям на экране, чтобы завершить процесс.
5. Используйте точку восстановления системы.
Создание точек восстановления – один из лучших способов обезопасить данные Windows. Если ошибки Windows Script Host возникли недавно, вы можете решить их, вернув свой компьютер в предыдущее состояние с помощью точки восстановления.
Итак, если вы уже создали точку восстановления системы, вот как вы можете ее использовать:
- Введите « Панель управления» в строке поиска Windows и выберите « Лучшее совпадение» .
- Щелкните раскрывающееся меню Просмотр по и выберите Крупные значки .
- Прокрутите вниз и выберите вариант восстановления .
- В следующем окне выберите параметр « Открыть восстановление системы», а затем нажмите « Далее» во всплывающем окне.
- В окне « Восстановление системы» выберите точку восстановления и нажмите « Далее», чтобы продолжить.
Следуйте инструкциям на экране, чтобы завершить процесс, и по завершении перезагрузите компьютер.
6. Включите Windows Script Host через редактор реестра.
Вы можете столкнуться с ошибками Windows Script Host просто потому, что Script Host отключен. Чтобы решить эту проблему, вот как вы можете включить Script Host через редактор реестра:
- Нажмите Win + R, чтобы открыть диалоговое окно «Выполнить команду».
- Введите Regedit и нажмите ОК, чтобы открыть редактор реестра.
- Перейдите в HKEY_CURRENT_USER> Программное обеспечение> Microsoft> Windows Script Host> Настройки .
Дважды щелкните значение Enabled на правой панели и установите для него значение 1 .
Если вы не можете найти значение Enabled , создайте его, выполнив следующие действия:
- Щелкните правой кнопкой мыши пустое место на правой панели и выберите « Создать»> «Значение DWORD (32-разрядное)» .
- Назовите это новое значение как « Включено» и нажмите « ОК» .
- Наконец, дважды щелкните значение и установите для него значение 1 .
Легко устраняйте ошибки хоста сценариев Windows
Ошибки Windows Script Host довольно раздражают, но исправить их очень просто. Если вы столкнетесь с такими проблемами, просто следуйте нашим советам, и все будет в порядке. Оттуда вы даже можете начать изучение пары сценариев Windows, которые помогут вам автоматизировать ваши задачи.
Системная ошибка «Windows Script Host» очень знакома пользователям Windows 7/8/10. Ее возникновение чаще всего сопровождается разными официальными обновлениями от компании Microsoft. Еще недавно все работало как надо, а тут вдруг при запуске приложений может происходить сбой или при загрузке Windows выскакивает черный экран и уведомлением об ошибке — «Не удается найти файл сценария» (run.vbs, launchall.js). Иногда с такой проблемой сталкиваются при установке Windows, что характерно она проявляется на официальных версиях от Microsoft тоже.
Что это за ошибка?
К счастью для пользователей, данный конфликт сценариев вполне объясним, и связывается он с неправильными интегрированными установочными файлами. По разным причинам весь софт не смог полностью выгрузится в операционную систему. Тут виной являются обновления и установочный диск Windows, пиратская сборка. К дополнительным источникам проблемы нужно отнести: антивирусы, любые сторонние утилиты по оптимизации системы, пользовательские действия на системном диске и другие.
По не официальным данным Windows Script Host может создавать до нескольких сотен подобных ошибок, самые распространенные из которых: 80070002, 80070003 или 80070483. Решения у них бывают практически одинаковые, во многих случаях понадобится не более 5 минут для их реализации и исправления конфликтной ситуации.
Исправляем Windows Script Host (Код 80070002)
Далее мы приведем несколько методов, которые избавят вас от данного сбоя. Эти методы проверенны и одобрены многими юзерами, а также предлагаются как оптимальные на официальном форуме поддержки Microsoft.
Остановка служб обновления
Иногда процесс обновления ОС происходит не совсем корректно. Это бывает связанно с загруженностью системы, сбоях интернета и т.д. Решениями становятся не сложные манипуляции, которые сможет сделать абсолютно любой пользователь. Выполним остановку центра обновлений.
- Перейдите в меню «Пункт» и посетите «Панель управления».
- Найдите подменю «Администрирование».
- Увидите список операций, кликните по «Службы».
- В новом окне отсортируйте все службы ОС по имени, это поможет в поиске «Центр обновления Windows».
- Кликните правой кнопкой мышки. Выберите «Остановить».
Остановка Центра обновлений Windows - Перезагрузите систему.
Это способ помогает прервать постоянные попытки компьютера получить новые обновления, которые могут вызывать ошибку 80070002.
Настройте время
Ошибка «Windows Script Host сценария» проявляется вследствие неправильно установленной даты на вашем ПК. Расхождения с главным сервером Microsoft во времени очень часто создает конфликты. Устанавливаемый софт строго соблюдает авторские права и поддержку разного рода DirectX , а они, как известно, не вечные.
- Перейдите в правом углу в меню часов, для этого нажмите на них.
- В самом низу будет одно единственное действие «Изменение настроек даты и времени».
Проверяем правильность настроек времени на ПК - Далее вводите правильное число и выбираете свой часовой пояс. А вообще лучше выставить автоматическое определение.
Самый простой способ решения, но не менее действенный от этого.
Удаление последних обновлений
Это вариант поможет в ручную решить данную ситуацию. Нужно будет посетить центр обновления и удалить все внесенные изменения за последнее время.
- Через «Пуск» найдите уже знакомую «Панель управления».
- Щелкните по службе «Программы и компоненты».
- В левом меню из трех вариантов выберите «Просмотр установленных обновлений».
- Отсортируйте все по дате добавления софта. Это можно сделать при помощи «Установлено».
Удалите обновления за последние пять дней - Начинайте с самой первой даты удалять все подряд. Примените это ко всем пунктам, которые были внесены в систему за пять последних дней.
А вот наглядная и подробная видео инструкция по исправлению подобной ошибки.
А вот хороший обзор о проблеме несколько иного сбоя службы Windows Script Host: «Не удается найти файл сценария run.vbs», который вызывает черный экран при загрузке и соответствующее уведомление.
Заключение
Данные советы помогут вам исправить системную ошибку Windows Script Host самым простым способом. Многие советуют залезть в реестр и менять значения и настройку некоторых служб — в большинстве случаев это не работает. Если манипуляции с обновлениями системы вам не помогли, тогда просто переустановите систему, тем более если у вас пиратская сборка Виндовс.
- Распечатать
Оцените статью:
- 5
- 4
- 3
- 2
- 1
(21 голос, среднее: 2.7 из 5)
Поделитесь с друзьями!
Contents
- What Is a Windows Script Host Error?
- How to Fix Windows Script Host Errors in Windows 10
- Run the System File Checker
- Here’s a simple guide on how to run the SFC command properly:
- Scan your hard disk for problematic sectors using the CHKDSK utility
- Checking your disk via File Explorer
- Checking your disk via Command Prompt
- The guide below will show you how:
- Run a full malware scan
- Run the Microsoft Safety Scanner
- Follow these steps to use the utility:
- Perform a Clean Boot
- Here’s a guide on how to perform a clean boot and figure out which startup program is causing the error:
- Here’s a different and easier way to isolate the responsible program:
- Return the default value of .vbs to VBSfile in the Registry Editor
- Backing up the system registry
- Here are the steps you should follow to change the default value of .vbs:
- You can also delete the VMApplet and WinStationDisabled strings in the Registry Editor. Follow these steps:
- Repair install your PC
- Conclusion
If you’ve had enough of Windows Script Host errors popping up whenever you boot your system or try to start an application, this page is where you should be. You can temporarily remove the error message by ending the corresponding process in the Task Manager, but we have permanent solutions for you. In this article, we’ll show you how to get rid of Windows Script Host pop-ups.
What Is a Windows Script Host Error?
This kind of error shows up when the Windows Script Host tool, which is in charge of handling scripts run by system administrators, fails to read a particular script file or encounters any other issue. The problem might be due to a malicious program, faulty system file, bad script file, or defective hard disk.
How to Fix Windows Script Host Errors in Windows 10
The guides that follow will show you how to fix Windows Script Host errors on startup or when you launch apps.
Run the System File Checker
Windows Script Host errors can be the result of faulty system files. These files might have been compromised by malicious programs or might be victims of application conflicts. In some cases, you might have tampered with them.
Thankfully, you can easily replace bad or missing system files using the System File Checker (SFC). SFC is a built-in command-line program. Microsoft provided the tool for such purposes.
In older Windows versions, all you have to do is fire up the Command Prompt with admin privileges and run the SFC line. However, in Windows 10, you have to run DISM before running SFC. DISM, which is short for Deployment Image Servicing and Management, is another built-in command-line tool. Its job is to provide the files that will be used by the SFC tool for the repair process.
Here’s a simple guide on how to run the SFC command properly:
- Open the Command Prompt with admin privileges. Here is how to do that:
- Go to the search box in the Start menu and type “command.”
- Once Command Prompt shows up in the search results, right-click it and select “Run as administrator.”
- Select Yes once the User Account Control dialog requests permission.
- After the elevated Command Prompt window opens, type the line below and press Enter:
DISM.exe /Online /Cleanup-image /Restorehealth
Allow the DISM tool to use the Windows Update utility to provide the repair files before running the SFC tool. If Windows Update fails to provide the repair files, you’ll have to use the DISM tool to fetch the repair files from a different source, such as a bootable USB or Windows 10 DVD. You’ll also have to enter the following command instead:
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:RepairSourceWindows /LimitAccess
Important Note: The C:RepairSourceWindows part of the command should be replaced with the Windows directory on the USB drive.
- Once the DISM tool has completed its job, go to a new line and type “sfc /scannow” (no quotes) into the elevated Command Prompt window, then press the Enter key.
- The utility will now scan your PC for bad and missing system files and replace them automatically.
- Wait until the verification process is 100% complete before you close the Command Prompt.
You’ll see a completion message that tells you the results of the process. The message that reads “Windows Resource Protection did not find any integrity violations” means that you do not have broken system files. The message that says “Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log C:WindowsLogsCBSCBS.log” means that bad system files were found and replaced.
However, if the Command Prompt tells you that “Windows Resource Protection could not perform the requested operation,” you have to run the SFC command in Safe Mode. Follow this guide:
- Go to the Start menu, click on the power icon, and then select Shut Down.
- Once your system goes off, tap the power button to switch it on, then press and hold your power button to turn it off once your computer manufacturer’s logo flashes on your screen. Reboot your PC in that manner twice again until you see the “Please wait” message.
- Click on the Advanced Options button after you see the Automatic Repair screen.
- The Choose an Option screen will now appear.
- Click on Troubleshoot.
- On the Troubleshoot page, click on the Advanced Options tile.
- Click on Startup Settings once the Advanced Options screen appears.
- Once you see the Startup Settings screen, click the Restart button.
- Your system will now reboot to the Startup Options page.
- Tap the number next to Safe Mode with networking (Since you need an internet connection to run the DISM tool to provide the repair files).
- After your system starts in Safe Mode, go to the C:WindowsWinSxSTemp folder to confirm that the PendingDeletes and PendingRenames directories are present.
- Now, open the Command Prompt as an administrator, then run the DISM and SFC tools.
Scan your hard disk for problematic sectors using the CHKDSK utility
Every file that your computer works with, from system files to application files, is stored on your hard disk. Errors will naturally occur when programs and services can’t read files. This phenomenon doesn’t exclude the Windows Script Host. Most of the Windows Script Host errors suggest that some files can’t be reached.
The CHKDSK utility is designed to find bad sectors on the hard drive and prevent your system from ever using those sectors. It can also attempt to retrieve files stored on those bad sectors, but this is not guaranteed to work all the time. You might have to sacrifice some files.
In this case, the tool might help you recover the file that the Windows Script Host is looking for. If it doesn’t, then you can rest assured that the problem won’t occur again once you’ve managed to get the file via other means.
There are two main ways to run the CHKDSK utility: via the File Explorer and in an elevated Command Prompt window. You’ll find out how to use both methods.
Checking your disk via File Explorer
- Double-click on any folder on your desktop to summon a File Explorer window. The Windows + E keyboard shortcut is another way to launch File Explorer.
- After File Explorer opens, navigate to the left pane and click This PC.
- Switch to the right pane and right-click on the drive where Windows is installed.
- Click on Properties in the context menu.
- When you see the Properties dialog window, head to the Tools tab, then click on Check under Error Checking.
- Click on Scan Drive after the “You don’t need to scan this drive” dialog message appears.
- The CHKDSK tool will now scan your hard disk for errors.
- After the scan, a dialog will appear and show you the results.
Checking your disk via Command Prompt
If the File Explorer method does not resolve the problem, open an elevated Command Prompt window to run a more in-depth and advanced check.
The guide below will show you how:
- Open the Command Prompt with admin privileges. To do that, follow the instructions below:
- Go to the search box in the Start menu and type “command.”
- Once Command Prompt shows up in the search results, right-click it and select “Run as administrator.”
- Select Yes once the User Account Control dialog window requests permission.
- After the elevated Command Prompt window opens, type this command into the new line and hit the Enter key:
chkdsk C: /f /r /x
Note: The letter “C” in the command line should be replaced with the drive letter of your Windows volume.
Here’s a brief explanation about the additional command switches:
The “/x” switch allows CHKDSK to unmount the volume before the scanning process starts.
The “/r” switch prompts the utility to check for bad sectors and recover any readable information.
The “/f” parameter allows the tool to fix errors detected during the scan.
If you see the following message, other applications are currently using the volume you’re trying to scan. Hit the Y keyboard button if the Command Prompt asks you to schedule the scan for your next reboot:
“Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)”
Once you tap Y, restart your computer to complete the check, then check for the error.
Run a full malware scan
One of the main causes of Windows Script Host errors is malware infection. Hackers have the ugly habit of designing malware programs to clone or completely replace script files to wreak havoc without detection. With the technical know-how, these hidden malicious scripts can be fished out. However, a capable antivirus program has what it takes to find the malware and get rid of it in the quickest possible way.
Even if you have an outstanding antivirus program, relying on the regular quick scans and real-time protection feature won’t help. Many security programs have the Full Scan feature, which goes deep into system folders and restricted areas where the malware program might be hiding.
If Windows Security is your main antivirus program, make sure your system is up to date. This way, you’re sure the program is fortified with the latest virus definitions. If you use a third-party antivirus, you also have to ensure you have its latest version.
If you don’t know how to run the Full Scan in your antivirus program, you can head to its developer’s website to determine how to do that. If you use Windows Security, follow these steps:
- Go to your taskbar’s notification area and click on the arrow to expand the system tray.
- After the hidden icons appear, click on the white shield to open Windows Security.
- Next, click on Virus & Threat Protection.
- Once the Virus & Threat Protection window appears, click on Scan Options.
- When you get to the Scan Options page, select the Full Scan option, then click on the Scan Now button.
- Note that the full scan can take up to several hours. So, allow your system to run the operation, then come back later.
- After the scan is complete, prompt the antivirus to remove the malware programs that it has found.
Run the Microsoft Safety Scanner
The Microsoft Safety Scanner is an advanced Microsoft-developed virus-removal tool. It checks for security risks and removes them. Once it finds malicious programs, it will try undoing the changes they’ve made to your computer. Some users reported positive results after running the tool.
Follow these steps to use the utility:
- Make sure you download the latest version of the program from Microsoft’s website.
- After you download the EXE file, run it.
- Select Yes in the User Account Control dialog panel.
- Once the program opens, choose the type of scan you want it to run. Go for the Full Scan option to scan the entire system.
- The scan can take hours to complete. You can run it when you’re less busy rather than stick to your computer while it runs.
- Click on Next.
- After the scan completes, allow the tool to take necessary actions if it finds any malicious program.
Perform a Clean Boot
Since most Windows Script Host errors occur during or immediately after startup, a startup application may be responsible.
Startup applications are programmed to launch whenever Windows starts. They’re essentially the first set of programs that the operating system wakes up after the boot process. One or more of these apps and services could get in the way of the Windows Script Host and trigger the startup error you’re seeing.
You can find the responsible program by performing a clean boot. The clean boot technique involves preventing every non-Windows-related startup application from launching after you reboot your system. Once you’ve done that, you can check if the Windows Script Host error occurs again.
Here’s a guide on how to perform a clean boot and figure out which startup program is causing the error:
- Right-click on the start button to open the Power User menu, then click on Run. Alternatively, punch the Windows logo and R keyboard buttons together to open Run.
- Once you see the Run dialog box, go to the text field, type “msconfig” and hit the Enter button on your keyboard.
- Once the System Configuration dialog window appears, switch to the Services tab.
- Navigate toward the Services tab’s bottom-left corner and check the “Hide all Microsoft services” checkbox. Doing this will prevent Windows from blocking Microsoft-related services.
- Now, click on the Disable All button.
- Next, head to the Startup tab and click on “Open Task Manager.”
- Once you get to the Task Manager’s Startup tab, disable every program you see by clicking each program and clicking on the Disable button.
- Head back to the System Configuration dialog window and click on OK.
- Restart your system and check for the error.
If the error does not pop up once your system comes up, you just confirmed the involvement of a startup application or service. To find the responsible entity, you have to enable the startup items one after the other and restart your system after enabling each. At some point, one item will trigger the error again.
Here’s a different and easier way to isolate the responsible program:
- Open the System Configuration dialog window and switch to the Services tab.
- Go to the Services tab, uncheck half of the startup services, and click on Enable All.
- Restart your system and see if the error is resolved. If the error doesn’t appear, then none of the services you have enabled is the culprit. You’ll have to enable the other half and restart your system to see if the error happens again.
- If the error shows up after enabling one group of the startup services, you only have to focus on checking them one after the other instead of checking everything.
Return the default value of .vbs to VBSfile in the Registry Editor
VBS is a type of scripting file that the WSH can run. Many WSH errors point to faulty or misconfigured VBS files, and making a few changes to the system registry may fix the problem. We’ll show you the steps to take.
Before you begin, note that the system registry is one of the most advanced and sensitive areas in your operating system. A single mistake can render your computer unusable. So, make sure you tread with caution. If you don’t know your way around the registry or aren’t comfortable using it, get someone with expertise to apply the solution for you.
However, if you want to handle things yourself, we recommend that you back up the entire registry to be safe. If you can do that yourself, head straight to the solution to find out how to adjust the default .vbs value.
However, if you don’t know how to back up the registry, keep reading.
Backing up the system registry
- Press the Windows logo and R buttons to launch the Run dialog window.
- After Run opens, go to the text field, type “Regedit,” and click on the OK button.
- Click on the Yes button once the User Account Control dialog window pops up and requests permission.
- When the Registry Editor opens, go to the top-left corner of the window and click on File.
- Select Export from the context menu.
- Once the Export Registry File dialog window opens, select All under Export Range.
- Navigate to the folder where you’d like to save the backup, enter a name for the file, and then click on the Save button.
- That’s it! Whenever you want to restore the registry, open the Registry Editor, click on File >> Import. Go to the folder where you saved the backup file and double-click it.
Here are the steps you should follow to change the default value of .vbs:
- Press the Windows logo and R buttons to launch the Run dialog window.
- After Run opens, go to the text field, type “Regedit,” and click on the OK button.
- Click on the Yes button once the User Account Control dialog window pops up and requests permission.
- When the Registry Editor opens, go to the left pane and expand HKEY_CLASSES_ROOT.
- Under HKEY_CLASSES_ROOT, click on .vbs.
- Navigate to the right pane and double-click on the Default string.
- Once the Edit String dialog opens, go to the Value Data text box and change the value to VBSfile.
- Click on OK.
You can also delete the VMApplet and WinStationDisabled strings in the Registry Editor. Follow these steps:
- Open the Registry Editor and head to the left pane.
- Navigate to ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinLogon.
- Single-click on WinLogon, then switch to the right pane.
- Scroll down and delete the VMApplet and WinStationDisabled entries.
- Next, double-click Usernit.
- Replace its value data with “C:Windowssystem32userinit.exe” (no quotes) and click on OK.
Repair install your PC
If none of the above methods work, you’re left with the option of repairing your Windows 10 installation. This option will help you replace broken system files and other software dependencies for WSH.
Conclusion
We believe you were able to resolve the problem for good. Please head to the comments section if you have anything to share with our community.
Having problems with Windows script host errors? Here’s how to fix them.
Are you encountering Windows Script Host error messages like “The system cannot find the file specified for the Startup.vbs script”? Or something like “Windows Script Host access is disabled on this machine”? Normally, these errors are caused by corrupted system files, malware, registry errors, and VBS script file issues.
So, if you’ve had enough of Windows Script Host errors, read on to discover how you can tackle these problems.
What Is the Windows Script Host and Why Is It Giving You Issues?
The Windows Script Host is a built-in tool designed for PC administrators to automate and manage tasks. It provides an environment where you can execute scripts in a variety of languages. By default, this tool interprets and runs VBScript (.VBS and .VBE) files and plain-text JScript (.JS and .JSE) files.
When you encounter Windows Script Host errors, it means that the Windows Script Host tool is failing to read a particular script file. Now that we know this, let’s take a look at how you can handle Windows Script Host errors.
1. Scan Your PC for Viruses and Remove Any Threats
If malware is the main culprit for this error messa you can perform a full scan on your device and remove any harmful programs.
To get started, here are some simple steps to follow:
- Type Windows Security in the Windows search bar and select the Best match.
- In the next window, select Virus & threat protection.
- Next, select Scan options and then choose Full scan from the options that appear.
- Finally, press the Scan now button.
If you want to scan specific files or perform a quick scan, open the Virus & threat protection settings as per the previous steps and select either the Quick scan or Custom scan option. In addition to this, you could also try running the Microsoft Defender Offline scan.
2. Change the Default Value of the VBS File
The VBS (Virtual Basic Script) is a file containing code that you can run using the Windows Script Host tool. If this file isn’t configured correctly, it could cause several Windows Script Host errors.
So, to tackle this problem, try changing the default value of the VBS file by following these steps:
- Press Win + R to open the Run command dialog box.
- Type Regedit and press OK to open the Registry Editor.
- Navigate to Computer > HKEY_CLASSES_ROOT > .vbs.
- Double-click the (Default) value on the right-hand side pane to open it.
In the next window, set the Value data to VBSfile and then press OK to save these settings.
When you finish, close the Registry Editor and then restart your PC.
3. Fix Corrupted System Files With SFC and DISM
If Windows Script Host errors are caused by corrupted system files, then the SFC and DISM tools can come in handy. These are two critical tools that you can always depend on in case you want to quickly find and repair mischievous system files.
To get started, here’s how you can run the DISM tool:
- Press Win + R to open the Run command dialog box.
- Type CMD and press Ctrl + Shift + Enter to open an elevated Command Prompt.
- Next, type the following command and then press Enter:
DISM /Online /Cleanup-Image /ScanHealth
- Wait for the scan to complete. From there, type the following command and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth
- When the scan is complete, restart your PC to apply these changes.
- Now you can run the SFC scan. To do this, open the Command Prompt as per the previous steps, type the following command, and then press Enter:
sfc /scannow
- When the scan is complete, close the Command Prompt and restart your PC
4. Use the Microsoft Safety Scanner
If you have an antivirus program installed, you could use it to find and remove any harmful programs that might be causing this error. But if you don’t have any antivirus program, then you could give the Microsoft Safety Scanner a try. This is a free and easy-to-use tool designed to quickly find and remove malware from Windows devices.
Here’s how you can use the Microsoft Safety Scanner:
- Depending on your system specs, download either the 32- or 64-bit version of the Microsoft Safety Scanner.
- Once installed, open the program and select the type of scan you want to run.
- Click Next to continue and follow the on-screen instructions to finalize the process.
5. Use a System Restore Point
Creating restore points is one of the best ways to keep your Windows data safe. In case the Windows Script Host errors are a recent thing, then you can tackle them by restoring your PC to its previous state with a restore point.
So, if you’ve already created a system restore point, here’s how you can use it:
- Type Control Panel in the Windows search bar and select the Best match.
- Click the View by drop-down menu and select Large icons.
- Scroll down and click the Recovery option.
- In the next window, click the Open System Restore option and then click Next in the pop-up window.
- In the System Restore window, select a restore point and then click Next to continue.
Follow the on-screen instructions to finalize the process and restart your PC when you finish.
6. Enable Windows Script Host Via the Registry Editor
You might run into Windows Script Host errors simply because the Script Host is disabled. To resolve this issue, here’s how you can enable the Script Host via the Registry Editor:
- Press Win + R to open the Run command dialog box.
- Type Regedit and press OK to open the Registry Editor.
- Navigate to HKEY_CURRENT_USER > Software > Microsoft > Windows Script Host > Settings.
Double-click the Enabled value on the right-hand side pane and then set its Value data to 1.
If you can’t find the Enabled value, create it by following these steps:
- Right-click on an empty space on the right-hand side pane and select New > DWORD (32-bit) Value.
- Name this new value as Enabled and then click OK.
- Finally, double-click on the value and set its Value data to 1.
Easily Tackle Windows Script Host Errors
The Windows Script Host errors are quite irritating, but resolving them is super easy. If you run into such issues, simply follow the tips we’ve provided and you should be good to go. From there, you could even start exploring a couple of Windows scripts that could help you automate your tasks.
Ошибка «Windows Script Host» часто встречается на Windows 10, 8, 7. Причиной их возникновения нередко служат регулярные обновления от компании Майкрософт. И при чем не важно: официальная у вас «винда», или пиратская.
Далее разберем подробно основные причины данной ошибки и как его исправить.
Сбои могут появиться в самое неожиданное время при установке различных ПО, игр и т.д. Сопровождается такая ошибка определенным кодом и сообщением «не удаётся найти указанный файл сценария».
Содержание
- «Windows Script Host» что это такое
- «Windows Script Host» исправить быстро и легко
- Способ 1: Настройка корректного времени на компьютере
- Способ 2: Отключение Центра обновлений
- Способ 3: Удаление некорректно установленных обновлений
- Способ 4: Установка лицензионной Windows
- Вывод
«Windows Script Host» что это такое
Наиболее часто встречающаяся — ошибка 80070002. Как бы ни существовал длинный список различных кодов, их решение почти одинаковое.
Решение подобных конфликтов в большинстве случаев займет не больше 5 минут. Мы рассмотрим самые проверенные методы, которые помогут вам избавиться от данной ошибки. Эти способы признаны оптимальными на официальном сайте сообщества Майкрософт и получили одобрение большинства пользователей Виндовс.
Выделим наиболее распространенные причины возникновения конфликта «Виндовс Скрипт Хост»:
- Не точное системное время.
- Неполадки в работе службы обновлений.
- Загрузка очередного обновления со сбоями.
- Пиратская копия «винды».
«Windows Script Host» исправить быстро и легко
Способ 1: Настройка корректного времени на компьютере
Системное время, которое отображается в области уведомлений, выполняет ряд задач. Одни программы, при обращении к серверам разработчиков или к другим подобным ресурсам, могут выдавать сбои из-за расхождений в дате и времени.
Так что всегда проверяем правильность времени ПК.
- Кликаем на часы в панели задач рабочего стола и открываем настройки;
- Затем переходим на вкладку «Время по интернету»и заходим в параметры. Важно учесть, что ваша учетная запись обязана иметь права администратора.
- В открывшемся окне ставим галочку перед «Синхронизировать с сервером времени в Интернет», далее из имеющегося списка «Сервер»выбираем windows.com и кликаем «Обновить сейчас».
- Об успешном завершении настройки вас уведомит соответствующая надпись. Если возникнет ошибка из-за превышенного времени ожидания пробуем обновить время еще раз.
С этих пор время вашего ПК будет периодически синхронизироваться с сервером времени Microsoft и проблем с расхождением не возникнет.
Способ 2: Отключение Центра обновлений
Одним из частых причин является неудачное обновление системы.
Чему могут способствовать загруженность системы, а также сбои в сети интернет.
- Щелкните на «Пуск» и откройте «Панель управления».
- Зайдите в «Администрирование».
- Откройте «Службы».
- Затем выберите «Центр обновления Windows».
- Щелкните ПКМ. Далее выберите «Остановить».
- Перезагрузите вашу ОС.
С помощью таких простых действий отключаем попытки системы получить свежие обновления, послужившие причиной возникновения конфликта «Виндовс Скрипт Хост».
Способ 3: Удаление некорректно установленных обновлений
Этот способ представляет собой удаление тех обновлений, после установления которых начались неполадки в Windows Script Host. Устранить это можно двумя способами: вручную и через восстановление системы.
На заметку! Какой бы вариант вы ни выбрали, важно помнить хотя бы примерную дату, после которой начались неполадки.
Метод вручную
- Заходим в «Панель управления»и открываем «Программы и компоненты».
- Далее смотрим, какие обновления установлены, нажав соответствующую кнопку.
- Появится весь список обновлений. Для удобства отсортируем их по дате установки, нажав по шапке столбца «Установлено».
- И удаляем все обновления, которые установлены после появления неполадок (смотрим дату).
- Далее перезагружаем ПК.
Утилита восстановления
- Чтобы перейти к данной утилите открываем «Свойства» компьютера.
- Далее заходим в «Защиту системы».
- Кликаем по кнопке «Восстановление».
- В окне программы нажимаем «Далее».
- Ставим галочку, чтобы отобразить дополнительные точки восстановления. Нам нужны позиции «Автоматически созданная точка». Из них выбираем ту, что подходит дате последнего обновления.
- Жмем «Далее», дожидаемся, когда система предложит перезагрузить ПК и совершит процедуру по восстановлению к выбранному состоянию.
Полезно: Важно помнить, что такой процесс может повлечь за собой удаление программ и драйверов, установленные после выбранной даты. Для того, чтобы узнать коснется это вас или нет смотрим список затрагиваемых программ, нажав соответствующую кнопку.
Способ 4: Установка лицензионной Windows
Единственный плюс пиратской версии Виндовс – это то, что они бесплатны. Намного больше от них неудобств, в том числе, некорректную работу важных компонентов.
В данном случае советы по устранению ошибки, указанные выше, могут не решить проблему: исходники файлов уже были сбойными. Здесь остается порекомендовать поискать другой дистрибутив, но желательно, конечно, установить лицензионную версию Windows.
Вывод
Приведенные выше советы помогут вам устранить системную ошибку «Виндовс Скрипт Хост» наиболее простым и доступным образом. Но в случае, если проблема все же не решилась, тогда единственным решением остается переустановка системы, тем более если у вас пиратская версия Виндовс.
Errors that seem to come out of nowhere are nothing new in Windows. Case in point, Windows Script Host errors belong to this category and can affect users on Windows 11 or 10 as well as earlier versions. Let’s look at the possible reasons behind these issues and how you can fix them.
Tip: Did you know you can assign specific CPU cores to an application in Windows? We show you how.
Content
- What Causes a Windows Script Host Error
- 1. Check Windows Script Host in Registry
- 2. Use Microsoft Safety Scanner
- 3. Check VBS File Value in Registry
- 4. Delete Entries After Userinit in Registry
- Frequently Asked Questions
What Causes a Windows Script Host Error
Windows Script Host (WSH) is a built-in automation tool in Windows that allows administrators to execute various scripts like VBScript and JScript. While WSH tasks are fairly common and run in the background, you might sometimes encounter errors like “Windows Script Host access is disabled on this machine.”
Errors like these can usually be traced back to registry errors, malware infection, VBS script file issues, or other corrupted files. To fix a Windows Script Host error you’ve encountered, you can try the below fixes in sequence.
1. Check Windows Script Host in Registry
Due to a number of reasons, Windows Script Host might simply be disabled on your system. A program you installed or some system settings you don’t remember changing could be the reason behind this. To check if this is indeed the case, you can use the Registry Editor as follows:
- Press Win + R to open the “Run” dialog box.
- Type
regedit
and press Enter to open the Registry Editor. - Open “HKEY_CURRENT_USER -> Software -> Microsoft -> Windows Script Host -> Settings.”
- On the right-hand side pane, double-click the “Enabled” value and check the “Value data” field. Make sure it’s set to “1” and click “OK.”
- If there is no “Enabled” value, you can create it. Right-click in the empty space on the right-hand side pane and select “New -> DWORD (32-bit) Value.” Set the name of this newly-created value to “Enabled.” Click “OK” and set its “Value data” to “1” to complete the process.
- Restart your computer for the changes to take effect.
2. Use Microsoft Safety Scanner
Windows Script Host errors are often caused due to malware infection. You can use a free tool called Microsoft Safety Scanner to scan your system for malware and remove them to fix your WSH error. You can also employ the help of a third-party antivirus program to run a system scan. Here’s how to use Microsoft Safety Scanner.
- Download Microsoft Safety Scanner from Microsoft’s website.
- Launch the downloaded executable, and select “Full scan” for a comprehensive malware check of your system.
- Click “Next” to initiate the scan and follow the on-screen instructions to complete the process.
Good to know: Windows Defender is enough for all the antivirus protection you need on your system.
3. Check VBS File Value in Registry
The Virtual Basic Script (VBS) is a Windows file containing information required by the Windows Script Host tool to run several scripts. It can sometimes be configured incorrectly, causing one or more WSH errors. You can check the VBS file using the Registry Editor to try to fix the errors.
- Open Registry Editor from the “Run” dialog box.
- Open “HKEY_CLASSES_ROOT -> .vbs” and double-click the “(Default)” value on the right-hand side pane.
- Ensure that the “Value data” is set to “VBSFile” and click “OK.”
- Don’t forget to restart your computer for the changes to take into effect.
4. Delete Entries After Userinit in Registry
Users can also encounter Windows Script Host errors during system startup. To fix these kinds of issues, you can delete a few registry entries in the Registry Editor and see if it helps. Follow the steps below to do so:
- Open Registry Editorfrom the “Run” dialog box.
- Open “HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows NT -> CurrentVersion -> Winlogon.”
- Delete all the entries following “Userinit.” In this example, these are “VMApplet” and “WinStationsDisabled.”
- Double-click “Userinit” and ensure the “Value data” is set to “C:Windowssystem32userinit.exe.”
- Click “OK” and restart your computer.
Tip: Fix the most common Windows problems with our easy guide.
Frequently Asked Questions
Can Windows Script Host be misused by malware?
Windows scripts are useful tools used by your system to run important tasks. But they can also be misused by hackers to infect your system. These malicious scripts can be delivered to your system via email, documents, and other programs posing as legitimate software. Once these scripts are on your system, Windows Script Host can end up executing them and infecting your system with the intended malware.
What to do if Windows script errors keep coming back?
If you tried all the fixes we detailed in this article, and these errors are still coming back, you might need to repair your Windows installation. In case that doesn’t help either, you can opt for the last resort of reinstalling Windows. Here’s a simple guide to reinstalling Windows without losing your files.
Can I delete a virus from my computer without an antivirus?
Image credit: Christin Hume via Unsplash. All screenshots by Tanveer Singh.
Tanveer Singh
Tanveer hunts far and wide for PC Hardware, Windows, and Gaming ideas to write about. An MBA in Marketing and the owner of a PC building business, he has written extensively on Technology, Gaming, and Marketing. When not scouring the web, he can be found binging on The Office, running for his life in GTFO, or wrecking karts in Smash Karts.
Subscribe to our newsletter!
Our latest tutorials delivered straight to your inbox