Tutorials - Disabling Windows Scripting Host
| Summary: |
How to tell whether Windows Scripting Host (WSH) is installed on your machine and how to disable the running of VBS scripts. This prevents viruses such as VBS/LoveLet-A from infecting your machine.
|
| Updated: |
24 October 2002 |
| Author: |
Sophos Technical Support Team |
| Company: |
Sophos |
|
|
| Sponsored by: |
 |
Procedure
Notes
When Windows, Internet Explorer or some other products are installed or upgraded Windows Scripting Host may be reinstalled. You would then have to repeat the procedures described below.
Some applications require Windows Scripting Host. They will cease to function if it is disabled or removed.
Windows 98
WSH is installed if you choose a standard installation of the operating system, or if you install Internet Explorer 5, or if you download WSH from Microsoft.
To disable WSH, preventing scripts from being run:
- From the Windows taskbar, select Start|Settings|Control Panel.
- In the 'Control Panel' screen, double-click the 'Add/Remove programs' icon.
- In the 'Add/Remove Programs' window, open the 'Windows Setup' tabbed page. Select 'Accessories' and double-click.
- In the 'Accessories' list, find 'Windows Scripting Host'.
- Click on the check-box by 'Windows Scripting Host' to deselect it.
- Click OK to return to 'Add/Remove Programs' window. Then click on 'OK'.
Windows 95
WSH is installed if you install Internet Explorer 5, or if you download WSH from Microsoft.
To prevent scripts with a .VBS extension from being run:
- On the 'Desktop', or in 'Windows Explorer', right-click on 'My Computer'.
- Select 'Open' from the menu.
- In the 'My Computer' window, open the 'View' menu and select 'Options...'.
- Open the 'File Types' tabbed page.
- Look for 'VBScript Script File' in the list of file types (if you can't find it, your machine is safe and you don't need to do anything else).
- Click on the 'Remove' button.
- If you see a dialog asking you to confirm removal, click 'Yes'.
Windows NT 4.0
WSH is installed if you install Internet Explorer 5, or if you download WSH from Microsoft.
To prevent scripts with a .VBS extension from being run:
- Log on as an administrator.
- On the 'Desktop', or in 'Windows Explorer', right-click on 'My Computer'.
- Select 'Open' from the menu.
- In the 'My Computer' window, open the 'View' menu and select 'Options'.
- Open the 'File Types' tabbed page.
- Look for 'VBScript Script File' in the list of file types (if you can't find it, your machine is safe and you don't need to do anything else).
- Click on the 'Remove' button.
- If you see a dialog asking you to confirm removal, click 'Yes'.
Windows 2000 and Windows Me
WSH is installed by default.
To prevent scripts with a .VBS extension from being run:
- Log on as an Administrator.
- On the 'Desktop', or in 'Windows Explorer', right-click on 'My Computer'.
- Select 'Open' from the menu.
- In the 'My Computer' window, open the 'Tools' menu and select 'Folder Options'.
- Open the 'File Types' tabbed page.
- Look for 'VBScript Script File' in the list of file types (if you can't find it, your machine is safe and you don't need to do anything else).
- Click on the 'Delete' button.
- If you see a dialog asking you to confirm removal, click 'Yes'.