Windows2000/XP logoff

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
 
D

Dave Patrick

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
|
|
 
W

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
 
D

Dave Patrick

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
 
W

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
 
D

Dave Patrick

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top