Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

Deploying and activating Deep Security Agent (DSA) using PowerShell

    • Updated:
    • 11 Sep 2015
    • Product/Version:
    • Deep Security 8.0
    • Deep Security 9.0
    • Deep Security 9.5
    • Deep Security 9.6
    • Platform:
    • Windows 2003 Enterprise
    • Windows 2003 Enterprise 64-bit
    • Windows 2003 Standard
    • Windows 2003 Standard 64-bit
    • Windows 2008 Enterprise
    • Windows 2008 Server R2
    • Windows 2008 Standard
    • Windows 2008 Standard 64-bit
    • Windows 7 32-bit
    • Windows 7 64-bit
    • Windows Vista 32-bit
    • Windows Vista 64-bit
    • Windows XP Professional
    • Windows XP Professional 64-bit
Summary
This PowerShell script for DSA deployment and activation performs the following:
  • Checks if HKEY_LOCAL_MACHINE\Software\TrendMicro\Deep Security Agent\ exists.
    If it exists, boot up continues.
    If it does not exist, the MSI is copied from a UNC path to a temporary local folder, and is launched unattended.
  • Automates the Agent activation and registration to the Deep Security Manager (DSM)
Details
Public
Use this PowerShell script to deploy and activate the DSA:
# Trend DS Client install script
# Update values here if needed
$path = "<Enter Shared/UNC Path where Agent MSI package is located>"
$dsmhost = "<Enter FQDN/IP Address of Deep Security Manager here>"
$dsmheartbeatport = "4120"
$dsmconnection = "/a dsm://" + $dsmhost + ":" + $dsmheartbeatport + "/"
$file = $path + (Get-ChildItem $path *.msi)
if(!(Test-Path ("HKLM:SOFTWARE\TrendMicro\Deep Security Agent")))
   {
write-host "No TDS client installed found, lets start installation..."
New-Item -ItemType directory -Path C:\TMDSC_TEMP | Out-Null
copy $file C:\TMDSC_TEMP\
$localfile = Get-ChildItem C:\TMDSC_TEMP\*.msi
write-host "Installing Trend Micro Deep Security client..."
Start-Process -filepath $localfile -ArgumentList "/qb /norestart" -Wait
Start-Sleep -seconds 2
write-host "Done, cleaning up installation folder..."
Remove-Item C:\TMDSC_TEMP -Force -Recurse | Out-Null
Start-Sleep -seconds 5
write-host "Registering host with DSM...."
Start-Process -filepath "C:\Program Files\Trend Micro\Deep Security Agent\dsa_control.exe" -ArgumentList $dsmconnection  -Wait
write-host "Done registering... Finished."
}
else {write-host "TrendMicro Deep Security client already installed. Exiting..."}
Premium
Internal
Rating:
Category:
Deploy; Install; Register
Solution Id:
1099896
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support


To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.


Need More Help?

Create a technical support case if you need further support.