Windows2000/XP logoff

  • Thread starter Thread starter William
  • Start date Start date
W

William

Hi all,

I'm doing two small programs.

One(LogonRecord.exe) is run when Windows2000/XP is booting and records the
time of logon.
And the other(LogoffRecord.exe) is run when Windows2000/XP is shutdowned and
records the time of logoff.

I've known that I just need to put LogonRecord.exe into
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] in
Windows registry.

But I don't know where to put LogoffRecord.exe.

TIA

William
 
Use the Group policy editor
%windir%\system32\gpedit.msc
User Config\Windows Settings\Scripts\Logon/Logoff
Computer Config\Windows Settings\Scripts\Startup/Shutdown

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hi all,
|
| I'm doing two small programs.
|
| One(LogonRecord.exe) is run when Windows2000/XP is booting and records the
| time of logon.
| And the other(LogoffRecord.exe) is run when Windows2000/XP is shutdowned
and
| records the time of logoff.
|
| I've known that I just need to put LogonRecord.exe into
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] in
| Windows registry.
|
| But I don't know where to put LogoffRecord.exe.
|
| TIA
|
| William
|
|
 
Thanks Dave Patrick.

But my app is called twice after I add LogoffRecord.exe into

"Computer Config\Windows Settings\Scripts\Startup/Shutdown\Shutdown".

The result is the same if I add it into
"User Config\Windows Settings\Scripts\Logon/Logoff\Logoff".

Regards,

William
 
Never heard of that one before.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thanks Dave Patrick.
|
| But my app is called twice after I add LogoffRecord.exe into
|
| "Computer Config\Windows Settings\Scripts\Startup/Shutdown\Shutdown".
|
| The result is the same if I add it into
| "User Config\Windows Settings\Scripts\Logon/Logoff\Logoff".
|
| Regards,
|
| William
 
Thanks for the response.

I just tried on another Windows2000 machine. Yes, it works.
So there is something strange on my former Windows2000 machine. I just don't
know how to fix that.

Regards,

William
 
The double logoff could be a profile issue so you might try a new user.
(create a new account in 'Users and Passwords'). No idea really on the
double shutdown though.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thanks for the response.
|
| I just tried on another Windows2000 machine. Yes, it works.
| So there is something strange on my former Windows2000 machine. I just
don't
| know how to fix that.
|
| Regards,
|
| William
 
Back
Top