Solved

Uninstalling Symantec on a network of 500 computers

Posted on 2008-06-17
3
753 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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Invest in your employees with these five simple steps to improve employee engagement and retention.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.
Video by: Tony
This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.

623 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