ADSI and JScript

Results 1 to 2 of 2

Thread: ADSI and JScript

  1. #1
    Join Date
    Dec 1969

    Default ADSI and JScript

    I&#039;m trying to learn JScript by converting some VBScripts to JScript. I&#039;m having difficulty finding out how to convert this section of a VBScript (the for loop to be exact).<BR> <BR>Dim myDomain<BR>Dim item<BR><BR>Set myDomain = GetObject("WinNT://MyDomain")<BR>for Each item In myDomain<BR> WScript.Echo item.Class & ": " & item.Name<BR>Next<BR><BR>How would I do the same thing in JScript?

  2. #2
    Join Date
    Dec 1969

    Default RE: ADSI and JScript

    you&#039;d use an enumerator. grab the JScript language reference from the left column of this page and check it out.<BR><BR>(this answer can be condensed to RTFM)<BR>j

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts