VBSFIX.REG - VBS/VBE File Security Enhancement Registry Update



The file VBSFIX.REG contains a registry update which will modify the settings for VBS and VBE file extensions such that the default operation of these files is to edit, or open with Notepad.

By having the settings of edit as default instead of open, potentially harmful VBS/VBE files will be stopped and prevented from running.

The same operation can be accomplished by using VBScripting within a VBS file in a login script. Below is a copy of how it can be done:

'------------------------
Sub DisableVBScript()
' Make Default Action of .VBS and .VBE files "Edit" instead of "Open"
' This will cause the script file to open in notepad when double-clicked instead of running.
 
     On Error Resume Next
 
     Dim WshShell
     Set WshShell = WScript.CreateObject("WScript.Shell")
 
 	WshShell.RegWrite "HKCR\VBSFile\Shell\", "Edit"
 	WshShell.RegWrite "HKCR\VBEFile\Shell\", "Edit"
 
End Sub
'------------------------


This simple fix will prevent attempts to use VBS for spreading viruses.
Legitimate VBScript files can still be executed by right-clicking and selecting Open.

This fix is courtesy of an NAI customer suggestion.


McAfee AVERT