Tom, psexec is a tool you run from one machine to send a remote command to 
other machines. They recommending to use psexec to fire off the shutdown tool 
on the workstations.


Curtis McKay
Network Administrator
Belleville Township High School District 201
cmc...@bths201.org<mailto:cmc...@bths201.org>

From: tech-geeks-boun...@tech-geeks.org 
[mailto:tech-geeks-boun...@tech-geeks.org] On Behalf Of Steele, Thomas C
Sent: Wednesday, September 29, 2010 9:37 AM
To: Tech-Geeks Mailing List
Subject: Re: [tech-geeks] shutdown script

You should also be able to use the built-in "shutdown" command (in command line 
mode, not GUI) in a similar manner.  I don't think it is any better than 
psexec, but since it is built in it would save you from having to install the 
psexec app on the remote computers.

-TS

Thomas C. Steele
Technology Director
Manteno CUSD #5

From: tech-geeks-boun...@tech-geeks.org 
[mailto:tech-geeks-boun...@tech-geeks.org] On Behalf Of Dylan Haines
Sent: Wednesday, September 29, 2010 9:32 AM
To: 'Tech-Geeks Mailing List'
Subject: Re: [tech-geeks] shutdown script

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

www.hb-studios.com<blocked::blocked::http://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<mailto:msmelt...@hrsb.ns.ca>
(902) 464-2000 ext 2280

| Subscription info at http://www.tech-geeks.org |

Reply via email to