magadog Posted May 10, 2011 Share Posted May 10, 2011 Hi all, I'm new in this forum and also in AutoIt programing. I need a helping hand from a more experienced user. I want to uninstall OfficeScan antivirus from several remote machines. Unfortunately it has no silent uninstall finctionality and a password has to be entered during the uninstallation. I've created a simple AutoIt exe, which works well (also remotely with psexec), if I'm logged in on the remote PC. If I'm logged off, the script doesn't finish. I suppose there is a problem with the ControlClick command. It's not executed remotely. I was browsing couple of hours, but didn't find solution. My psexec version is 1.95 (v1.94 also tried). Is there anybody who has solution? This is my script: Run("C:\Program Files\Trend Micro\OfficeScan Client\NTRmv.exe") WinWaitActive ("Uninstall Trend Micro OfficeScan") ControlSetText("Uninstall Trend Micro OfficeScan", "", "[CLASSNN:Edit1]", "thepasswordhere") ControlClick("Uninstall Trend Micro OfficeScan", "Password:", "[CLASSNN:Button1; TEXT:OK; INSTANCE:1]") Thanks in advance. Link to comment Share on other sites More sharing options...
MrMitchell Posted May 10, 2011 Share Posted May 10, 2011 (edited) TrendMicro says the uninstall can be scripted...http://esupport.trendmicro.com/pages/How...-OSCE-with-a-loginscript.aspx?Edit: Well...maybe it could work, have you looked into this yet?Edit2: What Wakillon said below... Edited May 10, 2011 by MrMitchell Link to comment Share on other sites More sharing options...
wakillon Posted May 10, 2011 Share Posted May 10, 2011 Did you try this ? Silently uninstalling the OfficeScan client on multiple machines via command line AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted May 10, 2011 Share Posted May 10, 2011 Hi and Welcome to the forums!Read FAQ 21. Why doesn't my script work on a locked workstation? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
magadog Posted May 11, 2011 Author Share Posted May 11, 2011 (edited) Hi Guys! Thanks for the quick answers, I appreciate it:-)So, my answers:1. the way you've mentioned (how to uninstall the OfficeScan) is not an option - I've no access to the OSCE server...2. I've tried the ControlClick("Uninstall Trend Micro OfficeScan", "[CLASSNN:Button1]") It didn't work at all.This is the AutoIt Window Info summary:>>>> Window <<<<Title: Uninstall Trend Micro OfficeScanClass: #32770Position: 259, 203Size: 282, 167Style: 0x94C800C4ExStyle: 0x00010101Handle: 0x000201FE>>>> Control <<<<Class: ButtonInstance: 1ClassnameNN: Button1Name: Advanced (Class): [CLASS:Button; INSTANCE:1]ID: 1Text: &OKPosition: 14, 100Sorry I ment the command:ControlClick("Uninstall Trend Micro OfficeScan", "" , "[CLASSNN:Button1]") Edited May 11, 2011 by magadog Link to comment Share on other sites More sharing options...
MrMitchell Posted May 12, 2011 Share Posted May 12, 2011 There's this way too (linked from the link Wakillon posted) http://esupport.trendmicro.com/6/Manually-Uninstalling-the-OfficeScan-client-105.aspxYou have to stop services, remove registry keys,... I haven't read in detail but this stuff can be done in AutoIt. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now