When you install ScanMail
with a remote SQL server, an account is required to connect to the remote SQL
server. If the password for this account is changed, the password needs to be
manually updated in the ScanMail configuration file.
To manually update the remote SQL server account password:
Procedure
- Get all the host names for all ScanMail servers and save them in a text (.txt) file.Host name example:
ExchangeMailbox01
ExchangeMailbox02
ExchangeMailbox03
... (and so on)File name example:Server.txt
- Open the command line interface and navigate to the ScanMail installation
path tool folder. The default path is
C:\Program Files\Trend Micro\Smex\tools
- Batch stop all the ScanMail related services using the following
commands:
- for /F %i in (Server.txt) do sc %i stop ScanMail_RemoteConfig
- for /F %i in (Server.txt) do sc %i stop ScanMail_Master
- for /F %i in (Server.txt) do sc %i stop ScanMail_SystemWatcher
Note
Replace (Server.txt) with the actual file name. - Batch change password for all the host names using the following
commands:
- for /F %i in (Server.txt) do sc %i config ScanMail_RemoteConfig password=[NEW PASSWORD]
- for /F %i in (Server.txt) do sc %i config ScanMail_Master password=[NEW PASSWORD]
- for /F %i in (Server.txt) do sc %i config ScanMail_SystemWatcher password=[NEW PASSWORD]
Note
Replace (Server.txt) with the actual file name. - Batch start all ScanMail related services using the following
commands:
- for /F %i in (Server.txt) do sc %i start ScanMail_RemoteConfig
- for /F %i in (Server.txt) do sc %i start ScanMail_Master
- for /F %i in (Server.txt) do sc %i start ScanMail_SystemWatcher
Note
Replace (Server.txt) with the actual file name.