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
261 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 30

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 39

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now