?
Solved

Windows 2003 Server query on attribute

Posted on 2009-07-15
3
Medium Priority
?
172 Views
Last Modified: 2012-05-07
Hi

*** Environment ***
Windows 2003 AD

Ok - currently run some automated daily checks via powershell and I use certain input files to run against many servers...
I gather my server list from AD by querying on operating system and dumping to .txt...

This all works fine but gives me all my servers (all servers live in different OU's so not an option to query on a single OU)...

What I would like to do, is query *dynamically* on a specific criteria I.e *QueryMe* for which I would like to use a new attribute or an exisitng attribute where I could place this specifier so that it can be done dynamically as opposed to running the query first and sorting the required servers only...

To summarise, I would like to put in an attribute in my servers AD attribute (somewhere?) *QueryMe*, so that when I query AD, I can direct to the *QueryMe* to get only those servers as opposed to all..

I hope this smakes sense??? :-)

My question therefore would be, should I create a new attribute or is there an exisitng attribute I coulod use without causing any issue to Windows/AD and if so, how would I go about this?

I appreciate any advice/guidance on this matter...

Cheers
Bry
0
Comment
Question by:bryan oakley-wiggins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 2000 total points
ID: 24860995
Are you using the location tab for anything (for instance are you using printer location tracking)?  You could add "queryme" there.  Look at my screenshot.  I added it to two machines in my lab then used adfind to search for just those machines with that field populated.
Thanks
MIke

addLocationQuery.jpg
0
 

Author Closing Comment

by:bryan oakley-wiggins
ID: 31603805
mkline71
Perfect..! Can't believe I didn't think of that one doh..! ;-)
seriously, thanks a million...

Cheers
Bry
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 24861801
No problem...glad to help out :)
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

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

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

762 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