Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Uninstalling Symantec on a network of 500 computers

Posted on 2008-06-17
3
Medium Priority
?
760 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 1500 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

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

Question has a verified solution.

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

Curious about the latest ransomware attack? Check out our timeline of events surrounding the spread of this new virus along with tips on how to mitigate the damage.
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
Video by: Tony
This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

722 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