I'm trying to use ADSI code in a Kixtart script, to set accounts so that the user must change the password at next login.

Here is an article that shows how to do it in VBScript:
Configuring a Password Change at Next Logon Requirement

Here is the Kixtart code:
code:
$Domain = GetObject("LDAP://" + $DN[0])
$Domain.Put "pwdLastSet",0
$Domain.SetInfo

This is the error that occurs on the line that says: $Domain.Put "pwdLastSet",0

ERROR : unexpected command!
Script: C:\KiX2001.421\test2.kix
Line : 40

What do I need to do to make this work? [Confused]

[ 28. October 2003, 19:19: Message edited by: Everyone ]