Solved

Windows 2003 Server query on attribute

Posted on 2009-07-15
3
164 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:BryanOakley
  • 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:BryanOakley
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

Join & Write a Comment

Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
Synchronize a new Active Directory domain with an existing Office 365 tenant
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…

760 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

21 Experts available now in Live!

Get 1:1 Help Now