Sign in to follow this  
Followers 0
Morel

Active Directory Help?

5 posts in this topic

Hello How Can I Get all computers fromActive Directory To An Array or Text File

Thanks,

Morel

Share this post


Link to post
Share on other sites



; Shows the filenames of all files in the current directory.
$search = FileFindFirstFile("*.*")  

; Check if the search was successful
If $search = -1 Then
    MsgBox(0, "Error", "No files/directories matched the search pattern")
    Exit
EndIf
$files = ""
While 1
    $file = FileFindNextFile($search) 
    If @error Then ExitLoop
    
    $files &= $file&"|"
WEnd

; Close the search handle
FileClose($search)
$files = StringSplit($files, "|")

#)

Share this post


Link to post
Share on other sites

; Shows the filenames of all files in the current directory.
$search = FileFindFirstFile("*.*")  

; Check if the search was successful
If $search = -1 Then
    MsgBox(0, "Error", "No files/directories matched the search pattern")
    Exit
EndIf
$files = ""
While 1
    $file = FileFindNextFile($search) 
    If @error Then ExitLoop
    
    $files &= $file&"|"
WEnd

; Close the search handle
FileClose($search)
$files = StringSplit($files, "|")

#)

Thanks But i need to get all computers from ACTIVE DIRECTORY

Not all File From The Current Directory :o

Morel

Share this post


Link to post
Share on other sites

I Ment Windows 2000 / 2003 Domain Active Directory

i know there is a way to get information from The Domain Controler

That Hold The Active Directory

Morel

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0