Best way to run AD queries


i trying run query on ad list of users properties returned, make sure account enabled, , if office either x or y.

not hard @ write up, best way go (using quest). should use included qad switches of -includedproperties , -ldapfilter?

my understanding command process on domain controller, using cpu time instead of workstation.

or should use where-object , select-object cmdlets filter every user get-qaduser return?

my understanding of filtering , sorting take place locally on workstation , reduce overhead on domain controller , network traffic. however, wont increase network traffic pulling 10-13k users opposed 2-3k?

what industry standard way going forward if going create more , more of these type of queries?

ive written query both ways , seems piping where-object , select-object faster. trying via cmdlet returns 20 records every 30 seconds, roughly.


i suggest going www.powergui.org forums if want subject matter expert input on quest cmdlets.  yes, generally, using built-in filters perform better, versus where-object or select-object, doesn't mean noticeable...

this wouldn't have industry standard.  built-in cmdlet filtering typically requires less overall resource usage, "good idea", if will...




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2