Solved

wmic uninstall multiples

Posted on 2014-09-12
2
314 Views
Last Modified: 2014-09-13
wmic product where name="CCC Help Dutch" call uninstall

I am trying to uninstall about 30 or so of these help files that are not needed on our domain computers. Is there a way to execute this same command on multiple machines and change the product alias each time? we use a psexec script that calls for a @computers.txt with a list of machines.
0
Comment
Question by:AlfonsoPina
2 Comments
 
LVL 28

Accepted Solution

by:
becraig earned 500 total points
ID: 40320255
Since you are already using psexec

1. create a text file with the product aliases
2. copy the file to each local machine
3. do the uninstall
4. remove the file

e.g.
for /f  %a in (computers.txt) do copy proaliases.txt \\%a\c%\temp\ & psexec \\%a cmd /c <your wmi uninstall here> & del /F /Q c:\temp\proaliases.txt

Open in new window

0
 

Author Closing Comment

by:AlfonsoPina
ID: 40320831
Thats what I needed. Thanks.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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…

758 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

18 Experts available now in Live!

Get 1:1 Help Now