1.    29 Aug 2017 #1
    Join Date : Jun 2015
    Posts : 287
    windows 10 pro x64 fall creators update

    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.    29 Aug 2017 #2
    Join Date : Oct 2014
    Trnava
    Posts : 2,860
    Windows 10.4 Home 1709 x64

    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.    29 Aug 2017 #3
    Join Date : Jun 2015
    Posts : 287
    windows 10 pro x64 fall creators update
    Thread Starter

    Thanks!
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
CU update as a VM - disable Monitor switch off - use HOST for this
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...
Virtualization
Solved Windows Script Host error at startup
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...
AntiVirus, Firewalls and System Security
Win10 Family: how to whitelist scripts for Windows Script Host
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...
AntiVirus, Firewalls and System Security
Windows Script Hoist - no script engine for file extension .js
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...
General Support
Host file has strange characters. I can't add a host entry?
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...
Network and Sharing
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 11:20.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums