Windows 10: How to disable Windows Script Host


  1. Posts : 310
    windows 10 pro x64 1803
       29 Aug 2017 #1

    How to disable Windows Script Host


    Is there a good way in registry or group policy to disable wscript.exe? Does it apply to all users?
    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.
      My ComputerSystem Spec


  2. Posts : 3,259
    10.5 Home 1803 x64
       29 Aug 2017 #2

    You can use this per user (HKCU) or per PC (HKLM).
    Code:
    reg add "HKCU\Software\Microsoft\Windows Script Host\Settings" /v "Enabled" /t REG_DWORD /d "0" /f
    reg add "HKLM\Software\Microsoft\Windows Script Host\Settings" /v "Enabled" /t REG_DWORD /d "0" /f
    Another option, per user based.
    Code:
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "DisallowRun" /t REG_DWORD /d "1" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun" /v "1" /t REG_SZ /d "wscript.exe" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun" /v "2" /t REG_SZ /d "cscript.exe" /f

    Symantec used to recommend it, but they have realized, that preventing malware does not really help them.
    VBS.Downloader.Trojan is written using the Visual Basic Scripting language (VBS). For VBS scripts to execute, Windows Scripting Host (WSH) is required. WSH is installed by default on most Windows systems. However, it is possible to disable the WSH. Read the instructions on disabling the WSH.
      My ComputerSystem Spec


  3. Posts : 310
    windows 10 pro x64 1803
    Thread Starter
       29 Aug 2017 #3

    Thanks!
      My ComputerSystem Spec


 

Related Threads
Hi there For people using the CU update as a VM - SWITCH OFF the setting Turn Monitor off -- I.e set it to NEVER and allow the HOST to control the main screen otherwise you'll have to login again with password - nuisance if running file sharing...
Solved Windows Script Host error at startup in AntiVirus, Firewalls and System Security
Hi guys and gals, Please kindly assist with the following error message: "Can not find script file "C:\Users\username\AppData\Roaming\cnkocgrrf\edeqdg.js". This error message keeps popping up every time I restarts a windows 10 Home edition laptop...
Win10 Family: how to whitelist scripts for Windows Script Host in AntiVirus, Firewalls and System Security
Hi, it is possible to totally disable or enable Win10 Family under Win10 Family, see for instance How to blacklist or whitelist a program in Windows 10 I want to enabled Windows Script Host ONLY for a set of (personal) scripts, aka white list...
I am using Windows 10 Home on a HP i3 laptop. Just recently I have started receiving an error pop-up which says "Windows Script Host - There is no script engine for file extension ".js"". There doesn't seem to be a pattern to when the error...
I was trying to enter a new host file on one of our remote user’s laptop and when I went to open the file it showed a bunch of Chinese symbols and wouldn’t let me do anything with it? I tried deleting it and then tried to build a new host file from...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:48.
Find Us