Trying to schedule a custom task in a Windows XP machine and getting a 0X4 error because access is denied? Change the following registry setting from 1 to 0:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\limitblankpassworduse
This is one of those rare occasions where I wrote this for myself and not for others.