locked
Auto shut down of computer RRS feed

  • Question

  • Is there a way to
    1. completely shut down and
    2. log the user off Windows 7
    in the event the user has left his PC unattended for more than a certain amount of time?
    Tuesday, August 16, 2011 1:49 AM

Answers

  • Hello,

    i have a scheduled task built in any machine that shutdown the computer. Be aware that you MUST inform your users about this as this will result in loss of any data they have open and not saved.

    Create a batch file like shutdown.cmd containing and copy the shutdown.exe to the netlogon folder:


    ;Create the scheduled task on remote workstation's
    if not exist %systemroot%\tasks\at1.job at 05:00 /every:m,t,w,th,f,s,su shutdown.exe /s /t 120 /c "This computer will shutdown, please close your open applications. Your Administrator." /f


    :Copy the shutdown.exe to remote workstation
    if not exist %systemroot%\system32\shutdown.exe copy "\\domainname\netlogon\shutdown.exe" "%systemroot%\system32\shutdown.exe"


    Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
    • Proposed as answer by Mr XMVP Tuesday, August 16, 2011 7:06 AM
    • Marked as answer by Yan Li_ Monday, August 22, 2011 1:51 AM
    Tuesday, August 16, 2011 6:31 AM
  • Hi,

    Try Powercfg command line utility.

    http://technet.microsoft.com/en-us/library/cc748940(WS.10).aspx

    How to use Powercfg.exe to create a Group Policy object for power schemes 

     

    http://support.microsoft.com/kb/915160


    Disclaimer: This posting is provided AS-IS with no warranties or guarantees and confers no rights. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Proposed as answer by Mr XMVP Tuesday, August 16, 2011 7:07 AM
    • Marked as answer by Yan Li_ Monday, August 22, 2011 1:51 AM
    Tuesday, August 16, 2011 2:44 AM

All replies

  • Hi,

    Try Powercfg command line utility.

    http://technet.microsoft.com/en-us/library/cc748940(WS.10).aspx

    How to use Powercfg.exe to create a Group Policy object for power schemes 

     

    http://support.microsoft.com/kb/915160


    Disclaimer: This posting is provided AS-IS with no warranties or guarantees and confers no rights. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Proposed as answer by Mr XMVP Tuesday, August 16, 2011 7:07 AM
    • Marked as answer by Yan Li_ Monday, August 22, 2011 1:51 AM
    Tuesday, August 16, 2011 2:44 AM
  • Hi,

    You can try the below free utilities to manage whatever you need

    http://www.shutdown.cc/idle/

     

     

    • Proposed as answer by Mr XMVP Tuesday, August 16, 2011 7:06 AM
    Tuesday, August 16, 2011 5:04 AM
  • Hello,

    i have a scheduled task built in any machine that shutdown the computer. Be aware that you MUST inform your users about this as this will result in loss of any data they have open and not saved.

    Create a batch file like shutdown.cmd containing and copy the shutdown.exe to the netlogon folder:


    ;Create the scheduled task on remote workstation's
    if not exist %systemroot%\tasks\at1.job at 05:00 /every:m,t,w,th,f,s,su shutdown.exe /s /t 120 /c "This computer will shutdown, please close your open applications. Your Administrator." /f


    :Copy the shutdown.exe to remote workstation
    if not exist %systemroot%\system32\shutdown.exe copy "\\domainname\netlogon\shutdown.exe" "%systemroot%\system32\shutdown.exe"


    Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
    • Proposed as answer by Mr XMVP Tuesday, August 16, 2011 7:06 AM
    • Marked as answer by Yan Li_ Monday, August 22, 2011 1:51 AM
    Tuesday, August 16, 2011 6:31 AM
  • I looked at the web site and did not seee a utility for logging off.  Did I miss it?
    Wednesday, August 17, 2011 2:10 AM
  • Hi,

    Yes you did. Check the sukhwin08's link in the image it is shown. I tried in my test lab works great.

    Have you tried Meinolf's suggestion it seems good too.


    Disclaimer: This posting is provided AS-IS with no warranties or guarantees and confers no rights. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Wednesday, August 17, 2011 3:27 AM
  • Hi,

    PLease let us know the status of the above and if any other help is required from our end.

    Saturday, August 20, 2011 5:22 PM