Solved

Windows 2003 Server query on attribute

Posted on 2009-07-15
3
171 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 500 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

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

This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
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…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

705 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