Well, if all you want to do is set the properties of all users the same...


BREAK ON
$target = GetObject("WinNT://"+@Domain)
$loginscript="MYLOGON.BAT"
for each $user in $target
    if $user.class = "USER"
        if $user.loginscript <"$loginscript"
            ? "Current Script for " +$user.name " is: " +$user.loginscript" Modified to " +$loginscript
            ;$user.loginscript=$loginscript
            ;$user.SetInfo
        endif
    endif
next



[ 17. September 2003, 01:24: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.