That script runs fine and fast on my machine.
try running this script
#include "LocalAccount.au3"
#include <Array.au3>
$result = _GroupEnumMembers("Administrators")
MsgBox(0, "Error", @error)
_ArrayDisplay($result)
If you see error different from 0, you probably aren't going to get any result on that _ArrayDisplay, like for never.
Read the notes before the function.
$Array[1] Returns one of the constants defined on top of the UDF:
; Service state
Global Const $SERVICE_STOPPED = 0x00000001
Global Const $SERVICE_START_PENDING = 0x00000002
Global Const $SERVICE_STOP_PENDING = 0x00000003
Global Const $SERVICE_RUNNING = 0x00000004
Global Const $SERVICE_CONTINUE_PENDING = 0x00000005
Global Const $SERVICE_PAUSE_PENDING = 0x00000006
Global Const $SERVICE_PAUSED = 0x00000007
Microsoft designed it this way.
If there is no "reg.exe" file (Registry Console Tool) in Windows Vista or 7, it won't work. You could try running the Windows XP 32 bit version under Vista or 7.
Thanks ECHAIGNE I will take your word for it. I don't have time to design my own test scripts or even to test these things. The new UDF on the first post contains these modifications. Regards.
Thanks AdamUL for reporting and testing. And helping Shark007 ! I think that: If Not @error And $avUser Then Is equivalent to your statement. Note the parenthesis are now absent. Please test. If it works I will make it permanent. Thanks.