;	Copyright (c) 1993-1994 Microsoft Corporation  All rights reserved.
;
;	This file is used to INSTALL a  Microsoft Exchange Server.
;



;	Talking to the Service Manager
;

;		ServiceManager(MAD)
CreateService:MSExchangeSA;Microsoft Exchange System Attendant;bin\mad.exe;EventLog$OLE$NtLmSsp$RPCLOCATOR$RPCSS$LanmanWorkstation$LanmanServer$

;		ServiceManager(DSA)
CreateService:MSExchangeDS;Microsoft Exchange Directory;bin\dsamain.exe;MSExchangeSA$

;		ServiceManager(MTA)
; BUG
CreateService:MSExchangeMTA;Microsoft Exchange Message Transfer Agent;bin\emsmta.exe;MSExchangeDS$

;		ServiceManager(MDB)
CreateService:MSExchangeIS;Microsoft Exchange Information Store;bin\store.exe;MSExchangeDS$


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;	Integrating with the EventLog.
;
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application
;delete due to changes, so they will be added later
DeleteKey:MSExchangeDS
DeleteKey:MSExchangeMTA
DeleteKey:MSExchangeIS Private
DeleteKey:MSExchangeIS Public
DeleteKey:MSExchangeIS
DeleteKey:EDB
DeleteKey:ESE97

CreateKey:MSExchangeSA
CreateKey:MSExchangeDS

CreateKey:MSExchangeIS Private
CreateKey:MSExchangeIS Public
CreateKey:MSExchangeIS
CreateKey:MSExchange POP3 Interface
CreateKey:MSExchange IMAP4 Interface
CreateKey:MSExchange NNTP Interface

CreateKey:MSExchangeMTA
CreateKey:EDB
CreateKey:ESE97

CloseKey:

;		EventLog(MAD)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeSA
ReplaceDword:CategoryCount;0x09
ReplaceExpandString:CategoryMessageFile;%s\bin\madmsg.dll
ReplaceExpandString:EventMessageFile;%s\bin\madmsg.dll
ReplaceDword:TypesSupported;7
CloseKey:

;		EventLog(DSA)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeDS
ReplaceExpandString:EventMessageFile;%s\res\dsmsg.dll
ReplaceExpandString:CategoryMessageFile;%s\res\dsmsg.dll
ReplaceDword:CategoryCount;0x10
CloseKey:

;		EventLog(MTA)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeMTA
ReplaceDword:CategoryCount;0xa
ReplaceExpandString:CategoryMessageFile;%s\res\mtamsg.dll
ReplaceExpandString:EventMessageFile;%s\res\mtamsg.dll
ReplaceDword:TypesSupported;7
CloseKey:

;		EventLog(MDB)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeIS Private
ReplaceExpandString:EventMessageFile;%s\res\mdbmsg.dll
ReplaceExpandString:CategoryMessageFile;%s\res\mdbmsg.dll
ReplaceDword:CategoryCount;0x23
CloseKey:
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeIS Public
ReplaceExpandString:EventMessageFile;%s\res\mdbmsg.dll
ReplaceExpandString:CategoryMessageFile;%s\res\mdbmsg.dll
ReplaceDword:CategoryCount;0x23
CloseKey:
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeIS
ReplaceExpandString:EventMessageFile;%s\res\mdbmsg.dll
ReplaceExpandString:CategoryMessageFile;%s\res\mdbmsg.dll
ReplaceDword:CategoryCount;0x23
CloseKey:
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchange POP3 Interface
ReplaceExpandString:EventMessageFile;%s\res\pop3evt.dll
ReplaceExpandString:CategoryMessageFile;%s\res\pop3evt.dll
ReplaceDword:CategoryCount;0x05
CloseKey:
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchange IMAP4 Interface
ReplaceExpandString:EventMessageFile;%s\res\imap4evt.dll
ReplaceExpandString:CategoryMessageFile;%s\res\imap4evt.dll
ReplaceDword:CategoryCount;0x05
CloseKey:
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchange NNTP Interface
ReplaceExpandString:EventMessageFile;%s\res\nntpevt.dll
ReplaceExpandString:CategoryMessageFile;%s\res\nntpevt.dll
ReplaceDword:CategoryCount;0x08
CloseKey:


;		EventLog(EDB)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\EDB
ReplaceExpandString:EventMessageFile;%s\bin\edb.dll
ReplaceExpandString:CategoryMessageFile;%s\bin\edb.dll
ReplaceDword:CategoryCount;0x06
ReplaceDword:TypesSupported;0x07
CloseKey:

;		EventLog(ESE97)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\ESE97
ReplaceExpandString:EventMessageFile;%s\bin\ESE.dll
ReplaceExpandString:CategoryMessageFile;%s\bin\ESE.dll
ReplaceDword:CategoryCount;0x0a
ReplaceDword:TypesSupported;0x07
CloseKey:


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;	Values for using CDONTS.DLL.
;
OpenMachineKey:SOFTWARE\Microsoft\Exchange
CreateKey:Active Messaging
CloseKey:

OpenMachineKey:SOFTWARE\Microsoft\Exchange\Active Messaging
ReplaceDword:POP3 Enabled;0x1
ReplaceDword:POP3 Port;0x6e
ReplaceString:POP3 Server;!Server
ReplaceDword:POP3 Timeout;0x1e
ReplaceString:Temporary Directory;%s\WEBTEMP
CloseKey:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;	Integrating with the PerfMon.
;
OpenMachineKey:SYSTEM\CurrentControlSet\Services
CreateKey:MSExchangeDS\Performance
CreateKey:MSExchangeMTA\Performance
CreateKey:MSExchangeIS\Performance
CreateKey:EDB\Performance
CreateKey:ESE97\Performance
CloseKey:


;		PerfMon(MAD)

;		PerfMon(DSA)

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeDS\Performance
ReplaceString:Close;CloseDsaPerformanceData
ReplaceString:Collect;CollectDsaPerformanceData
ReplaceString:Library;%s\bin\perfdsa.dll
ReplaceString:Open;OpenDsaPerformanceData

CloseKey:

CreateProcessSafe:.;unlodctr MSExchangeDS;180000
CreateProcess:%srcdir%\bin;lodctr dsactrs.ini;360000

;		PerfMon(MTA)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeMTA\Performance
ReplaceString:Close;MTAClosePerf
ReplaceString:Collect;MTACollectPerf
ReplaceString:Library;%s\bin\mtaperf.dll
ReplaceString:Open;MTAOpenPerf

CloseKey:

CreateProcessSafe:.;unlodctr MSExchangeMTA;180000
CreateProcess:%srcdir%\bin;lodctr mtaperf.ini;360000

;		PerfMon(MDB)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\Performance
ReplaceString:Close;CloseMdbPerformanceData
ReplaceString:Collect;CollectMdbPerformanceData
ReplaceString:Library;%s\bin\mdbperf.dll
ReplaceString:Open;OpenMdbPerformanceData

CloseKey:
CreateProcessSafe:.;unlodctr MSExchangeIS;180000
CreateProcess:%srcdir%\bin;lodctr mdbperf.ini;1200000


;		PerfMon(EDB)
;OpenMachineKey:SYSTEM\CurrentControlSet\Services\EDB\Performance
;ReplaceString:Close;ClosePerformanceData
;ReplaceString:Collect;CollectPerformanceData
;ReplaceString:Library;%s\bin\edbperf.dll
;ReplaceString:Open;OpenPerformanceData

;CloseKey:
;CreateProcessSafe:.;unlodctr EDB;180000
;CreateProcess:%srcdir%\bin;lodctr edbperf.ini;360000

OpenMachineKey:SYSTEM\CurrentControlSet\Services
DeleteKey:EDB
CloseKey:

;		PerfMon(ESE97)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\ESE97\Performance
ReplaceString:Close;ClosePerformanceData
ReplaceString:Collect;CollectPerformanceData
ReplaceString:Library;%windir%\system32\eseperf.dll
ReplaceString:Open;OpenPerformanceData

CloseKey:


CreateProcessSafe:.;unlodctr ESE97;180000
CreateProcess:%windir%\system32;lodctr eseperf.ini;180000






; The Services key for MSExchangeIMC so that lodctr would succeed. Later Admin will just enable the service.


;		Miscellaneous
OpenMachineKey:SYSTEM\CurrentControlSet\Services
CreateKey:MSExchangeIMC\Performance
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIMC\Performance
ReplaceString:Close;ClosePerformanceData
ReplaceString:Collect;CollectPerformanceData
ReplaceString:Library;%s\bin\imsperf.dll
ReplaceString:Open;OpenPerformanceData
CloseKey:



CreateProcessSafe:.;unlodctr MSExchangeIMC;180000
CreateProcess:%srcdir%\bin;lodctr imcperf.ini;360000



OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application
CreateKey:MSExchangeIMC
CreateKey:InternetProxy
CloseKey:

;		EventLog(MSExchangeIMC)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\EventLog\Application\MSExchangeIMC
ReplaceExpandString:EventMessageFile;%s\res\imcmsg.dll
ReplaceExpandString:CategoryMessageFile;%s\res\imcmsg.dll
ReplaceDword:CategoryCount;0x08
ReplaceDword:TypesSupported;0x1f
CloseKey:







; The Services key for MSExchangeINS so that the permissions will be inherited properly

OpenMachineKey:SYSTEM\CurrentControlSet\Services
CreateKey:MSExchangeINS
CloseKey:







;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;	Misc. Additional work used internally by EMS
;

;		Server RPC binding transports
OpenMachineKey:SOFTWARE\Microsoft\Exchange\Exchange Provider
ReplaceString:Rpc_Svr_Binding_Order;ncacn_ip_tcp,ncacn_spx,ncacn_vns_spp
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services
CreateSecureKey:MSExchangeDS\Parameters
CreateKey:MSExchangeDS\Diagnostics
CreateKey:MSExchangeMTA\Parameters
CreateKey:MSExchangeMTA\Diagnostics
CreateSecureKey:MSExchangeIS\ParametersPrivate
CreateSecureKey:MSExchangeIS\ParametersPublic
CreateKey:MSExchangeIS\ParametersSystem
CreateKey:MSExchangeIS\ParametersSystem\InternetContent
CreateKey:MSExchangeIS\ParametersNetIf
CreateKey:MSExchangeIS\Diagnostics
;------------------------------------------
CloseKey:

; POP3 support
OpenMachineKey:SOFTWARE\Microsoft
CreateKey:KeyRing
CloseKey:

OpenMachineKey:SOFTWARE\Microsoft\KeyRing
CreateKey:Parameters
CloseKey:

OpenMachineKey:SOFTWARE\Microsoft\KeyRing\Parameters
CreateKey:AddOnServices
CloseKey:

OpenMachineKey:SOFTWARE\Microsoft\KeyRing\Parameters\AddOnServices
ReplaceString:Pop3;popkey.dll
CloseKey:

;work around a bug in the NT redirector for the MTA
OpenMachineKey:SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
SetDword:MaxThreads;0xff
CloseKey:

; Remove Server Language value from pre RC2 installations
OpenMachineKey:SOFTWARE\Microsoft\Exchange\Language
DeleteValue:Server Language
CloseKey:



; Random JET keys
OpenMachineKey:SOFTWARE\Microsoft
CreateSecureKey:EDB
CloseKey:


;		Miscellanous(MAD)
InitMAD:
OpenMachineKey:SYSTEM\CurrentControlSet\Services
CreateKey:MSExchangeSA\Parameters
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeSA\Parameters
SetString:LogDirectory;%s\tracking.log
SetDword:LogFlushFreq;10
SetDword:OldLogsCleaningInterval(Days);7
CloseKey:

;		Miscellanous(DSA)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeDS
ReplaceString:DiagnosticsMessageFile;dsmsg.dll
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeDS\Parameters
SetString:Database log files path;%s\DSADATA
SetString:Database logging/recovery;ON
SetString:DSA Database file;%s\DSADATA\dir.edb
SetString:DSA Temporary file;%s\DSADATA\temp.edb
SetDword:EDB max log buffers;0x40
SetDword:EDB log buffer flush threshold;0x20
SetDword:EDB log flush period;0x1F4
SetString:DSA Hierarchy table file;%s\DSADATA\hierarch.dat
SetDword:Hierarchy Table Recalculation interval (minutes);0x720
; DEBUG only
SetString:DSA Working Directory;%s\DSADATA
SetDword:Max Threads (EXDS+NSP+DRA);30
SetDword:Replicator deleted object conflict lifetime (days);0x1
SetDword:Replicator notify pause after modify (secs);0x12c
SetDword:Replicator notify pause between DSAs (secs);0x1e
SetDword:Replicator inter site packet size;0x200
SetDword:Replicator intra site packet size;0x64
SetDword:Circular Logging;0x01
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeDS\Diagnostics
SetDword:1 Knowledge Consistency Checker;0
SetDword:2 Security Events;0
SetDword:3 EXDS Interface Events;0
SetDword:4 MAPI Interface Events;0
SetDword:5 Replication Events;0
SetDword:6 Garbage Collection;0
SetDword:7 Internal Configuration;0
SetDword:8 Directory Access;0
SetDword:9 Internal Processing;0
SetDword:10 LDAP Interface;0
SetDword:11 Initialization/Termination;0
SetDword:12 Service Control;0
SetDword:13 Name Resolution;0
SetDword:14 Backup;0
SetDword:15 Field Engineering;0
SetDword:16 Address Book Views;0
DeleteValue:10 Unused
CloseKey:

;		Miscellanous(MTA)
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeMTA
ReplaceString:DiagnosticsMessageFile;mtamsg.dll
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeMTA\Parameters
SetDword:Concurrent connections to LAN-MTAs;0x28
SetDword:Concurrent connections to X.400 gateways;0x6
ReplaceDword:Concurrent MDB/delivery queue clients;0x3
ReplaceDword:Concurrent XAPI sessions;0x50
SetDword:DB data buffers per object;0x3
SetDword:DB file handles;0xc0
SetDword:Dispatcher threads;0x1
SetDword:ds_read cache latency (secs);0x3c
SetDword:ds_search latency (mins);0x3c
SetDword:ds_search latency (mins) for transport stacks;0x3c
SetStringServer:DSA Address
SetDword:Kernel threads;0x1
SetDword:LAN-MTA DMOD threads;0x5
SetDword:LAN-MTAs;0x14
SetDword:MDB users;0x1f4
SetDword:MMI connections;0x8
ReplaceDword:MT gateway clients;0x8
SetString:MTA Run Directory;%s\mtadata
SetString:MTA database path;%s\mtadata
ReplaceDword:Retrieval queue clients;0x2
SetDword:RTS threads;0x1
SetDword:Submit/deliver threads;0x2
SetDword:Supports 2K TPDU;0x0
SetDword:TCP/IP async notify timeout (ms);0x32
SetDword:TCP/IP control blocks;0x14
SetDword:TCP/IP threads;0x2
SetDword:TP4 async notify timeout (ms);0x32
SetDword:TP4 control blocks;0x14
SetDword:TP4 threads;0x2
SetDword:Transfer threads;0x1
SetDword:Transport threads;0x1
SetDword:X.400 gateways;0x14
SetStringDN:X500 DN; ;Microsoft MTA
SetDword:XAPI MA queue threads;0x2
SetDword:XAPI MA threads;0x2
SetDword:XAPI MT queue threads;0x1
SetDword:XAPI MT threads;0x1
SetDword:XAPI/MMI client DMOD threads;0xa
SetDword:Concurrent connections to RAS LAN-MTAs;0xa
SetDword:RAS LAN-MTA DMOD threads;0x2
SetDword:Eicon X.25 result threads;0x2
SetDword:Eicon X.25 connections;0x14
SetDword:DB file count delete threshold;0x0
SetDword:DB file size delete threshold;0x0
SetDword:Eicon wait timeout (MS);0x1f4
SetDword:NCC TP0 Conformance Tester;0x00
SetDword:APDU logging required;0x00
; $BUG set following to 00 for ship
SetDword:Call-stack diagnostics required;0x1
SetDword:Flush Results to Disk;0x00
SetDword:Number of RAS LAN-MTAs;0x0a
SetDword:Number of Remote Sites Connected over LAN;0x19
SetDword:Number of DLs Allowed;0x64
SetDword:Max Concurrent XAPI Applications;0xa
SetDword:Max RPC Calls Outstanding;0x32
SetDword:Min RPC Threads;0x4
SetDword:RPC Authentication Level;0x2
SetDword:Text Event Log;0x0
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeMTA\Diagnostics
SetDword:1 X.400 Service;0x00
SetDword:2 Resource;0x00
SetDword:3 Security;0x00
SetDword:4 Interface;0x00
SetDword:5 Field Engineering;0x00
SetDword:6 MTA Administration;0x00
SetDword:7 Configuration;0x00
SetDword:8 Directory Access;0x00
SetDword:9 Operating System;0x00
SetDword:10 Internal Processing;0x00
SetDword:11 Interoperability;0x00
SetDword:12 APDU;0x00
CloseKey:

;		Miscellanous(MDB)

;copy the values that were for IMC, now part of IS
;copyvalue only works in HKLM
CopyValueDword:SYSTEM\CurrentControlSet\Services\MSExchangeIMC\Parameters;SYSTEM\CurrentControlSet\Services\MSexchangeIS\ParametersSystem\InternetContent;ISO-8859-1;ISO-8859-1;0x0
CopyValueDword:SYSTEM\CurrentControlSet\Services\MSExchangeIMC\Parameters;SYSTEM\CurrentControlSet\Services\MSexchangeIS\ParametersSystem\InternetContent;DefaultUseSJIS;DefaultUseSJIS;0x0
CopyValueMulti_SZ:SYSTEM\CurrentControlSet\Services\MSExchangeIMC\Parameters;SYSTEM\CurrentControlSet\Services\MSexchangeIS\ParametersSystem\InternetContent;NonMacCreatorTypes;NonMacCreatorTypes;MDOS:TEXT$

;remove old keys after copying
OpenMachineKey:SYSTEM\CurrentControlSet\Services
DeleteValue:MSExchangeIMC\Parameters\ISO-8859-1
DeleteValue:MSExchangeIMC\Parameters\DefaultUseSJIS
DeleteValue:MSExchangeIMC\Parameters\NonMacCreatorTypes
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem\InternetContent
SetDword:LoggingLevel;0x00
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS
ReplaceString:DiagnosticsMessageFile;mdbmsg.dll
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
SetString:DB Log Path;%s\MDBDATA
SetDword:DB Recovery;0x00
SetStringServer:DSA Computer
SetStringServer:MTA Computer
SetDword:Online Compaction;0x1
SetStringServer:This Server
SetString:Working Directory;%s\MDBDATA
SetDword:Circular Logging;0x01
SetString:POP3 Protocol Log Path;%s\MDBDATA
SetDword:POP3 Protocol Logging Level;0x00
SetString:IMAP4 Protocol Log Path;%s\MDBDATA
SetDword:IMAP4 Protocol Logging Level;0x00
SetString:NNTP Protocol Log Path;%s\MDBDATA
SetDword:NNTP Protocol Logging Level;0x00
CloseKey:

;		Private Parameters
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersPrivate
SetDword:Background Cleanup;0xEA60
SetDword:Background Search;0x1388
SetString:DB Path;%s\MDBDATA\PRIV.EDB
SetDword:General Event Log;0x0
SetDword:Track Duplicates;0x1
SetDword:Transport Event Log;0x0
CloseKey:

;		Public Parameters
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersPublic
SetDword:Background Cleanup;0xEA60
SetDword:Background Search;0x1388
SetString:DB Path;%s\MDBDATA\PUB.EDB
SetDword:General Event Log;0x0
SetDword:Replication Event Log;0x0
SetDword:Track Duplicates;0x1
SetDword:Transport Event Log;0x0
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersNetIf
SetDword:MaxPoolThreads;0x0a
SetDword:MaxConcurrency;0x00
SetDword:ThreadTimeout;0x015180
SetDword:UseAcceptEx;0x01
SetDword:UseTransmitFile;0x01
SetDword:NonTFBufferSize;0x1000
SetDword:MinFileKbSec;0x03e8
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\Diagnostics
CreateKey:9000 Private
CreateKey:9001 Public
CreateKey:9002 System
CreateKey:9037 Internet Protocols
CreateKey:9037 Internet Protocols\9038 POP3
CreateKey:9037 Internet Protocols\9039 NNTP
CreateKey:9037 Internet Protocols\9051 IMAP4
;deletes due to name changes
DeleteKey:9000 Private\9003 General
DeleteKey:9000 Private\9004 Transport
DeleteKey:9001 Public\9003 General
DeleteKey:9001 Public\9004 Transport
DeleteKey:9001 Public\9005 Replication
DeleteKey:9002 System\9003 General
DeleteKey:9002 System\9032 POP3 Protocol
DeleteKey:9002 System\9033 NNTP Protocol
DeleteKey:9032 Internet Protocols\9033 POP3
DeleteKey:9032 Internet Protocols\9034 NNTP
DeleteKey:9032 Internet Protocols
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\Diagnostics\9000 Private
SetDword:9003 Transport General;0x00;
SetDword:9005 General;0x00;
SetDword:9010 Transport Sending;0x00;
SetDword:9011 Transport Delivering;0x00;
SetDword:9012 Transfer Into Gateway;0x00;
SetDword:9013 Transfer Out Of Gateway;0x00;
SetDword:9014 MTA Connections;0x00;
SetDword:9015 Logons;0x00;
SetDword:9016 Access Control;0x00;
SetDword:9017 Send On Behalf Of;0x00;
SetDword:9018 Send As;0x00;
SetDword:9019 Rules;0x00;
SetDword:9021 Storage Limits;0x00;
SetDword:9026 Background Cleanup;0x00;
SetDword:9028 DS Synchronization;0x00;
SetDword:9030 Views;0x00;
SetDword:9050 Download;0x00;
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\Diagnostics\9001 Public
SetDword:9003 Transport General;0x00;
SetDword:9005 General;0x00;
SetDword:9006 Replication DS Updates;0x00;
SetDword:9007 Replication Incoming Messages;0x00;
SetDword:9008 Replication Outgoing Messages;0x00;
SetDword:9009 Replication NDRs;0x00;
SetDword:9010 Transport Sending;0x00;
SetDword:9011 Transport Delivering;0x00;
SetDword:9014 MTA Connections;0x00;
SetDword:9015 Logons;0x00;
SetDword:9016 Access Control;0x00;
SetDword:9017 Send On Behalf Of;0x00;
SetDword:9018 Send As;0x00;
SetDword:9019 Rules;0x00;
SetDword:9021 Storage Limits;0x00;
SetDword:9022 Replication Site Folders;0x00;
SetDword:9023 Replication Expiry;0x00;
SetDword:9024 Replication Conflicts;0x00;
SetDword:9025 Replication Backfill;0x00;
SetDword:9026 Background Cleanup;0x00;
SetDword:9027 Replication Errors;0x00;
SetDword:9028 DS Synchronization;0x00;
SetDword:9030 Views;0x00;
SetDword:9047 Replication General;0x00;
SetDword:9050 Download;0x00;
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\Diagnostics\9002 System
SetDword:9004 Recovery;0x00;
SetDword:9005 General;0x00;
SetDword:9020 Connections;0x00;
SetDword:9029 Table Cache;0x00;
SetDword:9031 Content Engine;0x00;
SetDword:9048 Performance Monitor;0x00;
SetDword:9049 Move Mailbox;0x00;
SetDword:9050 Download;0x00;
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\Diagnostics\9037 Internet Protocols\9038 POP3
SetDword:9031 Content Engine;0x00;
SetDword:9041 Connections;0x00;
SetDword:9042 Authentication;0x00;
SetDword:9043 Client Action;0x00;
SetDword:9044 Configuration;0x00;
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\Diagnostics\9037 Internet Protocols\9051 IMAP4
SetDword:9031 Content Engine;0x00;
SetDword:9041 Connections;0x00;
SetDword:9042 Authentication;0x00;
SetDword:9043 Client Action;0x00;
SetDword:9044 Configuration;0x00;
CloseKey:

OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\Diagnostics\9037 Internet Protocols\9039 NNTP
SetDword:9031 Content Engine;0x00;
SetDword:9040 News Connector;0x00;
SetDword:9041 Connections;0x00;
SetDword:9042 Authentication;0x00;
SetDword:9043 Client Action;0x00;
SetDword:9044 Configuration;0x00;
SetDword:9045 Replication;0x00;
SetDword:9046 Pull Newsfeed;0x00;
CloseKey:

;		Miscellanous (Setting Windows NT control parameters)
OpenMachineKey:SYSTEM\CurrentControlSet\Control\PriorityControl
SetDword:Win32PrioritySeparation;0x00;
CloseKey:

InitMDB:

; TURN RECOVERY on for the MDB
OpenMachineKey:SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
SetDword:DB Recovery;0x01
CloseKey:

;Give us more time for the services to shutdown on server shutdown.  5 min
OpenMachineKey:SYSTEM\CurrentControlSet\Control
SetString:WaitToKillServiceTimeout;600000
CloseKey:

;Optimize memory management for a server
OpenMachineKey:SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
SetDword:LargeSystemCache;0x00
CloseKey:


; 		Register CDO
RegisterDLL:%windir%\system32\cdonts.dll
RegisterDLL:%windir%\system32\exchcomm.dll


;		Miscellaneous(Perfwiz)
; Create Perfwiz key
OpenMachineKey:SOFTWARE\Microsoft
CreateKey:PerfWiz
CloseKey:

; Start the Server service before adding shares
StartService:LanmanServer

; Share out the connectors area
AddShare:.;connect$;%s\connect;READ;"Access to gateway connectors"
AddShare:.;Address;%s\address;READ;"Access to address objects"
AddShare:.;Add-ins;%s\add-ins;READ;"Access to EDK objects"
AddShare:.;tracking.log;%s\tracking.log;READ;"Exchange message tracking logs"
AddShare:.;Resources;%s\res;READ;"Event logging files"

