Monday, May 21, 2012
   
Text Size

Disable Security Warning For File Types

To Disable Security warnings in XP for specific file types:

Dim MyHomePage

ExtensionsToExclude = ".exe,.bat"

WshShell.RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Associations\LowRiskFileTypes" , ExtensionsToExclude , "REG_SZ"

'To Re-enable the Security Warnings:

'WshShell.RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Associations\LowRiskFileTypes" , "" , "REG_SZ"

Please Note: Append to Template.vbs to run this script.