|
Doug, I haven't done that with adfind, but here's some
links for how you could use it using wshshell:
That links to an example:
LISTING 1: Code to
Capture a Command-Line Tool’s Output
Set objShell = CreateObject("WScript.Shell") Set objScriptExec = objShell.Exec("ipconfig /all") strIpConfig = objScriptExec.StdOut.ReadAll WScript.Echo strIpConfig But not sure that's going to give you what you want in ASP
or other, you'd have to try it out and see. Also, being that it's adfind,
you're likely crawling larger datasets and would need to adjust
accordingly.
Al
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stelley, Douglas Sent: Tuesday, March 01, 2005 7:47 AM To: [email protected] Subject: RE: [ActiveDir] Querying for all users I use queries like this for dozens of
programs and scripts, but two of these are new to me. When I need to
find/exclude a disabled account I’ll use
(!userAccountControl:1.2.840.113556.1.4.803:=2). I tried briefly the
(useraccountcontrol:AND:=2), or the
(!(useraccountcontrol:AND:=2)) I wasn’t able to include/exclude disabled users.
Is that unique to Adfind?The query I used to test for that was
(&(objectcategory=person)(objectclass=user)(!useraccountcontrol:AND:=2))
brought up all users regardless of 512/514 I’d love to be able to harness
the powers of adfind in some of my existing scripts and ASP pages. Is there a
link with perhaps an example or two of utilizing your program within a
VB/VBS/ASP? Also, using
(samaccounttype=805306368), is there a listing of the possible samaccount
types? Regards, O monstrous world! Take note, take note, o world, To be direct and honest is not safe! -William Shakespeare. _____ From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On Behalf Of joe From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On Behalf Of Alex Fontana Confidentiality Notice: The information contained in this message may be legally privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any release, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error please notify the author immediately by replying to this message and deleting the original message. Thank you. |
