Execution of a DOS command each time a user logs off

Discussion in 'Windows 8 Forum' started by balubeto, May 25, 2013.

  1. balubeto

    balubeto New Member

    Joined:
    May 24, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    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
     
    Last edited: May 25, 2013
  2. graye

    graye Member

    Joined:
    Nov 1, 2012
    Messages:
    77
    Likes Received:
    17
    Trophy Points:
    8
    I'd recommend that you use the Task Scheduler... Here is how you'd do it:

    Go to Administrator Tools, Task Scheduler, and use the "Create Task" (not the Create Basic Task)

    On the General tab
    Give it a name
    Click on the "Run whether user is logged on or not"
    (It will prompt you for a password)

    On the Triggers tab
    Create a new Trigger
    Use the "disconnect from user session"
    Click on the "Connection from Local Computer"

    On the Actions tab
    Add a new Action
    Select a path to your batch file
     
    Last edited: May 25, 2013
  3. jnjroach

    jnjroach Administrator Staff Member

    Joined:
    Nov 9, 2012
    Messages:
    7,103
    Likes Received:
    1,724
    Trophy Points:
    113
    Location:
    Seattle, WA USA
    My Device:
    Surface Book
    In an Active Directory Environment this can be handled by a Group Policy Object but would require Windows 8 Pro or higher otherwise as stated above the Task Scheduler would work the best, but keep in mind that it would delay log off and/or shutdown and the user would be alerted to the offending task.
     

Share This Page