Check the eventlogs of all DCs for the last login time for the specific user. You can use the ReadEventlog() UDF for this. Then use any of the date math routines to determine how many days ago the last login happened.
In an AD environment, you can also check the LastLogin property of the user object, not sure whether this also works in an NT domain.
code:
' VBScript
on error resume next
set oDomain = GetObject("WinNT://DOMAIN")
WScript.echo "Domain : " + oDomain.name
for each oDomainItem in oDomain
if oDomainItem.Class = "User" then
WScript.echo "UserName=" + oDomainItem.Name + "Last login=" + formatdatetime(oDomainItem.LastLogin)
end if
next
And please do a Google search for this as it shows you ways to accomplish this.
[ 29. May 2003, 16:35: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.