For example as the infamous LoveLetter virus utilizes WSH. As if often the situation - the security aware person has to choose between enhanced functionality versus higher security. With the havoc caused by LoveLetter in mind, security-aware organizations may want to disable the association between VBS and WSH on the computers. Then Visual Basic Scripts will not run automatically when clicked.
Below are instructions about how to disable the association between .VBS and Windows Scripting Host for the operating system that you use.
Windows NT version 4
WSH is installed if
- You install Internet Explorer version 5
- You download WSH from a Microsoft's site
How to disable the .VBS file association to WSH:
- Log in as an administrator
- On the Desktop, or in Windows Explorer, right-click the My Computer icon.
- Select the menu choice Open.
- In the My Computer window, open the View menu and select Options....
- Open the File Types tab.
-
Scroll and look for VBScript Script File in the list of different file types (alphabetically ordered) like in the image below.

If this file type is not in the list, .VBS files are not associated with WSH, and your computer is safe. -
Click the Remove button.
- Click Yes if you are asked for confirmation.
Windows 2000
WSH is installed if
- You select the default installation of the operating system
- You install Internet Explorer version 5
- You download WSH from a Microsoft's site
How to disable the .VBS file association to WSH:
- Log in as an administrator
- On the Desktop, or in Windows Explorer, right-click the My Computer icon.
- Select the menu choice Open.
- In the My Computer window, open the Tools menu and select Folder options.
- Open the File Types tab.
- Scroll and look for VBScript Script File in the list of different file types (alphabetically ordered) like in the image below..

If this file type is not in the list, .VBS files are not associated with WSH, and your computer is safe. - Click the Delete button.
- Click Yes if you are asked for confirmation.
Windows 95
WSH is installed if
- You install Internet Explorer version 5
- You download WSH from a Microsoft's site
How to disable the .VBS file association to WSH
- On the Desktop, or in Windows Explorer, right-click the My Computer icon.
- Select the menu choice Open.
- In the My Computer window, open the View menu and select Options....
- Open the File Types tab.
- Scroll and look for VBScript Script File in the list of different file types (alphabetically ordered) like in the image below:

If this file type is not in the list, .VBS files are not associated with WSH, and your computer is safe. - Click the Remove button.
- Click Yes if you are asked for confirmation.
Windows 98
WSH is installed if
- You select the default installation of the operating system
- You install Internet Explorer version 5
- You download WSH from a Microsoft's site
How to disable the .VBS file assiciation to WBS
- Start Control Panel.
- Double-click the Add/Remove programs icon.
- Open the Windows Setup tab. Select Accessories and double-click it.
- In the list of accessories, find Windows Scripting Host like in the image below.

- Deselect this in the check-box.
- Click OK twice to confirm your settings and close the windows.


