Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old April 27th, 2004, 03:46 PM
Xaphan's Avatar
Xaphan Xaphan is offline
O_o wats this button do???
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Kent, England
Posts: 477 Xaphan User rank is Sergeant (500 - 2000 Reputation Level)Xaphan User rank is Sergeant (500 - 2000 Reputation Level)Xaphan User rank is Sergeant (500 - 2000 Reputation Level)Xaphan User rank is Sergeant (500 - 2000 Reputation Level)Xaphan User rank is Sergeant (500 - 2000 Reputation Level)  Folding Points: 1614 Folding Title: Novice Folder
Time spent in forums: 2 Days 23 h 15 m
Reputation Power: 19
Post Script problems

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 ()

Reply With Quote
  #2  
Old May 17th, 2004, 04:17 PM
TheHostingS TheHostingS is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 17 TheHostingS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 42 sec
Reputation Power: 0
would realVNC help?

Reply With Quote
  #3  
Old May 17th, 2004, 04:38 PM
Xaphan's Avatar
Xaphan Xaphan is offline
O_o wats this button do???
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Kent, England
Posts: 477 Xaphan User rank is Sergeant (500 - 2000 Reputation Level)Xaphan User rank is Sergeant (500 - 2000 Reputation Level)Xaphan User rank is Sergeant (500 - 2000 Reputation Level)Xaphan User rank is Sergeant (500 - 2000 Reputation Level)Xaphan User rank is Sergeant (500 - 2000 Reputation Level)  Folding Points: 1614 Folding Title: Novice Folder
Time spent in forums: 2 Days 23 h 15 m
Reputation Power: 19
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...

Reply With Quote
  #4  
Old May 25th, 2004, 04:46 PM
zedmelon's Avatar
zedmelon zedmelon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: under a rock
Posts: 54 zedmelon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 20 m 42 sec
Reputation Power: 5
Quote:
No, realVNC disconnects when the remote machine is logged, of, so I cannot remotely logon for admin purposes

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.

Reply With Quote
  #5  
Old May 28th, 2004, 11:58 AM
ChaS3 ChaS3 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 37 ChaS3 New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 6 h 36 m 4 sec
Reputation Power: 0
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!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Script problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway