This article discusses how to start Windows services that access an encrypted device using User Scripts.
Follow this procedure if you encounter any of the following scenarios:
- Start an application or service that needs to access an encrypted device and mounted by SecureCloud.
- There is an issue with the service that needs to access the drive however it is not yet mounted by SecureCloud.
To manually start a service using User Scripts:
- To disable the startup of a service, go to the Services console (Ex: Windows Folder Share which uses the service "Sever").
- Click Start,and then type "services.msc" on the Search field. Press ENTER.
The Services console opens.
- Right-click on the service/s you want to disable, and then click Properties.
- Set the startup type to Manual.
- Click Start,and then type "services.msc" on the Search field. Press ENTER.
- Create two .BAT files, one to start the service and one to stop the service:
Example: For the service named Server
- start_service.bat (The start_service.bat contains the commands to start the service.)
Ex: net start Server
- stop_service.bat (The stop_service.bat contains the commands to start the service.)
Ex: net stop Server
- start_service.bat (The start_service.bat contains the commands to start the service.)
- Go to the SecureCloud Agent folder:
- For 32-bit Windows: C:\Program Files\Trend Micro\SecureCloud\Agent\
- For 64-bit Windows: C:\Program Files(x86)\Trend Micro\SecureCloud\Agent\
- Create a scripts folder in the Agent folder and place the batch files in the scripts folder.
- In the Agent folder, open the config.xml file.
- Using a text editor, edit the config.xml file with a userScripts element specifying the batch files. Add the following:
- mountComplete - Start batch file
- teardown - Stop batch file
Below is an example of a config.xml file using batch files named as above:
<agent version="3.7">
...
<userScripts mountComplete="C:\Program Files (x86)\Trend Micro\SecureCloud\Agent\scripts\start_service.bat"
teardown="C:\Program Files (x86)\Trend Micro\SecureCloud\Agent\scripts\stop_service.bat"/> ...
<agent>The services should now run properly.