Fix: Windows Script Host access is disabled on this machine

Your system must not be 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



I started this tech blog back in 2011 as a place to write down processes I took to fix my client systems and network. Now I write some tips and tricks to help others with the tech issues that one might encounter.

You may also like...

4 Responses

  1. Shajib says:

    Thanks. It’s Work

  2. Pardington Mutandagavi says:


  3. Lumbani Simpokolwe says:

    Thanks it worked

  4. Adekoya Hameed says:

    Thanks it worked for me