This code works for me and has been verified via the GUI.

$obUser = GetObject("LDAP://CN=USer,OU=US Pilot Accounts,OU=0001,DC=tyco,DC=com"); 
? "Get user: @error @serror"
$obUser.Put ("pwdLastSet",0)
$obUser.SetInfo
? "SetInfo: @error @serror"


Are you binding to the same DC with the script as you are with the GUI?

[ 28. October 2003, 20:02: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/