House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Vbscript and Coldfusion

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jones, Becky
01/19/2004 12:01 PM

i have this vbscript that gets me all the computer names in active directory. is there a way i can incorporate this in cf and output the results to a select drop down box?? thanks for your help! bec. sDomain  = "ms" Set oDomain  = GetObject("WinNT://" & sDomain) oDomain.Filter  = Array("Computer") For Each oADobject In oDomain WScript.Echo oADobject.Name Next ************************************************* This e-mail, including any attachments, is intended for the receipt and use by the intended addressee(s), and may contain confidential and privileged information. If you are not an intended recipient of this e-mail, you are hereby notified that any unauthorized use or distribution of this e-mail is strictly prohibited.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mike Townend
01/19/2004 12:10 PM

The easiest way would be to write a VB COM object that does the talking to the Active Directory and get CF to talk to a Method that returns a list or something like... HTH i have this vbscript that gets me all the computer names in active directory. is there a way i can incorporate this in cf and output the results to a select drop down box?? thanks for your help! bec. sDomain  = "ms" Set oDomain  = GetObject("WinNT://" & sDomain) oDomain.Filter  = Array("Computer") For Each oADobject In oDomain WScript.Echo oADobject.Name Next ************************************************* This e-mail, including any attachments, is intended for the receipt and use by the intended addressee(s), and may contain confidential and privileged information. If you are not an intended recipient of this e-mail, you are hereby notified that any unauthorized use or distribution of this e-mail is strictly prohibited.   _____  

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Burns, John
01/19/2004 12:09 PM

Try CFEXECUTE. John Burns i have this vbscript that gets me all the computer names in active directory. is there a way i can incorporate this in cf and output the results to a select drop down box?? thanks for your help! bec. sDomain  = "ms" Set oDomain  = GetObject("WinNT://" & sDomain) oDomain.Filter  = Array("Computer") For Each oADobject In oDomain  WScript.Echo oADobject.Name Next ************************************************* This e-mail, including any attachments, is intended for the receipt and use by the intended addressee(s), and may contain confidential and privileged information. If you are not an intended recipient of this e-mail, you are hereby notified that any unauthorized use or distribution of this e-mail is strictly prohibited.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Douglas.Knudsen
01/19/2004 12:32 PM

why not use CFLDAP against your AD?   Doug i have this vbscript that gets me all the computer names in active directory. is there a way i can incorporate this in cf and output the results to a select drop down box?? thanks for your help! bec. sDomain  = "ms" Set oDomain  = GetObject("WinNT://" & sDomain) oDomain.Filter  = Array("Computer") For Each oADobject In oDomain WScript.Echo oADobject.Name Next ************************************************* This e-mail, including any attachments, is intended for the receipt and use by the intended addressee(s), and may contain confidential and privileged information. If you are not an intended recipient of this e-mail, you are hereby notified that any unauthorized use or distribution of this e-mail is strictly prohibited.   _____  

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jones, Becky
01/19/2004 12:37 PM

do u have an example? why not use CFLDAP against your AD?   Doug i have this vbscript that gets me all the computer names in active directory. is there a way i can incorporate this in cf and output the results to a select drop down box?? thanks for your help! bec. sDomain  = "ms" Set oDomain  = GetObject("WinNT://" & sDomain) oDomain.Filter  = Array("Computer") For Each oADobject In oDomain WScript.Echo oADobject.Name Next ************************************************* This e-mail, including any attachments, is intended for the receipt and use by the intended addressee(s), and may contain confidential and privileged information. If you are not an intended recipient of this e-mail, you are hereby notified that any unauthorized use or distribution of this e-mail is strictly prohibited.   _____   _____  

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Douglas.Knudsen
01/19/2004 12:53 PM

nope, it was just a thought.  Perhpas someone around here has done this.  If its in the AD, and teh LDAP stuff is 'on' of course, you should be able to query it.   Here is an example of query user data <cfldap action="QUERY"     name="empl"     attributes="     employeeID,     mail,     memberOf,     st,     name,     sn,     initials,     mobile,     givenName,     displayName,     userPrincipalName,     department,     streetAddress,     facsimileTelephoneNumber,     countryCode,     mailNickname,     l,     distinguishedName,     manager,     sAMAccountName,     extensionAttribute1"     start=" dc=fooey, dc=gooey     sort="sn ASC"     server="foo.goo.com"     port="389"     filter="sn=johnson"               > Check out the LDAP browser from http://www.ldapbrowser.com/ it rawks and should help you build your query.  For example, in our AD I see CN=Computers listing all teh computers participating in the AD.   Note, if your AD admin has not turned on anonymous reads, you will need a UID/PWD. HTH Doug do u have an example? why not use CFLDAP against your AD?   Doug i have this vbscript that gets me all the computer names in active directory. is there a way i can incorporate this in cf and output the results to a select drop down box?? thanks for your help! bec. sDomain  = "ms" Set oDomain  = GetObject("WinNT://" & sDomain) oDomain.Filter  = Array("Computer") For Each oADobject In oDomain WScript.Echo oADobject.Name Next ************************************************* This e-mail, including any attachments, is intended for the receipt and use by the intended addressee(s), and may contain confidential and privileged information. If you are not an intended recipient of this e-mail, you are hereby notified that any unauthorized use or distribution of this e-mail is strictly prohibited.   _____   _____   _____  

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jones, Becky
01/19/2004 03:40 PM

thank you!!! this site  <http://www.ldapbrowser.com/>; http://www.ldapbrowser.com/ helped alot.  thanks for the reference nope, it was just a thought.  Perhpas someone around here has done this.  If its in the AD, and teh LDAP stuff is 'on' of course, you should be able to query it.   Here is an example of query user data <cfldap action="QUERY"     name="empl"     attributes="     employeeID,     mail,     memberOf,     st,     name,     sn,     initials,     mobile,     givenName,     displayName,     userPrincipalName,     department,     streetAddress,     facsimileTelephoneNumber,     countryCode,     mailNickname,     l,     distinguishedName,     manager,     sAMAccountName,     extensionAttribute1"     start=" dc=fooey, dc=gooey     sort="sn ASC"     server="foo.goo.com"     port="389"     filter="sn=johnson"               > Check out the LDAP browser from http://www.ldapbrowser.com/ it rawks and should help you build your query.  For example, in our AD I see CN=Computers listing all teh computers participating in the AD.   Note, if your AD admin has not turned on anonymous reads, you will need a UID/PWD. HTH Doug do u have an example? why not use CFLDAP against your AD?   Doug i have this vbscript that gets me all the computer names in active directory. is there a way i can incorporate this in cf and output the results to a select drop down box?? thanks for your help! bec. sDomain  = "ms" Set oDomain  = GetObject("WinNT://" & sDomain) oDomain.Filter  = Array("Computer") For Each oADobject In oDomain WScript.Echo oADobject.Name Next ************************************************* This e-mail, including any attachments, is intended for the receipt and use by the intended addressee(s), and may contain confidential and privileged information. If you are not an intended recipient of this e-mail, you are hereby notified that any unauthorized use or distribution of this e-mail is strictly prohibited.   _____   _____   _____   _____  


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

March 20, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31