Solved

wmic uninstall multiples

Posted on 2014-09-12
2
321 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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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 try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

813 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

17 Experts available now in Live!

Get 1:1 Help Now