Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Shutdown batch file.... is it possible to move onto next machine?  (Read 2683 times)

0 Members and 1 Guest are viewing this topic.

fairm010

    Topic Starter


    Starter

    I have made the shutdown batch file (shutdown -s -m \\25L871J      -c "This computer is doing a routine shutdown. Please save all work as it cannot be recovered!." -t 60) ... easy part.... but what if that machine is already off.. is there any way to move on to the next machine in the batch file without the command prompt just stopping?  :-\ any help please!!

    Computer Hope Admin

    • Administrator


    • Prodigy

      Thanked: 248
      • Yes
      • Yes
      • Yes
      • Computer Hope
    • Certifications: List
    • Computer: Specs
    • Experience: Guru
    • OS: Windows 10
    Re: Shutdown batch file.... is it possible to move onto next machine?
    « Reply #1 on: March 27, 2009, 02:20:17 PM »
    Try starting each shutdown command with start. Using the start command will start the command in a new window as if you were doing it from the run line or start button. See the below start command page for additional information.

    http://www.computerhope.com/starthlp.htm

    Everybody is a genius. But, if you judge a fish by its ability to climb a tree, it will spend its whole life believing that it is stupid.
    -Albert Einstein

    Computer Hope Admin

    • Administrator


    • Prodigy

      Thanked: 248
      • Yes
      • Yes
      • Yes
      • Computer Hope
    • Certifications: List
    • Computer: Specs
    • Experience: Guru
    • OS: Windows 10
    Re: Shutdown batch file.... is it possible to move onto next machine?
    « Reply #2 on: March 27, 2009, 02:34:53 PM »
    Just an update for those of you concerned about this question and how it could be abused. Unless the remote guest service is enabled on the computer you cannot remotely shutdown a computer. In addition to this service there are several other factors that can prevent this from being abused.
    Everybody is a genius. But, if you judge a fish by its ability to climb a tree, it will spend its whole life believing that it is stupid.
    -Albert Einstein

    fairm010

      Topic Starter


      Starter

      Re: Shutdown batch file.... is it possible to move onto next machine?
      « Reply #3 on: March 27, 2009, 02:57:09 PM »
      What factors are they?

      Im quite a newbie to batch files... do i just put "start" at the start of each shutdown command?

      Thanks  ;D

      Computer Hope Admin

      • Administrator


      • Prodigy

        Thanked: 248
        • Yes
        • Yes
        • Yes
        • Computer Hope
      • Certifications: List
      • Computer: Specs
      • Experience: Guru
      • OS: Windows 10
      Re: Shutdown batch file.... is it possible to move onto next machine?
      « Reply #4 on: March 27, 2009, 03:33:38 PM »
      There are a lot of things that can prevent Windows from being remotely shut down. See the below link for additional information.

      http://www.computerhope.com/issues/ch001052.htm

      Yes. You'd just type start at the beginning of each line. I'd assume this would work fine, but haven't tested it.
      Everybody is a genius. But, if you judge a fish by its ability to climb a tree, it will spend its whole life believing that it is stupid.
      -Albert Einstein

      fairm010

        Topic Starter


        Starter

        Re: Shutdown batch file.... is it possible to move onto next machine?
        « Reply #5 on: March 27, 2009, 03:58:02 PM »
        Thanks For Youre Help! :D