Delete computers in ADUC

jduran04 used Ask the Experts™
I'm working on deleting computers in ADUC in order to free up licenses for one of our app servers.  Does anyone know of a native Windows command/tool to find out how long a computer has elapsed from the network?  For example 10 days or 10 hours?  Thanks.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
What do you mean by elapsed?
if you're on server 2003 you will need to download Server 2003 support tools.

open command prompt and type

dsquery computer -inactive 4

the 4 is the number of weeks since those computer have logged in. If you want to find all the computers that haven't logged in in the last two weeks you would replace the 4 with 2.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial