On Error Resume Next
Dim Container
Dim ContainerName
Dim User
Dim File
Set FSO = Wscript.CreateObject("Scripting.FileSystemObject")
Set File = FSO.CreateTextFile("AllLastLogin.txt")
ContainerName = "Your Domain Here"
Set Container = GetObject("WinNT://" & ContainerName)
Container.Filter = Array("User")
For Each User in Container
Wscript.Echo User.name & " " & User.LastLogin
FILE.Writeline User.name & " Last logged on " & User.LastLogin
Next
-----Original Message-----
From: Weatherly, Rob [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 3:02 PM
To: NT 2000 Discussions
Subject: Active Directory query
Does any one have a script or know where I can find a script that will show
me users that have not logged on in the last 30 days Must work on windows
2000 with active directory
--------------------------------
Rob Weatherly
--------------------------------
------
You are subscribed as [EMAIL PROTECTED]
Web Interface:
http://intm-dl.sparklist.com/cgi-bin/lyris.pl?enter=nt2000&text_mode=&lang=e
nglish
To unsubscribe send a blank email to %%email.unsub%%
**********************************************************************
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.
------
You are subscribed as [EMAIL PROTECTED]
Web Interface:
http://intm-dl.sparklist.com/cgi-bin/lyris.pl?enter=nt2000&text_mode=&lang=english
To unsubscribe send a blank email to [EMAIL PROTECTED]