Hi

I browsed and searched this forum a bit and found some nice ideas for scripts i have to use.

I have to get a userlist in textfile from our ADS and when i use this script all seems fine:

$LogFile = test.txt
$DomObj = getobject("WinNT://xxx.xxx.com,domain")
$DomObj.filter = "user",""
for each $user in $DomObj
? $user.name
next


when i add the REDIRECTOUTPUT command the output is only ZK18187, the last user in alphabetical order:


$LogFile = test.txt
$DomObj = getobject("WinNT://xxx.xxx.com,domain")
$DomObj.filter = "user",""
for each $user in $DomObj
;? $user.name

IF REDIRECTOUTPUT($LogFile,1) = 0
? $user.name
ENDIF

next


What am i doing wrong ? We have Win200 ADS with about 9000 users.

Help appreciated for a scripnewbie.

thanks.