locked
Program, batch file etc.. to automatically log off the computer than restart it? RRS feed

  • Question

  • Hi,

    i am looking for a program or tools or whatever in Windows 7 that can automatically force to log off the user first after that it will restart the computer?

    Can anyone suggest something for me?

    Thanks for ur help.

    • Moved by Just Karl Friday, August 1, 2014 9:41 PM Off Topic
    Tuesday, September 3, 2013 7:14 AM

Answers

  • shutdown -r -t 0

    • Proposed as answer by Pavel A Wednesday, September 4, 2013 11:11 AM
    • Marked as answer by Just Karl Friday, August 1, 2014 9:41 PM
    Tuesday, September 3, 2013 5:08 PM

All replies

  • I think this command just only restart the computer. What I mean is to log off completely and start restart function?
    Thursday, September 5, 2013 7:01 AM
  • What exactly do you want to accomplish? A restart logs off the user first.
    Thursday, September 5, 2013 8:40 AM
  • The command shutdown -l will log off the user, but only when run in the users context. That means you cannot use it as an admin to log off another user.
    Thursday, September 5, 2013 8:42 AM
  • Hello,

    The Windows Desktop Perfmon and Diagnostic tools forum is to discuss performance monitor (perfmon), resource monitor (resmon), and task manager, focusing on HOW-TO, Errors/Problems, and usage scenarios.

    Since your post is off-topic, I am moving it to the off topic forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Friday, August 1, 2014 9:41 PM