|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
I am new to this fourm, and new to vbs. As the system administrator of a small group of computers, I wish to be able to remotely force shutdown and logoff. I have no Idea how to do this but I know it can be done.
Can any one help me???
__________________
Xaphan Have I helped you? Then help me, and click the rep. button, top right ( )
|
|
#2
|
|||
|
|||
|
would realVNC help?
|
|
#3
|
||||
|
||||
|
No, realVNC disconnects when the remote machine is logged, of, so I cannot remotely logon for admin purposes. Thanks for the suggestion though.
Is there any way of doing this in DOS? (all machines are 2000), as this would be very useful... |
|
#4
|
||||
|
||||
|
Quote:
I may have misunderstood what you meant there, but I've used VNC to shutdown/reboot dozens of NT/2k boxen. However I'm a strong proponent of command-line utilities, so read on. Firstly, remember that Google is your friend. It took me longer to boot my target machine than to find these links: http://www.google.com/search?hl=en&...G=Google+Search The first item was this handy list of NT/2K commands with links to descriptions and usage, two of whick will work, provided you have the Win2k resource kit: http://www.ss64.com/nt/ I found "psshutdown" with command switches more like my preferred UNIX format and more robust options (lock, suspend, hibernate, [dis-]allow the local user to abort) on this site with a boatload of nifty stuff: http://www.sysinternals.com/ntw2k/f...sshutdown.shtml It allows shutdown of all machines listed in a specified text file (so you could write several small scripts to shut down different groups of machines with one quick command), as well as all boxes in the local domain. It even works around different admin passwords. btw, I didn't put the file on the "victim" machine, and this still shut it down for me. I tested the username, password, countdown time, message, remote machine, and abort options. So thanks. Your question prompted me to find a great new free utility. I'm going to paypal a donation to him right now. ;)
__________________
Mother says my .sig can beat up your .sig. |
|
#5
|
|||
|
|||
|
I also administer a few machines....
I made a simple Visual Basic client/server program I made it because I am lazy and hated walking around to turn off computers that may have vacationed participants... Anyhoots, I ran the server on all the computers, allowing me to perform a few simple commands via TCP/IP, one allowing me to power off the computer, or at least log off if someone forgot to! ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Script problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|