• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 10586
  • Last Modified:

psexec using @file switch to uninstall application for multiple computer

Need to uninstall application from multiple computer in a domain
currently i am using the

psexec \\computer name Msiexec.exe /q/x{guid} remove=all

from a remote computer to uninstall application --one computer at a time

how do i use the @file switch and what needs to go in the file ??
would I just create a .txt file and just list all the computers

computername, computername, computername

or does it need to be a specific format??
and how would I add that switch
0
enosuna
Asked:
enosuna
1 Solution
 
ALNMOOCommented:
just use this

psexec \\@PCs.txt Msiexec.exe /q/x{guid} remove=all

where pcs.txt contains list of pcs

pc1
pc2
pc3
..
.
0
 
enosunaAuthor Commented:
do I need to specify the path of the PCs.txt
0
 
ALNMOOCommented:
yes, i assumed that text file in the same directory with psexec.exe
0
Technology Partners: 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!

 
younghvCommented:
enosuna,
Here is a link to some detailed psexec scripting from 'sirbounty'.
There are also some comments about permissions, etc.

Vic

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Q_22397407.html
0
 
bsharathCommented:
Here is a sysinternals forum where you can find info.

http://forum.sysinternals.com/forum_posts.asp?TID=11457&PN=1
0
 
enosunaAuthor Commented:
thank you for all your help it work great
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now