Solved

Windows 2003 Server query on attribute

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

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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 …
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

726 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