Solved

wmic uninstall multiples

Posted on 2014-09-12
2
336 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
[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 Comments
 
LVL 29

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

718 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