In this tutorial, learn how to enable or disable Windows Script Host in Windows 10.
How to enable or disable Windows Script Host in Windows 10
Step 1. Open Registry Editor by pressing Windows Key + R then put regedit in Run dialog box. Click OK.
Step 2. Navigate to following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings

Step 3. Find the Enabled name registry DWORD (REG_DWORD). Then set double-click on it and set it Value Data.
A value of 0 will disable Windows Script Host.
A value of 1 will enable Windows Script Host.

If you don’t look for the Enabled name registry DWORD (REG_DWORD), then you may need to create it.
Step 4. Finally, you can close Registry Editor and reboot your system.
In case if Windows Script Host is disabled, you will get the "Windows Script Host access is disabled on this machine" error. Read this article to learn how to fix it.
You can see this video below to learn how to disable or enable Windows Script Host in Windows 10:

Hope something helps you.