|Subject:||finding non-gc dcs with dsquery|
|Date:||Fri, 18 Jan 2008|
Can someone explain why this is not working?
dsquery * forestroot -filter "(&(objectClass=nTDSDSA)(options=0))" -
attr distinguishedName -limit 1000
I'd like to use this or something similar to find all DCs in the
forest that are NOT GCs. The problem seems to be with the options
attribute (type=Integer). If I remove it from the filter and add it as
an -attr option, no values are displayed.
Any advice would be appreciated.