I have modified the task wizard and editor control extensively to add some of the as of yet unsupported functionality (specifically todo with user accounts)
to avoid the unsupported exceptions.
I have sorted out which logon types to set for which combination of gui checks however I am running into a problem:
The following line
Task.Definition.Principal.LogonType = TaskLogonType.Password;
executes with no problem, but the watch for Task.Definition.Principal.LogonType reports that the value stayed on TaskLogonType.InteractiveToken instead of the value I am setting.
I have stepped throught the setter for Principal.LogonType:
if (v2Principal != null)
v2Principal.LogonType = value;
this line executes and both value and v2Principal.LogonType are set to Password like I want, but the second the setter function completes the value reverts back to InteractiveToken for some reason.
Can anybody tell me why?
I have duplicated the windows logon forms and everything and wrote all the support code i need so this is the only thing holding me back...