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: Help moving sub-directories in Perl...

2001-08-23 Thread Gary MacDonald
Title: RE: Help moving sub-directories in Perl... It is not clear from your code, but I'm assuming that 8am, 12pm, and 5pm are directories, which is what your subject line implies. You need to check the return value and print the $! variable if the call to the move function returns false. T

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, I

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

Help moving sub-directories in Perl...

2001-08-23 Thread Denmark Weatherburne
Hi S/A's I'm using Active Perl on Win NT. I'm can't find the correct syntax to move a directory using Perl. This is my script: Note the three lines beginning with move near the end. Those lines don't get executed at all, and no error is generated. All other lines are executed. Please point out m

Searching Active Directory

2001-08-23 Thread Wong, Ming
Does anyone have any sample code which uses ADO to search a win2k Active Directory using an LDAP path ? Thanks This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by an