Avatar of jduran04
Flag for United States of America asked on

Delete computers in ADUC

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.
Windows NetworkingInternet ProtocolsNetwork Management

Avatar of undefined
Last Comment

8/22/2022 - Mon


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.
Your help has saved me hundreds of hours of internet surfing.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question