Fix: Windows Script Host access is disabled on this machine

If your system must not connected to a domain, if so contact your network administrator. These few steps will help you enable the Windows Script Host restriction if you need to run a JavaScript or Vbscript.

Enable Windows Script Host access?

1. Press Windows Key + R, and type regedit.exe

2. Navigate to the following key and delete the value named Enabled from there:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows Script Host\Settings

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings

If a key doesn’t exist, ignore and check the next key.

3. Exit the Registry Editor.

Enable Windows Script Host access using command-line

To do this using command-line, run the command prompt as admin and execute these commands:

REG DELETE “HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings” /v Enabled /f

REG DELETE “HKLM\SOFTWARE\Microsoft\Windows Script Host\Settings” /v Enabled /f

Done!

Leave a Reply