We help IT Professionals succeed at work.

Display last successful logon....

Dawn_Bl
Dawn_Bl asked
on
Medium Priority
513 Views
Last Modified: 2006-11-17
Hello,

When a user logs on to the network, is it possible to somehow display the date/time of the last successful logon from that computer? I want it to be displayed to the current user logging in so if by chance someone logged in with their user name they would be aware of it.

I am running a single Active Directory domain on Windows 2000 Server.

Thanks,
Dawn
Comment
Watch Question

CERTIFIED EXPERT

Commented:
Hi Dawn,

This is difficult to do from the users perspective and is much easier as a domain admin through the use of auditing, but let's see if we can come up with both for you.

Usrstat.exe from the NT resource kit displays user name, full name, and last logon date and time for each user account across all domain controllers. This can be run from a batch file.

Use regedit to make the following change:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
 
Value: DontDisplayLastUserName
Type: REG_SZ
Default: 0 : Displays last user name
Other: 1 : Does not display last user name

If you need more let me know.

Dennis

Commented:
Hi Dennis and Dawn!
The answer from Dennis will work 100% on windows NT but not on win2k even if win registry guide is claiming on its home page.
The solution for win2k as we have done to our computers is to active the key on local security settings:
Goto run type in MMC (Microsoft Management Console)
"Add a snap" from the menu called group policy, then goto windows settings, security settings, local policy, security options then there is one relating to the logon screen called 'Do not display
last user name in logon screen'

Author

Commented:
Hi again...

Sorry to keep this question going on so long... what I was really trying to do was allow a user, when logging on to see who and when last logged into their desktop. I have the "who" I just can't figure out the when. Is the only way to acheive this part through auditing and not have it displayed to the user?\

Thanks again,
Dawn
CERTIFIED EXPERT
Commented:
You're right Dawn. Auditing is the only way to achieve the "when" for logons.

Den

Author

Commented:
Thanks Dennis....

I guess that's what I was trying to accomplish which you did suggest to me in your first reponse. Thanks also Navid for your comments.... I have been using Group Policy to display the last user name already so I guess that's as close as I'm going to get to what I wanted to do.

Dawn

Explore More ContentExplore courses, solutions, and other research materials related to this topic.