Solved

Windows 2003 AD question ?

Posted on 2009-07-02
5
221 Views
Last Modified: 2012-05-07
Is there a way of finding out if a PC in AD has not logged on for more than a month ?

Thx
Adam.
0
Comment
Question by:adam_kan2000
5 Comments
 
LVL 17

Expert Comment

by:Nik
ID: 24764504
I believe not. For that purpose you'll have to use Microsoft System Center Configuration Manager, or some third party application.
0
 
LVL 84

Accepted Solution

by:
oBdA earned 250 total points
ID: 24764522
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
 
LVL 12

Assisted Solution

by:RobinHuman
RobinHuman earned 250 total points
ID: 24764557
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
 
LVL 6

Expert Comment

by:up_grayed_out
ID: 24765072
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
 

Author Comment

by:adam_kan2000
ID: 24770549
Hi up_grayed_out - Do you have the script that you used.

Regards
Adam
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Group Policy & Netlogin Services 5 57
Unknown AD user under VMWare OU 4 70
Task with PowerShell Script is failing with 0x41301 7 121
Raising Forest Functional Level 9 52
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question