Page 1 of 1

Empty Password Bug

Posted: Thu Apr 20, 2006 10:07 pm
by mimarsinan
Scheduling a task with an empty password does not work. I can schedule the same task in the native task scheduler with an empty password and it works. However the scheduler does not successfully schedule a task with an empty pasword. (The user account has an empty password)

Posted: Fri Apr 21, 2006 3:46 am
by isiticov
Actually, this is some XP limitation, as described here:
http://www.theeldergeek.com/scheduled_t ... ssword.htm

But the code below works just fine to configure a task for a user without password:

Code: Select all

      
      Flags := Flags + [tfRunOnlyIfLoggedOn];
      SetAccountInformation('USERNAME', '');
You may need to use a trick as:
Go to Start/Administrative Tools/'Local Security Policy/Security Settings\Local Policies\Security Options
Accounts: Limit local account use of blank passwords to console logon only. This is enabled by default, disable it.

Please let me know if this helps.

Posted: Thu Oct 12, 2006 3:37 pm
by jbjorgen
mimarsinan has a point.

I can manually configure a task with no password in Windows XP. Also, an application compiled with version 1.0.2 of the scheduling agent seems to have no problem with adding a blank password task to Windows XP without error. Both work without the "Run only if logged in" option.

Unfortunately, I lost the installer for 1.0.2 due to a hard disk failure, I need to get that functionality back. Any ideas?