In addition, I should not have to specify a password in the definition of the task if the "Run only when user is logged on" option is enabled because the user enters a password upon log on. When creating the task in the Task Scheduler manually, it does not prompt for a password.
How can I get this working so my application will start.
Comments: ** Comment from web user: jeffl012 **
Thank you. Here it is...
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Author></Author>
<Description>Launches Newtwork Connection Manager upon login.</Description>
</RegistrationInfo>
<Triggers>
<LogonTrigger>
<StartBoundary>1900-01-01T00:00:00</StartBoundary>
<Enabled>true</Enabled>
<UserId>JEFFL-PC\GUEST</UserId>
</LogonTrigger>
</Triggers>
<Principals>
<Principal id="Inteset_Launch_Network_Connection_Manager">
<UserId>JEFFL-PC\GUEST</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
<AllowHardTerminate>false</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<Duration>PT10M</Duration>
<WaitTimeout>PT1H</WaitTimeout>
<StopOnIdleEnd>false</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>true</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
<UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
<Priority>5</Priority>
</Settings>
<Actions Context="Network_Connection_Manager">
<Exec>
<Command>"M:\NetworkConnectionManager\NetworkConnectionManager.EXE"</Command>
<WorkingDirectory>M:\NetworkConnectionManager\</WorkingDirectory>
</Exec>
</Actions>
</Task>