home *** CD-ROM | disk | FTP | other *** search
- '=================================================================================
- 'This script is part of the appendix to the Application Compatibility Testing and
- 'Mitigation Guide for Windows XP Service Pack 2. Before using these scripts you
- 'must read the appendix and all Readme.txt files provided with the scripts. The
- 'scripts are designed as functional samples and will require extensive testing and
- 'some modification for use in a production environment.
- '
- 'For information on additional functionality to incorporate into the script, such
- 'as error checking, go to:
- '
- 'http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28001169
- '
- 'or
- '
- 'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rmscpt/html/rmscpt.asp
- '
- 'As some of the scripts edit the registry it is important that their functionality and
- 'impact on the machine environment is thoroughly tested before they are used in a
- 'production environment.
- '==================================================================================
- ' DCOMSec.vbs
- '
- ' Author: Jim Captainino, Terry Tull (Content Master)
- ' Date: 08/20/04
- ' Revision History:
- ' Date Comment
- ' 08/20/04 Initial version started
-
-
- 'This script edits the registry to exempt applications from DCOM security. An input box
- 'is used to input the application ID (CLSID).
- 'Alternatively the application ID can be hardcoded into the script for distribution to multiple computers.
-
-
- 'Create a WshShell object
- Set WshShell = CreateObject("Wscript.Shell")
-
- 'Use an inputbox to allow the user to specify the application ID from the DCOM Config section
- 'of the Component Services mmc.
- ValName = InputBox("Type the Application ID from DCOM Config in the Component Services mmc including the {}", _
- & "DCOM Application ID", "{}")
-
- 'Use the value of ValName as the value name with a REG-SZ type value of 1 for the application to be exempted
- WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\AppCompat\ActivationSecurityCheckExemptionList\" _
- & ValName & , "1", "REG_SZ"
-
- 'Hardcode the script for a specific application ID. This line must be edited to add the specific application ID
- 'WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\AppCompat\ActivationSecurityCheckExemptionList\" _
- '& "{B801CA65-A1FC-11D0-85AD-444553540000}", "1", "REG_SZ"
-
-