Home / SMP Agent Silent Installation on Remote systems

SMP Agent Silent Installation on Remote systems


There are 3 steps involved in silently installing the Security Manager Plus Agents in remote systems.
  1. Create a Response file by passing arguments to 'SecurityManagerPlusAgent.exe' installable during installation
  2. Share a folder publicly and make the files 'SecurityManagerPlusAgent.exe' and the 'Response file' available in the shared folder
  3. Silently run the 'SecurityManagerPlusAgent.exe' in the target system using AD logon script (if the system is in a Domain) or tools like PsExec (if the system is not in a Domain)

The steps 1 & 2 above need to be carried out only once. After that, you can install the Agent remotely any time.

Create a Response File

  1. Go to a system where SMP Agent is not installed
  2. Download 'SecurityManagerPlusAgent.exe' from Admin page in SMP web console. Let's say it is downloaded and saved at C:\SMPAgent
  3. Open a command prompt and go to C:\SMPAgent
  4. Run the command : SecurityManagerPlusAgent.exe -a -r -f1C:\SMPAgent\install.iss
    1. Please note that there should be no space character in the above command between the option -f1 and C:\SMPAgent
    2. This will bring up the installation wizard UI. Complete the installation by providing the necessary values (like Agent Installation directory, SMP Server name, server port number, etc.,). Once the wizard completes, the response file (install.iss) will be created.

Create a Shared folder

  1. Create and Share the folder "C:\SMPAgent"  in any system. ( Let's say this shared system name is "winxp-shared" )
  2. Make sure "SecurityManagerPlusAgent.exe" and "install.iss" files are available in this folder
  3. Make sure the shared folder is accessible without any username, password.

Option 1 : Install the Agent in a remote system using PsExec

If you have PsExec on a system, then from that system, you can install Agent on any number of remote systems.
  1. Download PsTools.zip (which contains PsExec) from here : http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
  2. Extract it in a folder say C:\PsTools
  3. Open a command prompt and go to C:\PsTools directory
  4. Now, run the following command to install the Agent silently on a target system, say "winxp-test". Let's assume the admin user name is "administrator" and password is "hello" for "winxp-test"
    1. psexec.exe -i \\winxp-test -u administrator -p hello \\winxp-shared\SMPAgent\SecurityManagerPlusAgent.exe -s -a -s -f1\\winxp-shared\SMPAgent\install.iss -f2C:\log.txt
    2. Once the command completes, the Agent will be installed in the target computer (winxp-test). Please make sure you supply the shared system name, path and other values in the above command as you have set-up in your network.

Option 2 : Install the Agent using AD logon script

  1. You can include the following command in the AD logon script to silently install the SMP Agent when a user logs on to his computer :
    1. \\winxp-shared\SMPAgent\SecurityManagerPlusAgent.exe -s -a -s -f1\\winxp-shared\SMPAgent\install.iss -f2C:\log.txt
  2. However, the AD logon script will run every time when a user logs on to his computer. So, every second time if the above command is run, the Agent will be uninstalled. So you need to have sufficient checks in your AD logon script to check whether SMP Agent is already installed. If the SMP Agent is already installed, the script should just exit.
  3. A sample AD logon script is as follows. Make sure you edit the script and supply proper shared system name & path  :
@echo off
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\AdventNet\Security Manager Plus\Agent" /v InstallPath
IF ERRORLEVEL 1 goto install_now
IF ERRORLEVEL 0 goto already_installed
 
:already_installed
echo "SMP Agent Already installed"
goto end_of_batch
 
:install_now
echo "Going to install the Agent now"
\\winxp-shared\SMPAgent\SecurityManagerPlusAgent.exe -s -a -s -f1\\winxp-shared\SMPAgent\install.iss -f2C:\log.txt
 
:end_of_batch
echo "End of batch file"





    Post a comment

    Your Name or E-mail ID (mandatory)

    Note: Your comment will be published after approval of the owner.




     RSS of this page