IADsUser Property: LastLogin

Property Name
LastLogin

Property Type
Date

Description
Gets the time and date of the user's last network logon. The time specified by this property is with reference to the time zone of the client computer. The client computer is the one from where the script is run.
This property is read-only.

Remarks
A value of 19/8/9999 means that the last login time is unknown. This is usually the case when the user has never logged on.

Example

Dim UserObject As IADsUser
Set UserObject = GetObject("NTDS://YourDomainName/UserName")
Debug.Print UserObject.LastLogin

 

See Also