Solved

wmic uninstall multiples

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

696 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