[Win 8] Execution of a DOS command each time a user logs off

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
balubeto
Posts: 136
Joined: 08 Dec 2011 12:14

[Win 8] Execution of a DOS command each time a user logs off

#1 Post by balubeto » 24 May 2013 10:40

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

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: [Win 8] Execution of a DOS command each time a user logs

#2 Post by Squashman » 24 May 2013 10:43

group policy.

balubeto
Posts: 136
Joined: 08 Dec 2011 12:14

Re: [Win 8] Execution of a DOS command each time a user logs

#3 Post by balubeto » 24 May 2013 11:12

Squashman wrote:group policy.


I know that too, but Windows 8 Standard does not have the group policies. So, how do I do this?

Thanks

Bye

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: [Win 8] Execution of a DOS command each time a user logs

#4 Post by Squashman » 24 May 2013 11:22

You don't have any other options as Task Scheduler doesn't even have a logoff option.
You would probably have to start looking at 3rd party utilities that monitor the computer shutdown.

balubeto
Posts: 136
Joined: 08 Dec 2011 12:14

Re: [Win 8] Execution of a DOS command each time a user logs

#5 Post by balubeto » 25 May 2013 01:51

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

balubeto
Posts: 136
Joined: 08 Dec 2011 12:14

Re: [Win 8] Execution of a DOS command each time a user logs

#6 Post by balubeto » 25 May 2013 04:58

In practice, in Windows 8, there is the Enabled item in the registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Aut hentication\LogonUI\UserSwitch that takes the value 0 whenever a user logs off. Since the group policies do not exist in Windows 8 Standard, I looking for a registry key or item, which operates at the global level, in order to make sure that the "reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Aut hentication\LogonUI\UserSwitch /v Enabled /t REG_DWORD /d 1 /f" command is executed when a user logs off.

Thanks

Bye

Post Reply