User BP: How to Remove the Old samanage Agent and Install the New One

Document created by Yum Darling Administrator on Mar 13, 2017Last modified by Yum Darling Administrator on Mar 13, 2017
Version 2Show Document
  • View in full screen mode

Huge thank you to Richard Wills for sharing:

 

"I wanted to share the Windows network logon method I used to remove the old Samanage Agent and install the new agent.

 

Hope this helps some of you....

 

REM === NEW Agent already deployed on the computer?

if exist "C:\Program Files\Samanage Agent\agent\src\mini_kernel\service.*" goto END

if exist "C:\Program Files (x86)\Samanage Agent\agent\src\mini_kernel\service.*" goto END

 

REM === Deploying agent in silent mode

"\\<SOME NETWORK PATH>\Samanage_Agent_<VERSION-NUMBER>_installer.exe" --mode unattended

:END

 

 

REM === OLD Agent already deployed on the computer?

if exist "C:\Program Files\SAManage\*.EXE" goto REMOVE

if exist "C:\Program Files (x86)\SAManage\*.EXE" goto REMOVE

 

:REMOVE

REM === Uninstalling old agent in silent mode

"C:\Program Files (x86)\SAManage\uninst.exe" /q /s

 

REM === Script done

 

Thanks,

Richard"

 

Find original post here: https://community.samanage.com/message/6944?tstart=0#6944

 

Dedicated to your success,

 

Yum

2 people found this helpful

Attachments

    Outcomes