Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    May 2013
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Execution of a DOS command each time a user logs off

    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. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,434
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Balubeto,

    Use the Task Scheduler and set your trigger as shown below:
    Event Trigger.JPG
    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  3. #3
    WS Lounge VIP mrjimphelps's Avatar
    Join Date
    Dec 2009
    Location
    USA
    Posts
    3,396
    Thanks
    445
    Thanked 404 Times in 376 Posts
    RG, looks like you have selected "Winlogon" as the source. What about "winlogoff"?

  4. #4
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,434
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Jim,

    There is no Winlogoff! Code 7001 = Logon 7002 = Logoff. HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  5. #5
    WS Lounge VIP mrjimphelps's Avatar
    Join Date
    Dec 2009
    Location
    USA
    Posts
    3,396
    Thanks
    445
    Thanked 404 Times in 376 Posts
    Makes sense!

    I just learned about something very similar to that. I learned that for Windows Defender (Windows 8), you have to go to Task Scheduler in order to set up scanning schedules. There's no way to do that inside of Windows Defender! Event ID 1 gives you a quick scan, and Event ID 2 gives you a full scan.

    The Task Scheduler settings look a lot like you are filling in values in the Windows Registry; in other words, Task Scheduler is a shell for the Windows Registry.

    Back in the day, we referred to this stuff as "Command-Line Parameters".

  6. #6
    2 Star Lounger
    Join Date
    May 2013
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •