Jump to content
Sign in to follow this  

AutoIt vs Psexec

Recommended Posts


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.

Share this post

Link to post
Share on other sites

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 OfficeScan

Class: #32770

Position: 259, 203

Size: 282, 167

Style: 0x94C800C4

ExStyle: 0x00010101

Handle: 0x000201FE

>>>> Control <<<<

Class: Button

Instance: 1

ClassnameNN: Button1


Advanced (Class): [CLASS:Button; INSTANCE:1]

ID: 1

Text: &OK

Position: 14, 100

Sorry I ment the command:

ControlClick("Uninstall Trend Micro OfficeScan", "" , "[CLASSNN:Button1]")

Edited by magadog

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this