Saturday, January 3, 2009

How to disable Windows Scripting Host


These instructions explain how to tell whether Windows Scripting Host (WSH) is installed on your machine and how to disable the running of VBS scripts. This can prevent some worms from infecting your computer. When Windows, Internet Explorer or some other products are installed or upgraded, Windows Scripting Host might be reinstalled. You would then have to repeat the procedures described below.


Important note: Some applications require Windows Scripting Host. They will cease to function if it is disabled or removed.


Windows 2000/Me/XP/2003

WSH is installed by default.
To prevent scripts with a .VBS extension from being run:

1. Log on as an Administrator.

2. On the Desktop, or in Windows Explorer, right-click on 'My Computer'.

3.
Select 'Open' from the menu.

4.
In the My Computer window, open the Tools menu and select 'Folder Options'.

5. Open the File Types tabbed page.

6. Look for 'VBScript Script File' in the list of file types (if you can't find it, you don't need to do anything else).

7. Click on the Delete button.

8.
If you see a dialog asking you to confirm removal, click 'Yes'.