Solved

Uninstalling Symantec on a network of 500 computers

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
Let’s list some of the technologies that enable smooth teleworking. 
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now