Solved

Uninstalling Symantec on a network of 500 computers

Posted on 2008-06-17
3
741 Views
Last Modified: 2013-12-09
Does anyone have a script or powershell that will uninstall this program.
strComputer = "JWA-TEST"
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery ("SELECT * FROM Win32_Product WHERE Name = 'C:\Program Files\Symantec AntiVirus\vpc32.exe'")
For Each objSoftware in colSoftware
 objSoftware.Uninstall()
Next

Open in new window

0
Comment
Question by:mark_randolph
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 500 total points
ID: 21809813
sorry, I am not into shell scripting -- but I can tell you for CERTAIN, that it is worth uninstalling this Symantec component, which causes lots of problems.  I can offer an alternate idea, which is fairly easy to deploy on 500 computers, and will accomplish the same objective in the end.

1/  set a restore point on ONE computer and open REGEDIT.EXE
2.  export the registry to a file that you can search with Wordpad.
3/  find the offending Symantec entries and remove them.  
4/  export the changed registry to another file name.
5/ do a file compare at the command prompt --
       fc registry1.reg registry2.reg >diffs.txt

6/  extract out of diffs.txt the registry entries to remove.

The pattern is as follows --

file is fix-symantec.reg

"Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\symantec.1
@="symantec entry1"

that will add an entry

1/  set a restore point on ONE computer and open REGEDIT.EXE
2.  export the registry to a file that you can search with Wordpad.
3/  find the offending Symantec entries and remove them.  
4/  export the changed registry to another file name.
5/ do a file compare at the command prompt --
       fc registry1.reg registry2.reg >diffs.txt

6/  extract out of diffs.txt the registry entries to remove.

The pattern is as follows --

file is fix-symantec.reg, file contents as follows--

"Windows Registry Editor Version 5.00

- [HKEY_CLASSES_ROOT\symantec.2
@="symantec entry2"

that will remove an entry
end file contents"

Save this file as "fix-symantec.reg"

Now push it to one client to test.  Run it, when you debug and find it works, then --
Push it to all 500 clients, and tell them to run it before they get paid this month.

Result = problem gone.

See these links for more on registry files --

support.microsoft.com/kb/310516
www.computerperformance.co.uk/Registry/registry_hacks_reg.htm
www.mvps.org/serenitymacros/help.html
www.computerperformance.co.uk/vista/vista_reg_create.htm
www.tomshardware.com/reviews/modify-registry-windows-visual-basic-script,1574-4.html
www.indigorose.com/forums/showthread.php?t=4993
www-jerry.oit.duke.edu/linux/docs/samba/running_reg_files_to_edit_windows_registry.html
0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 21809823
damn, that post messed up.  Should read -- that will add an entry -- to "that will remove an entry:"

Please try to overlook the repetitious text.  I was merely trying to show how to add an entry, and remove one, using the - minus sign.  It is fairly simple once you realize how simple it is.  Check the links.
0
 
LVL 1

Author Comment

by:mark_randolph
ID: 21836145
I'll try that on monday... Thank you.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
Viewers will learn how to use the Hootsuite Dashboard.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question