Johny:
Since I've downloaded the most current version of adfunctions.au3, I've started getting 'Object referenced outside a "With" statement' errors. I'm not sure if my implementation of your "_ADGetGroupMembers" UDF is flawed or if something else is going on. Any help would be appreciated.
#include <Array.au3>
#include <File.au3>
#include <adfunctions.au3>
$TextFile = ""
$Members = ""
While 1
$GroupName = InputBox("Group Name", "Enter the Active Directory Group name")
If @error <> 0 Then
Exit
Else
If $GroupName <> "" Then
ExitLoop
EndIf
EndIf
WEnd
$TextFile = $GroupName & ".txt"
If _ADGetGroupMembers($Members, $GroupName, 0) == 1 Then
_FileWriteFromArray($TextFile, $members)
Else
MsgBox(4096,"Error", "The group specified doesn't exist.")
EndIf