RE: setting user properties

2001-08-23 Thread Ky-Anh Phan
Try the below .. works for me, $user = Win32::OLE->GetObject("WinNT://$DOMAIN/$login"); $user->{pwdLastSet} = 0; $user->SetInfo or die Win32::OLE::LastError; I need to set the box "User Must Change Password at Next Logon" for the users of my domain but I looked at Lanman and AdminMisc and saw n

RE: setting user properties

2001-08-23 Thread Timothy Johnson
Check out Win32API::Net. I believe that if you set the passwordExpired function you can change this property. -Original Message- From: Jack Sheppard [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 10:11 AM To: [EMAIL PROTECTED] Subject: setting user properties Greetings

setting user properties

2001-08-23 Thread Jack Sheppard
Greetings, I need to set the box "User Must Change Password at Next Logon" for the users of my domain but I looked at Lanman and AdminMisc and saw no way of doing it. I also looked at NT Resource Kit to no avail. The only tool there that even mentioned this option is AddUsers and it only provides