卸载客户端(毕竟占用一些网络带宽,360把它列为高危,奶奶的真烦人,客户端人比较不爽)
1. 直接卸载
2. 通过域策略卸载
卸载脚本内容如下uninstall_agent.bat
-----------------------------------------------------------------------------------------
rem File uninstall_agent.cmd
rem Untested on W9X (command.com) - please run with cmd.exe
rem To only remove service:
rem sc.exe delete "OCS INVENTORY"
rem On Windows 2000 use delsrv.exe instead of sc.exe
%SystemDrive%
cd "%ProgramFiles%"
if not exist "OCS Inventory Agent" goto end
cd "OCS Inventory Agent"
if exist uninst.exe call uninst.exe /S
del *.* /s /q
cd ..
rd "OCS Inventory Agent" /s /q
:end
cd /
因为权限的关系 直接调用以上脚本还不行
可以利用autoit提升权限调用uninstall_agent.bat 达到卸载的目的
Autoi