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
enosunaAsked:
Who is Participating?
 
ALNMOOConnect With a Mentor Commented:
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
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.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.