RE: [ActiveDir] help querying for groups

2004-05-03 Thread JCARROS
You can use dsquery group /?. A tool from Resource Kit W2K3.- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ulf B. Simon-WeidnerSent: Friday, April 30, 2004 6:58 PMTo: [EMAIL PROTECTED]Subject: AW: [ActiveDir] help querying for groups Hi Mark,   first thing which comes t

RE: [ActiveDir] help querying for groups

2004-05-03 Thread Creamer, Mark
, May 02, 2004 10:11 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] help querying for groups   Hey Mark,   I am not an ADO fan but it appears you are missing the attributes you want returned in your execute...   BTW, this will get you ALL groups named RPT* in the domain, it won't jus

RE: [ActiveDir] help querying for groups

2004-05-02 Thread joe
Hey Mark,   I am not an ADO fan but it appears you are missing the attributes you want returned in your execute...   BTW, this will get you ALL groups named RPT* in the domain, it won't just get Global Groups. If you want global groups only, you need to add something to your filter...   All G

RE: [ActiveDir] help querying for groups

2004-05-01 Thread Mikael Svennungsson
Hi Ulf, The code below works for me (please note the placement of "<" and ">"): ==snip== Set oRootDSE = GetObject("LDAP://RootDSE";) varDomainNC = oRootDSE.Get("defaultNamingContext") oConnection.Provider = "ADsDSOObject" oConnection.Open "ADs Provider" strQuery = "

RE: [ActiveDir] help querying for groups

2004-04-30 Thread rpuckett
Mark,   This works to return all domain global groups beginning with r*, however I'll say that if you're working with large directory spaces, it can take some time for a return.   Hope this helps, Richard   ---BEGIN CODE--- option expliciton error resume next   dim RootDSE, DomainNC, DNPath

RE: [ActiveDir] help querying for groups

2004-04-30 Thread Mikael Svennungsson
Maybe this could be some help? Probably not the most efficient code, but. it will echo all groups starting with Do* set oConnection = CreateObject("ADODB.Connection") set oCommand = CreateObject("ADODB.Command") set RS = CreateObject("ADODB.Recordset") Set oRootDSE = GetObject("LDAP://Root