home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 October / Chip_2004-10_cd1.bin / chplus / guide / AppCompat-XPSP2.msi / _8A20A82799263F2E2F7D3C7DEA618834 / _9AACA3FD40694B15B1310BE78DD96815 < prev    next >
Encoding:
Text File  |  2004-08-23  |  2.6 KB  |  60 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. ' AddOn.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 applies a .reg file that edits the registry to disable a specific Internet Explorer add-on.
  31.  
  32. 'Before this script is used the .reg file must be edited to contain the CLSID of the add-on component
  33. 'to be disabled. The CLSID appears 3 times in the .reg file and all of these instances must be changed.
  34.  
  35. 'Alternatively export the .reg file from a system with the add-on already disabled.
  36.  
  37. 'To identify the CLSID of an add-on component search the regisrty for the add-on name that is located in the 
  38. 'Manage Add-ons interface. To do this:
  39. '    Open Regedit, the registry editor
  40. '    Highlight "My Computer"
  41. '    On the Edit menu select Find
  42. '    Type the name of the add-on component as seen in the Name column of the Manage Add-ons interface
  43. '    Click the Find Next button
  44. '    Expand the found registry key
  45. '    Select the CLSID key to identify the CLSID of the add-on component 
  46.  
  47. 'Multiple edits can be made at the same time using a .reg file, though each entry can be edited by writing
  48. 'a script to change a specific value if required.
  49.  
  50. 'The script and .reg file are assumed to be in the same directory
  51.  
  52. '.reg files can be imported by directly executing the file if required.
  53.  
  54. 'Create a WshShell object
  55. Set WshShell = CreateObject("Wscript.Shell")
  56.  
  57. 'Use the Run method to apply the .reg file. If the .reg file is in a different directory, the full path
  58. 'must be included: "\full_path\Addon.reg"
  59. WshShell.Run("Addon.reg")
  60.