How to Disable Windows Script Host

By Jim Campbell

The Windows Script Host shell, or WSH, lets your Windows computer run VBS files. VBS files contain Visual Basic code that changes settings on your computer. For security reasons, some administrators prefer to disable the computer's ability to run VBS files. You can disable WSH by editing the Windows registry. After WSH is disabled, your computer no longer runs VBS files.

Step 1

Click the Windows "Start" button and type "regedit" into the text box in the menu. Press "Enter" to open the registry editor.

Step 2

Navigate to "HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings\" by double-clicking "HKEY_CURRENT_USER," then double-click "Software." Double-click "Microsoft," then double-click "Windows Script Host" and "Settings." Right-click the white space in the details pane and select "New," then "DWORD Value." This opens a dialog text box.

Step 3

Type "Enabled" in the "Name" text box. Type "0" in the "Value" text box. Click "OK" to create your registry value. Reboot your computer for the changes to take effect.

Tips & Warnings

  • The steps above disable script hosting for one user on the computer. You can disable script hosting for all users by replacing "HKEY_CURRENT_USER" in step two with "HKEY_LOCAL_MACHINE."