I do have to say that I am intrigued by the GUI frontend to PSexec, however.  I 
am a HUUUUUGE fan of the sysinternals applications and have been for years: 
small, flexible, scriptable.  Programming at its best.

D.

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

Or... if you speak VBscript and have Active Directory, you can pull down all 
machines by OU and feed them into a shutdown loop.

D.

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 10:07 AM
To: Tech-Geeks Mailing List
Subject: Re: [tech-geeks] shutdown script

Right, but it also lets you specify a target machine from the command line.   I 
shutdown or restart remote machines all the time using the shutdown command.  
My point was you could write a script that loops the shutdown command pulling 
the target machine from a txt file (similar to what Dylan recommended).  This 
script could then be scheduled from the "master" machine.  I have not tried it 
with the /i argument to see if it would be interactive but it might work.  I 
know you can at least specify the "countdown" to give the user time to save 
what they are working on.

-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 McKay, Curtis
Sent: Wednesday, September 29, 2010 9:43 AM
To: 'Tech-Geeks Mailing List'
Subject: Re: [tech-geeks] shutdown script

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


________________________________
Pursuant to Illinois' public records law, this written communication may 
constitute a public record which is available to the public and media upon 
request. Please be advised that this email communication may be subject to 
public disclosure.

________________________________
Pursuant to Illinois' public records law, this written communication may 
constitute a public record which is available to the public and media upon 
request. Please be advised that this email communication may be subject to 
public disclosure.
| Subscription info at http://www.tech-geeks.org |

Reply via email to