how install any software through the RMA agent

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
menno
Posts: 157
Joined: Fri May 21, 2010 1:27 am

how install any software through the RMA agent

Post by menno »

HI all

lets share some knowledge how to install "any" software through the Windows RMA agent.
I had some issues on a couple of my clients but i knew i had installed a RMA agent on it.
Open up in HM -> Profiles -> Script Manager
Create a new script
Just copy/paste this in the "Script" screen

Code: Select all

statusUnknown     = "ScriptRes:Unknown:" 
statusOk          = "ScriptRes:Ok:" 
statusBad         = "ScriptRes:Bad:" 
var res = "Ok"; 
WScript.StdOut.Write(statusOk+res);
Fill in the line "Start cmd" the following examples
!!! Dont forget to goto the "lets try" tab and fill in the correct RMA agent !!!
Here are some examples you can use to install software remotely via the RMA agent

To make remotely an directory : cmd /c mkdir c:\tmp
To download software from internet : cmd /c powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://some/file/on/internet/dummyfile.msi', 'C:\tmp\dummyfile.msi') }"
To run a MSI quietly on the remote machine : cmd /c msiexec /i C:\tmp\dummyfile.msi /quiet
To move a file : cmd /c move "C:\Program Files (x86)\bla\bla\file.conf" "C:\Program Files (x86)\bla\bla\file.old"
To start a service : cmd /c net start servicename --- or --- cmd /c sc start servicename
To delete a file : cmd /c del c:\tmp\dummyfile.msi
To remove a directory : cmd /c rmdir c:\tmp

So as you can see you can do many things through this RMA agent.
We installed and update 100+ machines/servers with this "trick"

I hope we can all share some handy tips here
Have a nice day
Menno :D
Last edited by menno on Thu Mar 23, 2017 5:55 am, edited 1 time in total.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Thank you for sharing.
Post Reply