Windows 2003 AD question ?

Is there a way of finding out if a PC in AD has not logged on for more than a month ?

Thx
Adam.
adam_kan2000Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
oBdAConnect With a Mentor Commented:
Try this one:
OldCmp
http://www.joeware.net/freetools/tools/oldcmp/index.htm

Or, in a W2k3 domain running in W2k3 functional level, with the following command:
dsquery computer -inactive 4 -limit 0
-inactive expects the number of weeks!
This might yield false positives for notebooks or machines that are shut down.

Ordsquery computer -stalepwd 30 -limit 0
This might yield false positives for notebooks or machines that are shut down, or if the changing of the computer passwords has been disabled for some reason.
0
 
NikSystems SpecialistCommented:
I believe not. For that purpose you'll have to use Microsoft System Center Configuration Manager, or some third party application.
0
 
RobinHumanConnect With a Mentor Commented:
Use the dsquery command from the server 2003 adminkit;
syntax is: dsquery computer -inactive 10
where 10 is the number of weeks the machine has been inactive; - note: this only works in an AD 2003 native environment
alternatively, you could use Oldcmp - available here: http://www.joeware.net/freetools/tools/oldcmp/index.htm
0
 
up_grayed_outCommented:
I did it through the logon script. Echo hostname, username, date/time to a csv file. I also used smbios2.exe from ibm. This reads the service tag off of dell systems to keep a running inventory.
0
 
adam_kan2000Author Commented:
Hi up_grayed_out - Do you have the script that you used.

Regards
Adam
0
All Courses

From novice to tech pro — start learning today.