home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 October / Chip_2004-10_cd1.bin / chplus / guide / AppCompat-XPSP2.msi / _8A20A82799263F2E2F7D3C7DEA618834 / _B04CDBBF02FC4E50B82B7DBFC77873C2 < prev    next >
Encoding:
Text File  |  2004-08-23  |  2.1 KB  |  49 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. ' AllowPop.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 allow pop-ups for specific sites.
  31.  
  32. 'Before this script is used the .reg file must be edited to contain a list of the relevant sites. 
  33.  
  34. 'Alternatively export the .reg file from a computer with the required site already allowed.
  35.  
  36. 'Multiple edits can be made at the same time using a .reg file though each entry can be edited by writing
  37. 'a script to change a specific value if required.
  38.  
  39. 'The script and .reg file are assumed to be in the same directory
  40.  
  41. '.reg files can be imported by directly executing the file if required.
  42.  
  43. 'Create a WshShell object
  44. Set WshShell = CreateObject("Wscript.Shell")
  45.  
  46. 'Use the Run method to apply the .reg file. If the .reg file is in a different directory, the full path 
  47. 'to the AllowPop.reg file must be included: "\Full_Path\AllowPop.reg"
  48. WshShell.Run("AllowPop.reg")
  49.