Execution of a DOS command each time a user logs off

Discussion in 'Windows 8 Help and Support' started by balubeto, May 24, 2013.

  1. balubeto

    balubeto Well-Known Member

    Joined:
    Apr 27, 2012
    Messages:
    53
    Likes Received:
    0
    Hi

    In all editions of Windows 8, how do I make sure that it executes a DOS command each time a user logs off?

    Thanks

    Bye
     
  2. Trouble

    Trouble Noob Whisperer

    Joined:
    Nov 30, 2009
    Messages:
    13,845
    Likes Received:
    833
    I use task scheduler in Windows 8 to run a DOS batch file that I created to shut down the computer whenever a user logs off (disconnect from user session)
    You might give that a try and see if it works for you. I suspect it would work on most DOS scripts (batch .bat, command .com etc.,).
    Regards
    Randy
     
  3. balubeto

    balubeto Well-Known Member

    Joined:
    Apr 27, 2012
    Messages:
    53
    Likes Received:
    0
    By chance, in Windows 8 Standard (and in other editions), there is one registry key or entry that can perform a reg command that is executed when a user logs off? This key or entry must operate at the global level.

    Thanks

    Bye
     
  4. Trouble

    Trouble Noob Whisperer

    Joined:
    Nov 30, 2009
    Messages:
    13,845
    Likes Received:
    833
    None that I am aware of.
    Back in the old days we used to put scripts / batch files here C:\Windows\System32\GroupPolicy\User\Scripts\Logoff
    But since you have restricted your request to include all versions of Windows 8, I'm not sure if that will work as I do not have Windows 8 Standard edition to even look and see if that location exists. And since there is no native Group Policy Editor available in the basic version of Windows 8 that further restricts your options as a lot can be done through local group policies.
    Most of those edits in Group Policy have equivalent registry keys but I have no idea what they are or where they might be. You might try Google with specifics as to what you are trying to accomplish at user Log Off (disconnect from user session) and see what's out there.
     

Share This Page

Loading...