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.
- '==================================================================================
- '
- ' Attachments.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 turn off attachment restrictions for Outlook Express.
- 'This script can also be used to turn on the feature.
- 'A value of 1 enables the feature
- 'A value of 0 disables the feature
-
- 'Create a WshShell object
- Set WshShell = CreateObject("Wscript.Shell")
-
- 'Read the default identity and save it to a variable, IDName. This value will vary between computers.
- 'If multiple Outlook Express identities are used the correct identity must be specified instead of Default User ID.
- IDName = WshShell.RegRead("HKEY_CURRENT_USER\Identities\Default User ID")
-
- 'Use the RegWrite method to write the appropriate value to the registry, specifying the value type.
- 'Use the IDName value to identify the correct identity.
- WshShell.RegWrite "HKEY_CURRENT_USER\Identities\" & IDName & "\Software\Microsoft\Outlook Express\" _
- & "5.0\Mail\Safe Attachments", "0", "REG_DWORD"
-