Hello.
I am trying to check for Locked (disabled?) User Accounts on my WinNT-Domain.
By now I do that with this code:
------------------
$pcpool = GetObject("WinNT://PC_POOL") ;Connect to domain
IF NOT $pcpool = 0 ;Confirm connection

for each $user in $pcpool
if $user.class="User"
if $user.isaccountlocked = true
$locked="L "
else
$locked=" "
endif
? $user.name " "+ $locked
endif
next

else
? @ERROR
?
? @SERROR
ENDIF
----------------------

But all I get is an L for ever listed user. Seems strange to me. Can anyone help?
bye
Einhirn
_________________________
SIGSIG: No Signature found