Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Uninstalling Symantec on a network of 500 computers

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

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

Question has a verified solution.

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

Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

877 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