|
Bite me, Joe.
:P
Rick Kingslan MCSE, MCSA, MCT From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Sent: Saturday, October 25, 2003 1:17 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Active Directory Cookbook I
thought you would think that was a good thought. But you have a good point to
counter that good thought. I should submit something, I wouldn't mind being in
the acknow..... err wait a minute. How about this, people who are already in it
can submit something and pick one person to be removed from the
acknowledgements... Oh Rick.... :op
Hmmm
what could I submit... Oh I know, something I had to do today really quick...
Find all OU's with any GPO link whatsoever...
First
off I wondered, is gplink in the GC?
adfind
-schema -f ldapdisplayname=gplink
ismemberofpartialattributeset
Gets
you
dn:CN=GP-Link,CN=Schema,CN=Configuration,DC=joehome,DC=com
>isMemberOfPartialAttributeSet: TRUE So it
sure is... This is easy!
adfind
-gc -b -f "&(objectcategory=organizationalunit)(gplink=*)"
gplink
On my
home domain that rips off in less than a second...
dn:OU=Domain Controllers,DC=joehome,DC=com
>gPLink: [LDAP://CN={6AC1786C-016F-11D2-945F-00C04fB984F9},CN=Policies,CN=System,DC=joehome,DC=com;0] dn:OU=Cmps,DC=joehome,DC=com
>gPLink: [LDAP://CN={61CF67FA-41FA-415C-B349-E7D182BDD54F},CN=Policies,CN=System,DC=joehome,DC=com;0] Oh ok,
you now want to know what the nice name of those are...
adfind
-b
CN={6AC1786C-016F-11D2-945F-00C04fB984F9},CN=Policies,CN=System,DC=joehome,DC=com
-s base displayname
and
adfind
-b
CN={61CF67FA-41FA-415C-B349-E7D182BDD54F},CN=Policies,CN=System,DC=joehome,DC=com
-s base
I
don't recall those exact examples in the book. :op
Can
anyone guess how often I use adfind in the course of a normal
workday?
Me
neither. But I have wrapped it with a couple of batch files.
The
first is called findthis.cmd
It
takes whatever I enter and basically does a
adfind
-gc -b -f name=%1 -dn
I also
have a kids.cmd
adfind
-gc -b %1 -s one -f * -dn
and
also I have a get
adfind
-b %1 -s base
Ok
that is enough, I don't want to hurt anyone. ;o)
Good
night!
joe
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robbie Allen Sent: Saturday, October 25, 2003 1:40 AM To: '[EMAIL PROTECTED]' And what have you been drinking at 1am?? :-)
Good thought, but my guess is that people who offer
good suggestions probably already have a copy of the book (since they know
what's in there and what isn't). FWIW, I would be happy to
mention in the acknowledgements section anyone who suggests a recipe I
include in the next edition.
Robbie
Allen
|
Title: Message
- RE: [ActiveDir] Active Directory Cookbook Myrick, Todd (NIH/CIT)
- RE: [ActiveDir] Active Directory Cookbook Daniel Gilbert
- RE: [ActiveDir] Active Directory Cookbook Myrick, Todd (NIH/CIT)
- RE: [ActiveDir] Active Directory Cookbook Myrick, Todd (NIH/CIT)
- RE: [ActiveDir] Active Directory Cookbook Rick Kingslan
- RE: [ActiveDir] Active Directory Cookbook Tony Murray
- RE: [ActiveDir] Active Directory Cookbook Robbie Allen
- RE: [ActiveDir] Active Directory Cookbook Daniel Gilbert
- RE: [ActiveDir] Active Directory Cookbook Myrick, Todd (NIH/CIT)
- RE: [ActiveDir] Active Directory Cookbook Rick Kingslan
- RE: [ActiveDir] Active Directory Cookbook Michael B. Smith
- RE: [ActiveDir] Active Directory Cookbook Robbie Allen
- RE: [ActiveDir] Active Directory Cookbook Myrick, Todd (NIH/CIT)
- RE: [ActiveDir] Active Directory Cookbook Roger Seielstad
- RE: [ActiveDir] Active Directory Cookbook Rick Kingslan
- RE: [ActiveDir] Active Directory Cookbook DiBias, Chip
- RE: [ActiveDir] Active Directory Cookbook John Parker
- RE: [ActiveDir] Active Directory Cookbook Myrick, Todd (NIH/CIT)
- RE: [ActiveDir] Active Directory Cookbook John Parker
