"Alexandre Alvarez Fernandez" <Alexandre Alvarez Fernandez[ at ]discussions.microsoft.com> wrote in message news:988E78C1-CC4C-43AF-B37A-A2A305BB4528[ at ]microsoft.com...
[Quoted Text] > necessary of one script that it lists the users of it active directory > that > the 5 months are not logam more than.
You can use Joe Richards' free oldcmp tool to find inactive users:
http://www.joeware.net/win/free/tools/oldcmp.htm
And, I have an example VBScript program that documents all users in the domain and when they last logged on:
http://www.rlmueller.net/Last%20Logon.htm
You should run the script at a command prompt with the cscript host and redirect the output to a text file. For example, assuming you are in the directory where the program LastLogon.vbs is saved:
cscript //nologo LastLogon.vbs > report.txt
creates the file report.txt in the same directory. This text file can be read into a spreadsheet for analysis. For example, you could sort by last logon. Any dates of January 1, 1601, mean "never".
-- Richard Mueller Microsoft MVP Scripting and ADSI Hilltop Lab - http://www.rlmueller.net --
|