Silent uninstall of...
 

Silent uninstall of password protected TrendMicro antivirus  

Page 4 / 5
  RSS

Marco Nuijens
(@manu)
Member Admin
Joined: 3 years ago
Posts: 50
29/06/2016 10:09 am  

Dear Austin,

Could u please post the script the way u have it right now?

Kind regards,

Marco


ReplyQuote
Sulman
 Sulman
(@Sulman)
Guest
Joined: 3 years ago
Posts: 11
10/07/2016 9:46 am  

Hi How are you. Can you please share with me the batch file that I can use to remove trend micro 11 . I would really appreciate your support and help. Thanks and Regards


ReplyQuote
Sulman
 Sulman
(@Sulman)
Guest
Joined: 3 years ago
Posts: 11
10/07/2016 9:47 am  

Dear Marci. Can you please share with me the batch file that I can use to remove trend micro 11 . I would really appreciate your support and help. Thanks and Regards


ReplyQuote
haytham
 haytham
(@haytham)
Guest
Joined: 3 years ago
Posts: 1
27/07/2016 12:16 pm  

Hi Macro ,

i tested your script but unfortunately it asked me for password which i do not know , I am testing this on 64 bit version 11 , would you please share any information how to bypass the password as the script is not working for that

your answers is highly appreciated ,


ReplyQuote
Marco Nuijens
(@manu)
Member Admin
Joined: 3 years ago
Posts: 50
27/07/2016 5:05 pm  

Hi Haytham,

Please notice that u need to use the correct parameters.

strPara1 = “-980223″
strPara2 = “-331″

U could try these which worked for Mohamed.

Kind regards,

Marco


ReplyQuote
Abdullah
 Abdullah
(@Abdullah)
Guest
Joined: 3 years ago
Posts: 6
28/07/2016 11:13 am  

Dear Macro,

It would be much appreciated if you could add a line for me in the script which can uninstall that anti-virus for both 32bit and 64bit machines. Like look for both the folders using If.. Else.. and execute the script once the required .exe has been found.

Thank you very much in advance 🙂


ReplyQuote
Sulman
 Sulman
(@Sulman)
Guest
Joined: 3 years ago
Posts: 11
31/07/2016 12:29 pm  

Dear all, I am trying to run this vbs script, but whenever I try to run it I get the error.

Line: 6
Char:10
Error: Invalid Character
Source: Microsoft VBScript compilation error

appreciate if anyone can tell me why am I getting this error and how can i fix it. Thanks


ReplyQuote
Marco Nuijens
(@manu)
Member Admin
Joined: 3 years ago
Posts: 50
01/08/2016 10:46 am  

Dear Sulman,

It could be that something went wrong when copying the script. Sometimes it will happen that the " isn't recognised as a ". Best thing u could do in this case is to copy/paste the tekst in notepad (losing all layout settings) and than copy paste it again in your VBS file. Or re-type the " chars in your editting program. If this is the issue you will see some differences in the font of the " char.

Give it a try and let me know!

Earlier on u asked me for a batch command to run the vbs script. U could try these lines underneath;

1. be sure to replace ".vbs" with the name you have given to your vbs file
2. batch file and vbs file should be in the same directory when using the command line underneath

cscript.exe %~dp0.vbs

let me know if this worked for u.

Kind regards,

Marco


ReplyQuote
Marco Nuijens
(@manu)
Member Admin
Joined: 3 years ago
Posts: 50
01/08/2016 12:57 pm  

Dear Abdullah,

See underneath the script adjusted with a x86/x64 check. I can't check if the script will work correctly because I don't have an environment with TrendMicro installed at this moment.

Please let me know if it works for you!

Note: copy paste these lines in notepad too loose the layout and overcome errors.

Script:

' Name : UnInstall-TrendMicro.vbs
' Description : Script for silently uninstalling TrendMicro client and bypass password protection.
' Created by: Marco Nuijens - VirtualizeThis.net

Set WshShell = WScript.CreateObject("WScript.Shell")
set FSO = CreateObject("Scripting.FileSystemObject")
strPara1 = "-991334"
strPara2 = "-442"
If OSarchitecture() Then
strApp = "C:Program FilesTrend MicroOfficeScan Clientntrmv.exe"
Else
strApp = "C:Program Files (x86)Trend MicroOfficeScan Clientntrmv.exe"
End If

Dim myExit, return
myExit = 0

currentDirectory = left(WScript.ScriptFullName,(Len(WScript.ScriptFullName))-(len(WScript.ScriptName)))

' Run UnInstall of TrendMicro
WshShell.run Chr(34) & strApp & Chr(34) & " " & Chr(34) & strPara1 & Chr(34) & " " & Chr(34) & strPara2 & Chr(34), 0, True

' Activate the loop until result is "myExit" = 1
Do Until myExit = 1
' Triggers the check on the active "ntrmv.exe" process
CheckTrendMicro
Loop

SUB CheckTrendMicro()

myExit = 1
set service = GetObject ("winmgmts:")
' Check for active ntrmv.exe process.
for each Process in Service.InstancesOf ("Win32_Process")
If Process.Name = "ntrmv.exe" then
myExit = 0
' wait for X time before checking for running process again.
Wscript.sleep(60000)
End if
NEXT
End SUB

' Function to check if architecture is X86 or X64 (AMD64)
Function OSarchitecture()
Const HKLM = &H80000002
Dim strComputer, WshShell, sOSarch
strComputer = "."
Set WshShell = WScript.CreateObject("WScript.Shell")
sOSarch = WshShell.RegRead("HKLMSYSTEMCurrentControlSetControlSession ManagerEnvironmentPROCESSOR_ARCHITECTURE")
If sOSarch = "x86" Then
OSarchitecture = False
End If
If sOSarch = "AMD64" Then
OSarchitecture = True
End If
Set WshShell = Nothing
End Function


ReplyQuote
Sulman
 Sulman
(@Sulman)
Guest
Joined: 3 years ago
Posts: 11
02/08/2016 6:31 pm  

Firstly thanks for the reply, I tried your recommendation but still I am getting the complication error about invalid character. I would really appreciate and thankful if you can please email me the correct vbs file at ***.

Appreciate your support. Thanks


ReplyQuote
Abdullah
 Abdullah
(@Abdullah)
Guest
Joined: 3 years ago
Posts: 6
03/08/2016 9:49 am  

Dear Macro,

Thank you very much for your effort.

There was no way I could lose the formats so I had to manually edit all the inverted commas. ( " " ).

But then i still get the below error:

Script: C:Usersa.fahadDesktopTrend.vbs
Line: 17
Char: 1
Error: The system cannot find the file specified.
Code: 80070002
Source: (null)

I tried to look at your old main script, this line:

WshShell.run Chr(34) & strApp & Chr(34) & " " & Chr(34) & strPara1 & Chr(34) & " " & Chr(34) & strPara2 & Chr(34), 0, True

It works fine with out any errors.

Please advice, thank you.


ReplyQuote
Sulman
 Sulman
(@Sulman)
Guest
Joined: 3 years ago
Posts: 11
03/08/2016 9:51 am  

Hi Abdullah how are you. Can you please send me the script on sulman.mushtaq@outlook.com that is working for you? I will really appreciate. Thanks


ReplyQuote
Marco Nuijens
(@manu)
Member Admin
Joined: 3 years ago
Posts: 50
03/08/2016 11:27 am  

I will send u an e-mail, removed your mail address from your post so it won't become a victim for spam.


ReplyQuote
Marco Nuijens
(@manu)
Member Admin
Joined: 3 years ago
Posts: 50
03/08/2016 12:27 pm  

I've adjusted the main post with the script which checks if it's installed on a x86 or x64 architecture. Hopefully this one will work for you Sulman. Unfortunately I cannot test it myself so please let me know if this works for u.


ReplyQuote
Sulman
 Sulman
(@Sulman)
Guest
Joined: 3 years ago
Posts: 11
03/08/2016 3:04 pm  

Dear Marco I got your email but it was blocked by hotmail. I would really appreciate if you can compress the file and re-send it again as it will not be blocked if it is compressed. I really appreciate your support and kindness. Please send it again. Thanks


ReplyQuote
Page 4 / 5
Share:

Please Login or Register