post commands to shutdown Windows and the Computer

Discussion in 'Acronis True Image Product Line' started by leoliver, Sep 28, 2007.

Thread Status:
Not open for further replies.
  1. leoliver

    leoliver Registered Member

    Joined:
    Nov 25, 2006
    Posts:
    90
    post command to power off computer

    What would be a post drive image back up command I could use to power off my computer after a back up operation ?
     
  2. Caranthir

    Caranthir Registered Member

    Joined:
    Jun 9, 2005
    Posts:
    21
    Re: post command to power off computer

    shutdown -s -f
     
  3. thomasjk

    thomasjk Registered Member

    Joined:
    Jul 22, 2005
    Posts:
    1,482
    Location:
    Charlotte NC
    Re: post command to power off computer

    Set up a scheduled task to run at shutdown which is what I do.
     
  4. leoliver

    leoliver Registered Member

    Joined:
    Nov 25, 2006
    Posts:
    90
    Hi Everyone,

    Does anyone know of a post command, to be used with a scheduled back up that will both shutdown Windows and power off the computer.
    The tsshutdn.exe command : C:\WINDOWS\SYSTEM32\TSSHUTDN.EXE 0 /DELAY:0 /POWERDOWN was intended to be used shutting down Windows servers, but when I inserted it the "RUN" utility it shutdown Windows and my computer .
    But when I used it as post command, it failed and I received a error in my drive image back up log file.
    Any ideas ?
     
  5. babac

    babac Registered Member

    Joined:
    Sep 16, 2006
    Posts:
    372
    Location:
    Montr?al,Qc.Ca
    Hi,
    This has been discussed in this thread. The reply in post #3 is guaranteed to work (under Windows xp)or money back.
     
    Last edited: Oct 7, 2007
  6. thomasjk

    thomasjk Registered Member

    Joined:
    Jul 22, 2005
    Posts:
    1,482
    Location:
    Charlotte NC
    Larry, I suggested before that you use a scheduled task that creates your backup image at shutdown. This will run a task that creates your backup image and then shutdown and turn off the machine. I use this feature every night and works quite well. No need for any post processing commands.
     
  7. babac

    babac Registered Member

    Joined:
    Sep 16, 2006
    Posts:
    372
    Location:
    Montr?al,Qc.Ca
    Hi,
    This works pretty well only if you want to run a backup every day, which is not what everybody wants.
    On the other hand, if you want to run a backup on another regular period,you should proceed as I said in my previous post.
     
  8. thomasjk

    thomasjk Registered Member

    Joined:
    Jul 22, 2005
    Posts:
    1,482
    Location:
    Charlotte NC
    True but Larry has been unclear about what he wants and now has multiple threads on this topic such as this one https://www.wilderssecurity.com/showthread.php?t=186794.
     
  9. babac

    babac Registered Member

    Joined:
    Sep 16, 2006
    Posts:
    372
    Location:
    Montr?al,Qc.Ca
  10. leoliver

    leoliver Registered Member

    Joined:
    Nov 25, 2006
    Posts:
    90

    Hi Everyone,

    Thanks for the replies . I do once a week full image drive back ups. I think on this week's back up I will try this post command : C:\WINDOWS\SYSTEM32\shutdown.exe -s-f-t0 . I added the [ -f ] to make sure everything closes before shutdown .
     
  11. Menorcaman

    Menorcaman Retired Moderator

    Joined:
    Aug 19, 2004
    Posts:
    4,661
    Location:
    Menorca (Balearic Islands) Spain
    Thanks for the heads up Tom. That previous old thread has now been merged to the beginning of this one in order to prevent dublicated replies.

    Regards

    Menorcaman
     
  12. wenglish98027

    wenglish98027 Registered Member

    Joined:
    Jul 21, 2007
    Posts:
    34
    Re: post command to power off computer

    I have a need to run something other than True Image at shutdown. I don't see a setting for this in the Task Scheduler on Windows XP.

    Is there a way to do this, or are you referring to setting up a True Image scheduled backup?

    Thanks ... Mike
     
  13. thomasjk

    thomasjk Registered Member

    Joined:
    Jul 22, 2005
    Posts:
    1,482
    Location:
    Charlotte NC
    Re: post command to power off computer

    There isn't. I was referring to a TI scheduled backup.
     
  14. babac

    babac Registered Member

    Joined:
    Sep 16, 2006
    Posts:
    372
    Location:
    Montr?al,Qc.Ca
    Re: post command to power off computer

    Hi,
    You should tell us exactly what you have to run before shutdown.
     
  15. wenglish98027

    wenglish98027 Registered Member

    Joined:
    Jul 21, 2007
    Posts:
    34
    I found this after I posted. Haven't tried it yet:

    gpedit.msc

    Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown)

    Mike
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.