Are you seeing an error message like “Windows Script Host access is disabled on this machine.” while running a script on your computer? If you are indeed facing this issue, there is a very simple registry fix for this problem. Just follow these easy steps-
Fix- Modify Registry Editor-
You need to enable Microsoft Script Host on your computer through Registry Editor.
But, before going ahead to the main process, we strongly suggest you create a backup of the registry on your computer. After opening Registry Editor, click on “File” > “Export” to create the backup.
If anything goes wrong you can retrieve your registry simply by importing the backup.
1. Click on the Search box and then type “regedit“.
2. Now, click on “Registry Editor” from the search results to open it on your computer.
3. In Registry Editor window, on the left-hand side, navigate to this location-
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows Script Host\Settings
4. On the right-hand side of the window, double click on “Enabled” DWORD value.
5. Set the ‘Value data:‘ to “1“.
6. Now, click on “OK” to save the change.
Close Registry Editor window.
Reboot your computer.
That’s it! After rebooting your computer you can easily run any script without any error. Your problem is solved.
Sambit is a Mechanical Engineer By qualification who loves to write about Windows 10 and solutions to weirdest possible problems.