Solved

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
5
269 Views
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?

Thanks
Yash
0
Comment
Question by:Yashy
5 Comments
 
LVL 31

Accepted Solution

by:
Gareth Gudger earned 200 total points
ID: 40027425
You can actually download PowerShell 1.0 for Server 2003.
http://support.microsoft.com/kb/926139
0
 
LVL 2

Assisted Solution

by:YoursJitu
YoursJitu earned 150 total points
ID: 40027516
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
 
LVL 40

Assisted Solution

by:footech
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.
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
 
LVL 2

Expert Comment

by:andrewcamary
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.
0
 
LVL 1

Author Comment

by:Yashy
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
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 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