Link to home
Start Free TrialLog in
Avatar of enosuna
enosuna

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of ALNMOO
ALNMOO
Flag of Saudi Arabia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of enosuna
enosuna

ASKER

do I need to specify the path of the PCs.txt
yes, i assumed that text file in the same directory with psexec.exe
Avatar of younghv
enosuna,
Here is a link to some detailed psexec scripting from 'sirbounty'.
There are also some comments about permissions, etc.

Vic

https://www.experts-exchange.com/questions/22397407/deploying-DST-package.html
Here is a sysinternals forum where you can find info.

http://forum.sysinternals.com/forum_posts.asp?TID=11457&PN=1
Avatar of enosuna

ASKER

thank you for all your help it work great