• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

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?

Thanks
Yash
0
Yashy
Asked:
Yashy
3 Solutions
 
Gareth GudgerCommented:
You can actually download PowerShell 1.0 for Server 2003.
http://support.microsoft.com/kb/926139
0
 
YoursJituCommented:
Hi

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

http://community.spiceworks.com/scripts/show/1861-find-and-disable-or-remove-inactive-ad-computer-accounts
0
 
footechCommented:
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.
http://www.microsoft.com/en-us/download/details.aspx?id=2852

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 /?
0
 
andrewcamaryCommented:
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.
0
 
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
0

Featured Post

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now