Morel Posted March 6, 2006 Share Posted March 6, 2006 Hello How Can I Get all computers fromActive Directory To An Array or Text File Thanks, Morel Link to comment Share on other sites More sharing options...
nfwu Posted March 6, 2006 Share Posted March 6, 2006 ; 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, "|") #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Morel Posted March 6, 2006 Author Share Posted March 6, 2006 ; 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 Morel Link to comment Share on other sites More sharing options...
nfwu Posted March 6, 2006 Share Posted March 6, 2006 By active directory do you mean working directory? tip: lookup @WorkingDir in the helpfile ??? #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Morel Posted March 6, 2006 Author Share Posted March 6, 2006 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now