How to obtain PC's that haven't been on network for over 45 days' on AD on Server 2003?

hi guys,

I have another environment which is very tightly locked down, so I'm unable to run applications like Solarwinds etc or can't run powershell seeing as it's a Windows 2003 server. I think I can download a core packge, however if I didn't, then how would one obtain PC's in AD that haven't been on the network for more than 45 days? Would it be a batch file or .vbs?

Who is Participating?
Gareth GudgerConnect With a Mentor Commented:
You can actually download PowerShell 1.0 for Server 2003.
YoursJituConnect With a Mentor Commented:

Please have a look at this powershell script which may be helpful for you.
footechConnect With a Mentor Commented:
You can even download PS 2.0 for Server 2003.   To use AD cmdlets you would need to install the AD Management Gateway Service though.

However, you should be able to just use dsquery for this.
dsquery computer -inactive 6
Check out the help for more options and syntax.
dsquery computer /?
What about the above suggestion?
Have you resolved that?
The command suggested above should work fine for you.
Meanwhile, here is in detail about : "How to find inactive PC's list and disable/delete them from AD".
Hope, this helps you.
YashyAuthor Commented:
Hey guys,

I ran he dsquery but it doesn't recognise that command. However, I am aware that it would work if I did have the necessary admin tools installed.

I downloaded the powershell and that seemed to do the trick for now:)

thanks peeps
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.