Scripts Command Line: Install and Uninstall Trend Micro Office Scan Agent by Scripts
:Menu
echo 1. Uninstall TrendMicro.
echo 2. Install TrendMicro.
echo 9. Exit
set /p choice= Please Select Menu:
if %choice%==1 GOTO UninstallTrendMicro
if %choice%==2 GOTO InstallTrendMicro
if %choice%==9 GOTO Exit
if %choice%==null GOTO Exit
rem *************************************************************
:Exit
exit
:UninstallTrendMicro
cls
echo 1. Uninstall TrendMicro on Windows 32bit
echo 2. Uninstall TrendMicro on Windows 64bit
echo 9. Menu
set /p UninstallTrendMicroChoice= Please Select Menu:
if %UninstallTrendMicroChoice%==1 GOTO UninstallTrendMicrox86
if %UninstallTrendMicroChoice%==2 GOTO UninstallTrendMicrox64
if %UninstallTrendMicroChoice%==9 GOTO Menu
if %UninstallTrendMicroChoice%==null GOTO Exit
:UninstallTrendMicrox86
"%programfiles%\Trend Micro\OfficeScan Client\pccntmon" -n
ping 1.1.1.1 -n 1 -w 5000>null
ping 1.1.1.1 -n 1 -w 5000>null
reg add HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\Misc. /v "Allow Uninstall" /t REG_DWORD /d 1 /f
"%programfiles%\Trend Micro\OfficeScan Client\NTRmv.exe"
echo *************************************************************
set /p afterUninstallTrendMicrox86= Do you Want to use other menu? [Y/N]?
if /i "%afterUninstallTrendMicrox86%" EQU "Y" GOTO :Menu
if /i "%afterUninstallTrendMicrox86%" EQU "N" GOTO :Exit
:UninstallTrendMicrox64
"%programfiles(x86)%\Trend Micro\OfficeScan Client\pccntmon" -n
ping 1.1.1.1 -n 1 -w 5000>null
ping 1.1.1.1 -n 1 -w 5000>null
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432node\TrendMicro\PC-cillinNTCorp\CurrentVersion\Misc. /v "Allow Uninstall" /t REG_DWORD /d 1 /f
"%programfiles(x86)%\Trend Micro\OfficeScan Client\NTRmv.exe"
echo *************************************************************
set /p afterUninstallTrendMicrox64= Do you Want to use other menu? [Y/N]?
if /i "%afterUninstallTrendMicrox64%" EQU "Y" GOTO :Menu
if /i "%afterUninstallTrendMicrox64%" EQU "N" GOTO :Exit
:InstallTrendMicro
cls
echo 1. InstallTrendMicro on Windows 32bit
echo 2. InstallTrendMicro on Windows 64bit
echo 9. Menu
set /p InstallTrendMicroChoice= Please Select Menu:
if %InstallTrendMicroChoice%==1 GOTO InstallTrendMicrox86
if %InstallTrendMicroChoice%==2 GOTO InstallTrendMicrox64
if %InstallTrendMicroChoice%==9 GOTO Menu
if %InstallTrendMicroChoice%==null GOTO Exit
:InstallTrendMicrox86
cls
echo 0. Manu
echo 1. Contoso_HQ_01
set /p InstallTrendMicroChoice= Please Select Menu:
if %InstallTrendMicroChoice%==0 GOTO Menu
if %InstallTrendMicroChoice%==1 GOTO Contoso_HQ_01x86
msiexec /i http://Contoso_HQ_01:8080/officescan/download/agent_cloud_x86.msi PROPERTY=VALUE
echo *************************************************************
set /p afterContoso_HQ_01x86= Do you Want to use other menu? [Y/N]?
if /i "%afterContoso_HQ_01x86%" EQU "Y" GOTO :Menu
if /i "%afterContoso_HQ_01x86%" EQU "N" GOTO :Exit
:InstallTrendMicrox64
cls
echo 0. Manu
echo 1. Contoso_HQ_01
set /p InstallTrendMicroChoice= Please Select Menu:
if %InstallTrendMicroChoice%==0 GOTO Menu
if %InstallTrendMicroChoice%==1 GOTO Contoso_HQ_01x86
:Contoso_HQ_01x64
cls
echo 0. Manu
echo 1. Contoso_HQ_01
set /p InstallTrendMicroChoice= Please Select Menu:
if %InstallTrendMicroChoice%==0 GOTO Menu
if %InstallTrendMicroChoice%==1 GOTO Contoso_HQ_01x86
:Contoso_HQ_01x64
msiexec /i http://Contoso_HQ_01:8080/officescan/download/agent_cloud_x64.msi PROPERTY=VALUE
echo *************************************************************
set /p afterContoso_HQ_01x64= Do you Want to use other menu? [Y/N]?
if /i "%afterContoso_HQ_01x64%" EQU "Y" GOTO :Menu
if /i "%afterContoso_HQ_01x64%" EQU "N" GOTO :Exit
ไม่มีความคิดเห็น:
แสดงความคิดเห็น