psexec will take a list of PCs - I used variables to read in a list of PC names, and then run whatever command I wanted - install programs, kill processes etc. Something like this, where computers.txt is a list of PCs: @echo off set ADMIN=my-admin-user set PASS=my-admin-user-password FOR /F %%X IN (computers.txt) DO ( psexec %%X -u %ADMIN% -p %PASS% taskkill /F /IM process-to-kill.exe ) Dylan Haines Systems Technical Support Manager
HB Studios Multimedia Ltd. Box 725, The Hive 37 Hall Street Lunenburg, NS B0J 2C0 Tel: (902)634-8316 ext. 237 Cell: (902)553-0706 Fax: (902)634-3647 <blocked::blocked::http://www.hb-studios.com/> www.hb-studios.com _____ From: tech-geeks-boun...@tech-geeks.org [mailto:tech-geeks-boun...@tech-geeks.org] On Behalf Of Smeltzer, Matt Sent: Wednesday, September 29, 2010 11:26 AM To: tech-geeks@tech-geeks.org Subject: [tech-geeks] shutdown script Anyone have a script or run by or have any ideas how I can pump a script out to machines listed in txt file to shut them down everyday at 6pm. this script can run from a master computer and run everynight that is fine.. but it has to give the option to cancel or to shutdown only the specified computers at 6pm. Thanks Matt -------------------------------------------- Matt Smeltzer - CNA 5.1, Net+ Network Specialist Halifax Regional School Board msmelt...@hrsb.ns.ca (902) 464-2000 ext 2280
| Subscription info at http://www.tech-geeks.org |