#195878 - 2009-09-11 03:43 PM
Silently Uninstall Symantec
|
CGS
Fresh Scripter
Registered: 2009-08-14
Posts: 6
Loc: Edmonton, Canada
|
For Each $objItem In GetObject("winmgmts:\\.\root\CIMV2").ExecQuery("Select Vendor, Version, Name, LocalPackage from Win32_Product",,48)
If InSTR($objItem.Vendor, "symantec")
Shell "%comspec% /c msiexec /uninstall " + $objItem.LocalPackage + " /qn REMOVE=ALL RebootYesNo=No Reboot=ReallySuppress"
EndIf
Next
I've been playing with this little snippet of code to uninstall Symantec across my network, but I can't get it to run properly. I pulled this snippet from: http://www.kixtart.org/forums/ubbthreads...c=0&Search=true
If I add a "? $objItem.Vendor" before the EndIf, my output displays nothing leading me to believe that it's not even running the WMI query.
Any ideas on what I might be doing wrong, or a better way to do this?
Thanks,
|
|
Top
|
|
|
|
#195880 - 2009-09-11 04:19 PM
Re: Silently Uninstall Symantec
[Re: CGS]
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Dropping "LocalPackage" from the field list seems to fix it.
Try this to validate:
Break ON
$=SetOption("Explicit","ON")
Dim $oWMI,$oResults,$objItem
$oWMI=GetObject("winmgmts:\\.\root\CIMV2")
If @ERROR "Cannot attache to CIMV2, reason: ["+@ERROR+"] "+@SERROR+@CRLF Exit 1 EndIf
$oResults=$oWMI.ExecQuery("Select Vendor, Version, Name from Win32_Product",,48)
If @ERROR "Cannot query packages, reason: ["+@ERROR+"] "+@SERROR+@CRLF Exit 1 EndIf
For Each $objItem In $oResults
"Found package " $objItem.Name+"|"+$objItem.Vendor+"|"+$objItem.Version+@CRLF
If InSTR($objItem.Vendor, "symantec")
" Uninstalling package here..."+@CRLF
EndIf
Next
|
|
Top
|
|
|
|
#195882 - 2009-09-11 05:13 PM
Re: Silently Uninstall Symantec
[Re: Richard H.]
|
CGS
Fresh Scripter
Registered: 2009-08-14
Posts: 6
Loc: Edmonton, Canada
|
Did you see my link in the thread you referenced... there are two registry entries you have to modify before you can uninstall SAV.
I have both of the registry keys in my script.
When I run the validation script, I get a pile of "Found Package" lines. This is what I'm after right?
|
|
Top
|
|
|
|
#195883 - 2009-09-11 05:15 PM
Re: Silently Uninstall Symantec
[Re: CGS]
|
CGS
Fresh Scripter
Registered: 2009-08-14
Posts: 6
Loc: Edmonton, Canada
|
Oh, and I can see the "Uninstalling package here" right after the Symantec entry.
|
|
Top
|
|
|
|
#195918 - 2009-09-14 11:10 PM
Re: Silently Uninstall Symantec
[Re: NTDOC]
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11629
Loc: CA
|
|
|
Top
|
|
|
|
#195920 - 2009-09-15 02:37 AM
Re: Silently Uninstall Symantec
[Re: Bryce]
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11629
Loc: CA
|
LOL - I wish I were removing it but for work here I'm not 
I've looked at purchasing ESET/NOD32 but the pricing actually is no bargain compared to McAfee, Symantec, Kaspersky as they all are expensive as heck when you need to put it on hundreds of desktops. I emailed their sales for other pricing options besides the Web and never heard back from them, they don't have a good Enterprise sales department in place at least for US Sales.
For the moment we're not even updating to the newer Endpoint 11x and just staying on the 10x even though Symantec wants us to update.
|
|
Top
|
|
|
|
#197385 - 2010-01-14 05:31 PM
Re: Silently Uninstall Symantec
[Re: Arend_]
|
Hotdogsrgross
Just in Town
Registered: 2010-01-14
Posts: 2
Loc: Texas
|
Not to resurrect a dead thread, but we recently purchased ESET/NOD32 and couldn't be happier with replacing SEP 11 with it. Deployment is the smoothest I've seen, administration is so easy and the price was a lot cheaper. Now I'm just trying to find the best way to silently remove SEP 11 from the network. Hopefully, this will work out!
_________________________
SSBqdXN0IG1hZGUgeW91IGhpdCB0aGUgdHJhbnNsYXRvciBsb2w=
|
|
Top
|
|
|
|
#197398 - 2010-01-15 04:34 PM
Re: Silently Uninstall Symantec
[Re: NTDOC]
|
Hotdogsrgross
Just in Town
Registered: 2010-01-14
Posts: 2
Loc: Texas
|
To remove the certificates...
Running a batch file from logon scripts...
certutil -delstore root "3b 67 98 9f 8a 1b e0 75 68 f2 ec ca 05 df a7 43" certutil -delstore root "51 3e 18 93 86 9e b8 cf 12 24 84 77 1b 3c db 82"
_________________________
SSBqdXN0IG1hZGUgeW91IGhpdCB0aGUgdHJhbnNsYXRvciBsb2w=
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 973 anonymous users online.
|
|
|