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

Posted on 2014-04-28
Last Modified: 2014-04-30
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?

Question by:Yashy
LVL 31

Accepted Solution

Gareth Gudger earned 200 total points
ID: 40027425
You can actually download PowerShell 1.0 for Server 2003.

Assisted Solution

YoursJitu earned 150 total points
ID: 40027516

Please have a look at this powershell script which may be helpful for you.
LVL 40

Assisted Solution

footech earned 150 total points
ID: 40027863
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 /?

Expert Comment

ID: 40028877
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.

Author Comment

ID: 40031430
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

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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