?
Solved

wmic uninstall multiples

Posted on 2014-09-12
2
Medium Priority
?
339 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 2000 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
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…

741 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