Ballistic.

From a Windows 2000 workstation or XP workstation.

Copy KIX32.EXE and your script to a folder locally on that box.

Then from a command line type as an example in the TEMP folder if you copied the file there.

C:\TEMP\KIX32.EXE LDAP.KIX

(or what ever the name of your script is) it should work.



Break ON
; uncomment the next line to step through the code
; Debug ON
$target = GetObject("LDAP://OU=Test,OU=Information Systems,OU=AdminBldg,DC=sussexcounty,DC=net")
'Error = '+@ERROR+' - '+@SERROR
$loginscript="logon.bat"
For Each $user in $target
  ? 'checking user: '+$user.name
  $script = $user.loginscript 
  ? 'Logon script error: @error - @serror'
  ? 'assigned login script: '+$script
  If $Script <$loginscript
    ? "Current Script for " +$user.name " is: " +$script" Should be: " +$loginscript
    $user.loginscript=$loginscript
     ? 'Error = '+@ERROR+' - '+@SERROR
    $user.SetInfo
     ? 'Error = '+@ERROR+' - '+@SERROR
     ? "Changed current Script for " +$user.name " to: " +$user.loginscript
  EndIf
Next
'If no user was displayed, then no user was retrieved from the OU'