• Remote shutdown

    Author
    Topic
    #428250

    I have two workstations within a network. I know really little about networking, so I’m not sure what kind of network it is. Both machines have WinXP and they can see one another’s IP number.

    Let’s call them A and B (B acts as a files server for several machines).

    I have set both to power on at 9 pm from the system BIOS. After the boot process, A shows the log-on screen. B, however, does not show this log-on screen (Windows and all scheduled tasks start working normally).
    At 9:15 PM B does an information backup to A (yes, although A hasn’t logged, it is still visible to B and the backup job is done alright).
    Some hours later, when the backup job is supposed to have finished, I’d like both workstations to shut down.
    For machine B I’ve written a small AutoIt script that will shut it down 2 hours later if it’s a weekday; if it’s Saturday or Sunday, it will shut down the computer before the backup is run (since there’s no HD activity on Saturdays and Sundays, doing a backup would just create exact copies of the Friday backup).
    Now, my problem is: how do I shut down computer A? Since the boot process stops at the logon screen, no programmed tasks are ever run, nor AutoIt scripts can be launched at startup.

    Is it possible to remotely shut down A? Maybe some kind of ping from B? Any clues?

    TIA

    Viewing 2 reply threads
    Author
    Replies
    • #994509

      Wouldn’t the simplest thing for you to do at this point be to make A also NOT stop at the logon screen as you’ve done with B? Don’t know what your situation is on the B machine, but TweakUI is one way.

      • #994889

        Hi Joe,

        I’ve been trying a while with PsExec and PsShutdown but somehow I can’t get them to work.
        What I did is unzip both tools to C:Windows. For example for PsShutdown, then I:

        run | psshutdown ipaddress

        as this didn’t work, I also tried

        run | psshutdown ipaddress -u username -p password

        where “username” is the username of the remote PC admin and “password” is the password for the remote PC admin user account.

        Again, to no avail

        In both cases all I see is a black cmd-like screen that disappears as soon as some words are printed onscreen.
        I get an analog result when trying PsExec.

        Is there something obvious I’m doing wrong?

        • #994906

          Open a command window (Start | run | cmd.exe) and the use PsShutdown. You’ll get to see any messages.

          --Joe

          • #995033

            Joe, Chris, John,

            Thank you for all the alternatives. I’ve been trying to pull out any of your tricks, but unfortunately I always get an “Access Denied” notification. I’m completely clueless.
            I attach an image of what the network looks like when viewed with Windows Explorer (in case it might be something related to the network).

            I’m trying to shut down workstation Peru-011 from Peru-14. Both have WinXP Pro installed.

            Is there a chance it might be something related to the “Nmp analisis” group permissions? Where can I change those permissions? (if in turn I do have permissions to do so)

            Thanks

        • #994967

          Another way of doing this is to click on Start then on Run and type cmd /k into the entry area box followed by the command you want to execute, as in
          cmd /k psshutdown mycomputer
          This keeps the Command Prompt window visible on the screen.

          John

      • #995348

        We’ve come to decide we’ll manage with Al’s solution. I wanted to try the “hard” way to learn something new, but truth is I’m new to networking and this will do.

        Thank you all very much!

    • #994533

      Check out PsShutdown in Sysinternals Freeware – PsTools. You should be able to add it to your AutoIt script.

      Joe

      --Joe

    • #994938

      Using XP Pro, there is a commandline “shutdown” command.

      shutdown /s /m computername /t 30

      That should do the trick for you, where the flag s = shutdown, m = the computername, and t = time (in seconds) for warning.

      You could also specify /f to force the shutdown of all applications without warning the user.

      I’ve used this at work a few times when trying to troubleshoot problems on remote PCs.

      This also will shutdown (from XP) a Windows 2000 PC or server.

    Viewing 2 reply threads
    Reply To: Remote shutdown

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: