Results 1 to 18 of 18

Thread: how do i shut down pcs over networks?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    Sheffield, Derbyshire, UK
    Posts
    68

    Post

    how can i shut down pc's over networks?

    ------------------
    jimmy
    ICQ:35813919
    mail:[email protected]

  2. #2
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Post

    Maybe NetBus will work for you

  3. #3

    Post

    Heard of ping of death ?

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    Sheffield, Derbyshire, UK
    Posts
    68

    Post

    o r'nt u both SO funny. NOT. if u cant help, shutup.

    ------------------
    jimmy
    ICQ:35813919
    mail:[email protected]

  5. #5
    Hyperactive Member billwagnon's Avatar
    Join Date
    Jul 1999
    Location
    St. Louis, Missouri, Mississippi Valley
    Posts
    290

    Post

    Now that's English!

  6. #6
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152

    Post

    If i were you i would write a "trojan" and just allow it to Shut Down instead of all the other **** a trojan does......

    If you want a example i can show ya.
    I added you to ICQ 9639200~!~
    Later

  7. #7
    Registered User
    Join Date
    Apr 1999
    Location
    Brazil
    Posts
    144

    Post

    Once time I make this:
    (If you can put a program to every machine in your network)

    Create:
    1) One EXE, put on Startup folder, add a timer, Teste if a file c:\Reboot.inf; if exist reboot
    2) In admin machine create an exe that write Reboot.inf in the machine that you want to reboot.

    If you have any questions, ask me!

    Jefferson


  8. #8
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    If you have admin rights on the machine you are attempting to shut down, you can use the INITIATESYSTEMSHUTDOWN api to remotely reboot the machine. You can also use the winsock control and send a shutdown command between 2 VB apps. If the client receives a certain command via the winsock control, I call the ExitWindows API from the client machine with the option to reboot. that works w/o admin rights, but you need a client and server prog to talk to each other.

    HTH

    Tom

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    Sheffield, Derbyshire, UK
    Posts
    68

    Post

    Hey, thanx guys. I dont really need all this though. I can shut a pc down fine from vb, its just the bit inbetween the pc I want to shut down and the pc im shutting down from. However, i should have an answer soon.

    ------------------
    jimmy
    ICQ:35813919
    mail:[email protected]

  10. #10
    Lively Member
    Join Date
    Apr 1999
    Location
    India
    Posts
    73

    Post

    hey Jim
    what u can do is using winsock only... in the client application write down code to shutdown the local system
    and when u send one spl string let say "SHUTDOWN" the winsock client will shutdown the local system
    Thanx Manish

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    Sheffield, Derbyshire, UK
    Posts
    68

    Post

    could u please give me an example?

    ------------------
    jimmy
    ICQ:35813919
    mail:[email protected]

  12. #12
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    For NT, use InitiateSystemShutdown API call.

  13. #13
    Lively Member
    Join Date
    Apr 1999
    Location
    India
    Posts
    73

    Post

    Hi Jim
    u hv created that client/server chat application. In that application when u receive some request from the server u just display that text, what u can do is write a procedure "ShutDown" that can shutdown the local system on which the client is loaded. so when u recv a "shutdown" string from the server call the procedure shutdown.
    Thanx Manish

  14. #14

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    Sheffield, Derbyshire, UK
    Posts
    68

    Post

    thanx a lot guys

    ------------------
    jimmy
    ICQ:35813919
    mail:[email protected]

  15. #15
    Guest

    Post

    fellas, lets watch the language ok?

  16. #16

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    Sheffield, Derbyshire, UK
    Posts
    68

    Post

    Waddya mean "lets watch language"? there has been no swearing wot so ever in here!
    I guess this is my cue to say lots of swear wors, but its rude, crude and sad. And they'd just get deleted anyway.

    ------------------
    jimmy
    ICQ:35813919
    mail:[email protected]

  17. #17
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    Amen

  18. #18
    Lively Member
    Join Date
    Feb 2006
    Posts
    69

    Re: how do i shut down pcs over networks?

    This is a good tools to use, i must have the list of IP for the pc you want to power off. or there is alot of software in the market where they use the ping command for every while, and even u can be alerted thru sms.

    http://www.microsoft.com/technet/sys...s/default.mspx

    PsShutdown
    PsShutdown is a similar to the Resource Kit and Windows XP shutdown tools, providing you the same options and ability to shutdown, and optionally reboot, local and remote Windows NT/2K/XP/2003 systems. It also provided additional options that make it more powerful and flexible.

    Installation

    Copy PsShutdown onto your executable path and type "psshutdown" with command-line options defined below.

    Usage

    You can use PsShutdown to initiate a shutdown of the local or a remote computer, abort an imminent shutdown, logoff a console user, or lock the desktop.

    usage: psshutdown [\\computer[,computer[,...] | @file [-u username [-p password]]] -s|-r|-h|-d|-k|-a|-l|-o [-f] [-c] [-n s] [-t nn|h:m] [-e [u|p]:xx:yy] [-m "message"]


    computer
    Run the command on the computer or computers specified. If you omit the computer name the command runs on the local system and if you enter a computer name of \\* then the command runs on all computers in the current domain.


    @file
    Execute the command on each of the computers listed in the file.


    -u
    Specifies optional user name for login to remote computer


    -p
    Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.


    -a
    Aborts a shutdown (only possible while a countdown is in progress)


    -c
    Allow the shutdown to be aborted by the interactive user


    -e
    Shutdown reason code. Specify 'u' for user reason codes and 'p' for planned shutdown reason codes.
    xx is the major reason code (must be less than 256)
    yy is the minor reason code (must be less than 65536)


    -f
    Forces all running applications to exit during the shutdown instead of giving them a chance to gracefully save their data


    -h
    Hibernate the computer


    -k
    Poweroff the computer (reboot if poweroff is not supported


    -l
    Lock the computer


    -m
    This option lets you specify a message to display to logged-on users when a shutdown countdown commences


    -n
    Specifies timeout in seconds connecting to remote computers


    -o
    Logoff the console user


    -r
    Reboot after shutdown


    -s
    Shutdown without poweroff


    -t
    Specifies the countdown in seconds until the shutdown (default: 20 seconds) or the time of shutdown in 24 hour notation


    -v
    Display message for the specified number of seconds before the shutdown. If you omit this parameter the shutdown notification dialog displays and specifying a value of 0 omits the dialog.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width