Search code examples
batch-fileregistry

Disable Windows Script Host in Windows


I have to disable the Disable Windows Script Host in Windows with a .bat or a .reg Purpose is to prevent users from accidentally running malicious scripts. I could just delete it or rename it, but it might come back after a Windows update.


Solution

  • try this in a file "name.reg":

    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings]
    "Enabled"=dword:00000000