Solved

Windows 2003 Server query on attribute

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Computer account cleanup 90 128
How to set a value in extensionAttribute AD attribute by PowerShell? 11 42
Trying to demote an old DC 3 32
AD and SQL Server 2016 2 25
Synchronize a new Active Directory domain with an existing Office 365 tenant
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
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…
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…

840 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