home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 October / Chip_2004-10_cd1.bin / chplus / guide / AppCompat-XPSP2.msi / _8A20A82799263F2E2F7D3C7DEA618834 / _43126B26891A4C96BD287B1E5BFD20EB < prev    next >
Encoding:
Text File  |  2004-08-23  |  2.0 KB  |  46 lines

  1. '=================================================================================
  2. 'This script is part of the appendix to the Application Compatibility Testing and 
  3. 'Mitigation Guide for Windows XP Service Pack 2. Before using these scripts you 
  4. 'must read the appendix and all Readme.txt files provided with the scripts. The 
  5. 'scripts are designed as functional samples and will require extensive testing and
  6. 'some modification for use in a production environment.
  7. '
  8. 'For information on additional functionality to incorporate into the script, such 
  9. 'as error checking, go to:
  10. '
  11. 'http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28001169
  12. '
  13. 'or
  14. '
  15. 'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rmscpt/html/rmscpt.asp
  16. '
  17. 'As some of the scripts edit the registry it is important that their functionality and 
  18. 'impact on the machine environment is thoroughly tested before they are used in a 
  19. 'production environment.
  20. '================================================================================== 
  21. ' ZoneElevation.vbs
  22. '
  23. ' Author: Jim Captainino, Terry Tull (Content Master)
  24. ' Date:   08/20/04
  25. ' Revision History:
  26. '    Date    Comment
  27. '    08/20/04    Initial version started
  28.  
  29.  
  30. 'This script edits the registry to turn off the zone elevation restriction for the iexplore.exe process.
  31. 'This script can also be used to turn on the feature.
  32. 'A value of 1 enables the feature
  33. 'A value of 0 disables the feature
  34.  
  35. 'Edit the value of ConfigZE to configure Zone Elevation for Internet Explorer
  36. ConfigZE = "0"
  37.  
  38. 'Create a WshShell object
  39. Set WshShell = CreateObject("Wscript.Shell")
  40.  
  41. 'Use the RegWrite method to write the appropriate value to the registry, specifying 
  42. 'the value type.
  43. 'This line of code can be edited to enable or disable the feature for a specific process.
  44. WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\" _
  45. & "FEATURE_ZONE_ELEVATION\iexplore.exe", ConfigZE, "REG_DWORD"
  46.