Windows 2003 Last Login
From: Bad Beagle (melanie.schmahl_at_shaw.ca)
Date: 02/04/05
- Next message: qqqq: "Re: DSN Less Connection to SQL Server"
- Previous message: David Mayerovitch: "Re: Can HTA trust me?"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Windows 2003 Last Login"
- Reply: Torgeir Bakken \(MVP\): "Re: Windows 2003 Last Login"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 4 Feb 2005 11:24:36 -0700
I am using the following script to get my last login time of users. It
seems to work for me yet I am reading a lot of documentation that says this
lastlogin time field only updates every 7 days. Is anyone else using a
similar script and getting positive results? I only have 2 DC's.
On Error Resume Next
Dim User
Dim UserName
Dim UserDomain
UserDomain = InputBox("Enter the name of the domain:")
UserName = InputBox("Enter the name of the user:")
Set User = GetObject("WinNT://" & UserDomain & "/" & UserName & ",user")
MsgBox "The last time " & UserName & " logged on was: " & vbCRLf & vbCRLf &
User.LastLogin
- Next message: qqqq: "Re: DSN Less Connection to SQL Server"
- Previous message: David Mayerovitch: "Re: Can HTA trust me?"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Windows 2003 Last Login"
- Reply: Torgeir Bakken \(MVP\): "Re: Windows 2003 Last Login"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|