Как удалить ошибку windows script host

Некоторые пользователи Windows 11, Windows 10 могут столкнуться с сообщениями об ошибках Windows Script Host при входе в систему, запуске каких-либо программ и в других ситуациях. Сами ошибки могут отличаться: «Не удается найти указанный файл», «Не удается найти файл сценария», «Не удается сохранить ярлык» и другие.

В этой инструкции подробно о том, чем могут быть вызваны ошибки Windows Script Host и варианты решения проблемы. Внимание: материал предназначен для рядовых пользователей, столкнувшихся с ошибкой, а не для разработчиков скриптов.

Самопроизвольное появление ошибок Windows Script Host при входе в систему или во время работы

Самый частый случай появления проблемы — ошибка появляется без каких-либо действий со стороны пользователя: обычно при входе в Windows, иногда — во время работы в произвольные моменты времени. Типичные сообщения Windows Script Host об ошибке для этой ситуации:

  • Не удается найти указанный файл, код 80070002
  • Не удается найти файл сценария
  • На данном компьютере отключен доступ к серверу сценариев Windows. Обратитесь к системному администратору
    Отключен доступ к серверу сценариев Windows

При этом сам файл сценария (скрипт) — это обычно какой-либо файл с расширением .vbs, имеющий название похожий на что-то системное, имеющее отношение к обновлениям, Windows, иногда — просто run.vbs

Обычно причина ошибки Windows Script Host в данном случае — наличие прописанного автоматического запуска скрипта .vbs в автозагрузке Windows, либо в планировщике заданий.

С большой вероятностью прописан он был каким-то вирусом или иным вредоносным ПО. При этом первые два приведенных в примере сообщения об ошибке обычно говорят о том, что сам вирус уже был удален, однако от него остались «хвосты» в виде попытки запуска файлов из автозагрузки.

Общий порядок действий для этой ситуации:

  1. Скачайте утилиту Autoruns с сайта Майкрософт , распакуйте у себя на компьютере в удобное расположение и запустите утилиту.
  2. Используйте поле быстрого поиска для того, чтобы найти записи в автозагрузке, запускающие скрипты .vbs, для этого достаточно ввести соответствующее расширение в поле поиска (фильтра).
    Поиск запуска скриптов vbs в Autoruns

  3. Если такие элементы были найдены, вы можете удалить их, нажав по ним правой кнопкой мыши и выбрав соответствующий пункт контекстного меню.
  4. Также выполните поиск по wscript и изучите найденные элементы: если они подозрительны, имеет смысл удалить их.

После удаления всех записей для запуска файла в автозагрузке Windows, рекомендую:

  • Удалить и сам этот файл: обычно он располагается в одной из папок с временными файлами.
  • Выполнить дополнительную проверку компьютера на вирусы и наличие вредоносных программ, например, с помощью KVRT (не требует установки на компьютер и не конфликтует со встроенным антивирусом).

Ошибки Windows Script Host при установке программ и игр

Остатки работы вредоносного ПО на компьютере — не единственный случай, когда вы можете столкнуться с ошибками Windows Script Host: например, некоторые установщики игр и программ могут использовать скрипты .vbs или другие для создания ярлыков или других задач.

Эти скрипты запускаются с помощью Windows Script Host (wscript.exe) и при сбоях выполнения действий, прописанных в них, вы можете получить те или иные сообщения об ошибках.

Возможные решения для типичных ошибок для данного случая:

  • Если вы видите сообщение Windows Script Host о невозможности создать ярлык — можно попробовать выполнить запуск установщика от имени администратора.
  • При ошибке «На данном компьютере отключен доступ к серверу сценариев Windows» откройте редактор реестра (Win+Rregedit), перейдите к разделу
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings

    и проверьте наличие параметра DWORD с именем Enabled. Если он присутствует и его значение равно 0, дважды нажмите по нему и установите 1 в качестве значения. При отсутствии параметрам, создайте его и задайте значение 1.

    Включение Windows Script Host в редакторе реестра

  • Сообщения об ошибках Windows Script Host «Не удается найти указанный файл, код 80070002» или «Не удается найти файл сценария» в процессе установки игр и программ обычно появляется при установке нелицензионного софта, когда какие-то из файлов автоматически удаляются встроенным антивирусом Windows. О возможных решениях в инструкции Что делать, если Windows сама удаляет файлы.

В некоторых случаях ошибки Windows Script Host могут быть вызваны сбоями в системе или повреждением системных файлов, может иметь смысл попробовать:

  • Использовать точки восстановления системы
  • Выполнить восстановление целостности системных файлов
  • Установить последние обновления Windows

Если ваша проблема с Windows Script Host отличается от описанных в инструкции, расскажите о том, что именно происходит, какое сообщение об ошибке вы наблюдаете и при каких обстоятельствах. Возможно, я или кто-то из читателей сможет вам помочь.

Все способы:

  • Исправляем ошибку Windows Script Host
    • Вариант 1: Системное время
    • Вариант 2: Служба обновлений
    • Вариант 3: Некорректно установленные обновления
    • Вариант 4: Нелицензионная Windows
    • Заключение
  • Вопросы и ответы: 13

Windows Script Host – особый компонент операционной системы, который позволяет запускать скрипты, написанные на JS (Java Script), VBS (Visual Basic Script) и других языках. При неправильном его функционировании могут наблюдаться различные сбои во время запуска и работы Windows. Такие ошибки зачастую не могут быть исправлены простой перезагрузкой системы или графической оболочки. Сегодня поговорим о том, какие действия необходимо совершить для устранения неполадок в функционировании компонента WSH.

Исправляем ошибку Windows Script Host

Сразу стоит сказать о том, что если вы писали свой скрипт и при его запуске получили ошибку, то необходимо искать проблемы в коде, а не в системном компоненте. Например, вот такое диалоговое окно говорит именно об этом:

Ошибка Windows Script Host вызванная ошибкой в коде скрипта

Такая же ситуация может возникнуть и в том случае, когда в коде имеется ссылка на другой скрипт, путь к которому прописан неверно либо данный файл вовсе отсутствует на компьютере.

Далее мы поговорим о тех моментах, когда при старте Windows или запуске программ, например, Блокнота или Калькулятора, а также других приложений, использующих системные ресурсы, появляется стандартная ошибка Windows Script Host. Иногда подобных окон может появиться сразу несколько. Случается такое после обновления операционной системы, которое может пройти как в штатном режиме, так и со сбоями.

Ошибка Windows Script Host вызванная сбоем в операционной системе Windows

Причины такого поведения ОС следующие:

  • Неверно выставленное системное время.
  • Сбой в работе службы обновлений.
  • Некорректная установка очередного апдейта.
  • Нелицензионная сборка «винды».

Вариант 1: Системное время

Многие пользователи думают, что системное время, которое показывается в области уведомлений, существует только для удобства. Это не совсем так. Некоторые программы, обращающиеся к серверам разработчиков или к иным ресурсам, могут работать некорректно или вовсе отказаться функционировать по причине расхождений в дате и времени. Это же касается и Windows с ее серверами обновления. В том случае, если будет расхождение в вашем системном времени и времени сервера, то могут наблюдаться неполадки с апдейтами, поэтому на это стоит обратить внимание в первую очередь.

  1. Нажимаем на часы в правом нижнем углу экрана и переходим по ссылке, указанной на скриншоте.
  2. Далее идем на вкладку «Время по интернету» и жмем на кнопку изменения параметров. Обратите внимание, что ваша учетная запись должна обладать правами администратора.

    Переход к настройкам времени по интернету в Windows 7

  3. В окне настроек устанавливаем галку в указанный на изображении чекбокс, затем в выпадающем списке «Сервер» выбираем time.windows.com и нажимаем «Обновить сейчас».

    Настройка синхронизации времени с сервером Майкрософт в Windows 7

  4. Если все пройдет успешно, то появится соответствующая надпись. В случае ошибки с превышением времени ожидания просто нажимаем кнопку обновления еще раз.

    Сообщение об успешной синхронизации времени с сервером в Windows 7

Теперь ваше системное время будет регулярно синхронизироваться с сервером времени Майкрософт и расхождения не будет.

Вариант 2: Служба обновлений

Windows – это очень сложная система, с множеством одновременно протекающих процессов, и некоторые из них могут повлиять на работу службы, отвечающей за обновление. Высокое потребление ресурсов, различные сбои и занятость компонентов, помогающих апдейту, «заставляют» службу совершать бесконечные попытки выполнить свою работу. Сам сервис также может сбоить. Выход здесь один: отключить его, а затем перезагрузить компьютер.

  1. Вызываем строку «Выполнить» сочетанием клавиш Win+R и в поле с названием «Открыть» пишем команду, которая позволит получить доступ к соответствующей оснастке.

    services.msc

    Переход к системной оснастке Службы в Windows 7 из строки Выполнить

  2. В списке находим «Центр обновления», кликаем ПКМ и выбираем пункт «Свойства».

    Переход к свойствам службы Центра обновления Windows 7

  3. В открывшемся окне жмем кнопку «Остановить», а затем ОК.

    Остановка службы Центра обновления Windows 7

  4. После перезагрузки служба должна запуститься автоматически. Стоит проверить, так ли это и, если она все еще остановлена, включить ее тем же способом.

    Запуск службы Центра обновления Windows 7

Если после выполненных действий ошибки продолжают появляться, то необходимо поработать с уже установленными обновлениями.

Вариант 3: Некорректно установленные обновления

Данный вариант подразумевает удаление тех обновлений, после установки которых начались сбои в Windows Script Host. Сделать это можно как вручную, так и с помощью утилиты восстановления системы. В обоих случаях необходимо вспомнить, когда «посыпались» ошибки, то есть после какой даты.

Ручное удаление

  1. Идем в «Панель управления» и находим апплет с названием «Программы и компоненты».
    Переход к апплету Программы и компоненты из Панели управления Windows 7

  2. Далее переходим по ссылке, отвечающей за просмотр обновлений.

    Переход к просмотру установленных обновлений в Windows 7

  3. Сортируем список по дате установки, кликнув по шапке последней колонки с надписью «Установлено».

    Сортировка обновлений по дате установки в Windows 7

  4. Выбираем нужное обновление, кликаем ПКМ и выбираем «Удалить». Также поступаем с остальными позициями, помня про дату.

    Удаление установленного обновления в Windows 7

  5. Перезагружаем компьютер.

Утилита восстановления

  1. Для перехода к данной утилите кликаем правой кнопкой мыши по значку компьютера на рабочем столе и выбираем пункт «Свойства».
  2. Далее переходим к «Защите системы».

    Переход к настройкам защиты системы в Windows 7

  3. Нажимаем кнопку «Восстановление».

    Запуск утилиты восстановления системы в Windows 7

  4. В открывшемся окне утилиты жмем «Далее».

    Переход к выбору точек восстановления в утилите восстановления Windows 7

  5. Ставим галку, отвечающую за показ дополнительных точек восстановления. Необходимые нам поинты будут называться «Автоматически созданная точка», тип – «Система». Из них необходимо выбрать ту, которая соответствует дате последнего обновления (или того, после которого начались сбои).

    Поиск точек восстановления в системной утилите Windows 7

  6. Жмем «Далее», ждем, пока система предложит перезагрузиться и выполнит действия по «откату» к предыдущему состоянию.

    Запуск процесса восстановления системы Windows 7

  7. Обратите внимание, что в этом случае могут быть удалены и те программы и драйвера, которые были установлены вами после этой даты. Узнать, произойдет ли это, можно нажав кнопку «Поиск затрагиваемых программ».

    Поиск затрагиваемых восстановлением системы программ в Windows 7

Читайте также: Как восстановить систему Windows XP, Windows 8, Windows 10

Вариант 4: Нелицензионная Windows

Пиратские сборки «винды» хороши лишь тем, что они совершенно бесплатны. В остальном же такие дистрибутивы могут принести массу проблем, в частности, некорректную работу необходимых компонентов. В этом случае рекомендации, приведенные выше, могут не сработать, так как файлы в скачанном образе уже были сбойными. Здесь можно только посоветовать поискать другой дистрибутив, но лучше воспользоваться лицензионной копией Windows.

Заключение

Решения проблемы с Windows Script Host довольно просты, и с ними справится даже начинающий пользователь. Причина здесь ровно одна: некорректная работа инструмента обновления системы. В случае с пиратскими дистрибутивами можно дать следующий совет: пользуйтесь только лицензионными продуктами. И да, правильно пишите ваши скрипты.

Наша группа в TelegramПолезные советы и помощь

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?

Fixing PC errors

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:

  1. Type Windows Security in the Windows search bar and select the Best match.
  2. In the next window, select Virus & threat protection.
  3. Next, select Scan options and then choose Full scan from the options that appear.
  4. Finally, press the Scan now button.
Scanning a PC with the Windows Security tool

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:

  1. Press Win + R to open the Run command dialog box.
  2. Type Regedit and press OK to open the Registry Editor.
  3. Navigate to Computer > HKEY_CLASSES_ROOT > .vbs.
  4. Double-click the (Default) value on the right-hand side pane to open it.
Double-clicking the (Default) value in the Registry Editor

In the next window, set the Value data to VBSfile and then press OK to save these settings.

Setting the Value data to VBSfile

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:

  1. Press Win + R to open the Run command dialog box.
  2. Type CMD and press Ctrl + Shift + Enter to open an elevated Command Prompt.
  3. Next, type the following command and then press Enter:

            DISM /Online /Cleanup-Image /ScanHealth
        
  4. Wait for the scan to complete. From there, type the following command and press Enter:

            DISM /Online /Cleanup-Image /RestoreHealth
        
  5. When the scan is complete, restart your PC to apply these changes.
  6. 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
        
  7. When the scan is complete, close the Command Prompt and restart your PC

4. Use the Microsoft Safety Scanner

Computer Security scanner illustration

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:

  1. Depending on your system specs, download either the 32- or 64-bit version of the Microsoft Safety Scanner.
  2. Once installed, open the program and select the type of scan you want to run.
  3. Click Next to continue and follow the on-screen instructions to finalize the process.
Running the Microsoft Safety Scanner

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:

  1. Type Control Panel in the Windows search bar and select the Best match.
  2. Click the View by drop-down menu and select Large icons.
  3. Scroll down and click the Recovery option.
  4. In the next window, click the Open System Restore option and then click Next in the pop-up window.
  5. In the System Restore window, select a restore point and then click Next to continue.
Using a Restore Point

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:

  1. Press Win + R to open the Run command dialog box.
  2. Type Regedit and press OK to open the Registry Editor.
  3. Navigate to HKEY_CURRENT_USER > Software > Microsoft > Windows Script Host > Settings.
Enabling the Windows Script Host Via the Registry Editor

Double-click the Enabled value on the right-hand side pane and then set its Value data to 1.

Setting the Script Host Value data to 1

If you can’t find the Enabled value, create it by following these steps:

  1. Right-click on an empty space on the right-hand side pane and select New > DWORD (32-bit) Value.
  2. Name this new value as Enabled and then click OK.
  3. 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.

Introduction

Are you a Windows user constantly getting interrupted by the «Windows Script Host» error message? Does the phrase «Can Not Find Script File» now sound all too familiar? Then, you’ve come to the right place. In this comprehensive guide, we’re going to show you how to put an end to these disruptions. We’ll lead you through a few straightforward methods, including using the Autorun utility, tweaking the Registry Editor, and running system checks with SFC and DISM commands.

Correcting the «Windows Script Host» Error with Autoruns

Encountering the «Windows Script Host» error that says «Can Not Find Script File» can certainly disrupt your workflow. Fortunately, the Autoruns utility can provide a straightforward solution to this issue.

Commence the process by obtaining the Autoruns utility from the official Microsoft website. After successfully installing Autoruns, launch the utility and navigate to the «Logon» tab. Examine the list for any entries tied to vbs files. Upon locating such an entry, deselect the corresponding box. A system reboot follows this action. This reboot helps apply the changes made and is key to fixing the vexing «Can Not Find Script File» error that has been hindering your Windows experience.

autoruns utility from microsoft

Download and Run the Microsoft Autoruns Utility

Fix the Windows Script Host via Registry Editor

To further resolve the «Windows Script Host» error, your Windows Registry Editor comes in handy. Initiate the process by opening the Registry Editor: type «regedit» into your Start menu’s search bar and press enter.

Once inside the Registry Editor, navigate to the path: «HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings«. In the right-hand panel, find the «Enabled» key. Double-click it and set the value data to «1». Confirm this change by clicking OK. Conclude this process by restarting your computer to let the changes take effect.

Additionally, there’s a need to alter the default value for the .vbs key. Revisit the Registry Editor and proceed to the path: «HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command«. Here, look for the «(Default)» key in the right pane, double-click it, and ensure the value data is «%SystemRoot%\System32\WScript.exe «%1» %*«. Modify the value if it differs from the recommended setting. Save the changes by clicking OK, close the Registry Editor, and restart your PC to verify if the «Can Not Find Script File» error has been resolved.

registry editor changes

Registry Editor Changes

Leverage Command Prompt to Repair Corrupted System Files

The ultimate solution to the «Windows Script Host» error lies in using the System File Checker (SFC) and Deployment Image Servicing and Management (DISM) commands, both powerful tools in diagnosing and repairing system file issues.

Kick-start the process by opening the Command Prompt with administrator privileges. Initiate the SFC scan by entering the command: «sfc /scannow» and press enter. This command begins a thorough system scan, identifying any corrupted files. If discovered, the SFC tool will automatically attempt to fix them.

Once the SFC scan completes, it’s time to utilize the DISM tool. Type in: «DISM /Online /Cleanup-Image /RestoreHealth» and press enter. This command works to restore potentially damaged system images. Note that this process may require some time to fully execute.

Following the completion of both commands, reboot your computer. This restart allows your system to incorporate the changes and repairs made, potentially resolving the «Windows Script Host» error.

command prompt scan system

Command Prompt: System File Checker

  • The «Windows Script Host» error, often accompanied by the message «Can Not Find Script File,» is a common issue experienced by Windows users. It typically arises when the system fails to locate or execute a specific script file.

  • Autoruns is a utility developed by Microsoft that lets you manage startup items. You can download it from the Microsoft website, and after installation, locate and disable any entries related to vbs files under the «Logon» tab. This can help resolve the «Windows Script Host» error.

  • The Registry Editor is a powerful tool that allows you to modify system files. To fix the «Windows Script Host» error, you can change the value data of certain keys under specific paths. It is essential to follow the correct steps and exercise caution while using the Registry Editor.

  • The System File Checker (SFC) is a built-in Windows tool that scans and repairs corrupted system files. By running an SFC scan using the command «sfc /scannow» in the Command Prompt, you can potentially fix the «Windows Script Host» error.

  • DISM stands for Deployment Image Servicing and Management. It is a Windows tool used to fix Windows corruption errors. Running the DISM command «DISM /Online /Cleanup-Image /RestoreHealth» in the Command Prompt checks the system for corruption and attempts to repair it, thereby potentially resolving the «Windows Script Host» error.


Readers help support Windows Report. We may get a commission if you buy through our links.

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

Windows Script Host error is one of the recent errors users have been complaining about when booting. The error occurs when the Windows Script Host fails to read a particular script file or encounters any other issue.

Likewise, users report having issues with random Command Prompt opening and closing on their PCs.

What causes Windows Script Host errors?

Windows Script Host error occurs in varieties, making it different in some computers. It can appear as Windows Script Host the system cannot find the file specified, and Windows Script Host permission denied. Some of the causes are:

  • Virus and malware attacks – The activities of the Windows Script Host tool may be affected by viruses and malware attacks on your computer. They can infect the crucial system files responsible for the tasks you’re trying to perform with malicious code, resulting in errors.
  • Issues with the VBS script file – The VBS script file stores VBScript or Visual Basic Scripting codes in Windows PCs that the Windows Script Host tool interprets and runs. So, any damage or interference with the VBS script file can impede the process, preventing Windows Script Host from functioning correctly.
  • Windows Registry errors – The error may pop up when the concerned file isn’t accessible in the Registry directory. Also, installing new programs by overwriting the old programs can cause problems with the files in the registry, impeding the hosting tool from running.
  • Corrupt system files – When essential system files are corrupted, it affects how several components of the system work, including the Windows Script Host tool.

These causes are likely to vary depending on the Windows Script Host error message you get. Nevertheless, follow the basic steps we’ll discuss as we go further to fix them.

How can I fix Windows Script Host errors?

Before proceeding with any advanced troubleshooting steps, try the following:

  • Turn off background apps running on your PC.
  • Unplug external USB devices you’re not using.
  • Restart Windows in Safe Mode and check if the Windows Script Host error persists.

If the error persists, try the solutions below:

1. Run the SFC and DISM to repair damaged system files

  1. Left-click the Start button, type Command Prompt, then click Run as administrator.
  2. Click Yes on the User Account Control (UAC) prompt.
  3. Type the following and press Enter:  sfc /scannow

  4. Type the following commands and press Enter after each: DISM /Online /Cleanup-Image /RestoreHealth

  5. Restart your PC and check if the error still appears.

Running SFC and DISM scan on your PC can diagnose and repair corrupted Windows system files causing the Windows Script Host 80070002 error.

Read how to fix the run as administrator option if it’s not working on Windows 11.

2. Change the Default Value of the VBS file

  1. Press Windows + R key to open the Run dialog box, type Regedit, and press OK to open the Registry Editor.
  2. Navigate to: Computer\HKEY_CLASSES_ROOT\.vbs
  3. Double-click the Default key on the right-hand pane to open it. Change the Value data to VBSfile, then press OK to save these settings.

  4. Exit the Registry Editor and restart your PC to check if the error appears.

Tweaking the value for the VBS file in the Registry Editor will fix configurations causing the Windows Script Host error.

3. Run Windows Defender scan to remove viruses and malware

  1. Left-click the Start button, type Windows Security, then click Enter to open it.
  2. Click on Virus & Threat Protection and select the Scan option link.

  3. Then select Full scan to initiate an extensive scan and click the Scan now button and wait while the scan completes.

Running Windows Defender scan will detect and remove any malware and viruses affecting your system performance. Read how to fix the Windows virus and threat protection not working on Windows 11.

Read more about this topic

  • Windows 11 24H2 is now broadly available, but there’s a catch 
  • Gamers are migrating to Windows 11 even more as Windows 10 EoS nears
  • Windows 11 will soon add ‘Advanced’ settings page with lots of useful options
  • Microsoft’s forced BitLocker encryption causing Windows 11 users lose their data

4. Enable Windows Script Host via the Registry Editor

  1. Press Windows + R key to open the Run dialog box, type Regedit, and press OK to launch the Registry Editor.
  2. Navigate to the following path: HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings
  3. Double-click the Enabled key on the right pane to open it. Set the Value data to 1.
  4. If the Enabled key is missing, create it by right-clicking on an empty space on the right side of the screen, select New, then DWORD (32-bit) Value.

  5. Name the new value as Enabled and then click OK.

  6. Double-click on the value and set its Value data to 1.

Since the error can occur if the Windows Script Host tool is disabled on your PC, enabling it will fix the issue.

5. Remove Registry Values after Userinit.exe

  1. Press Windows + R key to open the Run dialog box, type Regedit, and press OK to launch the Registry Editor.
  2. Copy and paste the following in the search bar to go to the directory: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

  3. On the right pane, scroll down to Userinit and delete any keys lined below it.

Deleting the following keys that appear after Userinit will resolve any interference they cause. Read about how to fix a corrupt Registry Editor on Windows 11 if you run into a problem.

6. Run System Restore

  1. Press Windows + R key to open the Run dialog box, type control, then press Enter to open the Control Panel.
  2. Type recovery in the Control Panel search bar and select Recovery.

  3. Then click Open System Restore.

  4. Click Next in the Restore system files and settings window.

  5. Choose the restore point you want to restore from, then click Scan for affected programs.

Running a System Restore will restore the system to an earlier point, removing recent activities that may be associated with the error.

Do not hesitate to read our guide on how to fix Restore Point if it’s not working on your PC. In addition, we have an extensive guide on fixing the Run.vbs error on Windows 11.

If you have further questions or suggestions, kindly drop them in the comments section.


Henderson Jayden Harper

Windows Software Expert

Passionate about technology, Crypto, software, Windows, and everything computer-related, he spends most of his time developing new skills and learning more about the tech world.

He also enjoys gaming, writing, walking his dog, and reading and learning about new cultures. He also enjoys spending private time connecting with nature.


Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Рабочий стол под windows на андроид
  • Mac os x windows 7 оформление windows 7
  • Настройка звука на компьютере windows 10 для игр
  • Windows 10 занижает качество обоев
  • К какой группе программ относится ms excel стандартные программы windows или пакета ms office