I am trying to run a program using Task Scheduler, but am having difficulty with it running when it should. I think the issues are to do with the network, so have tried all sorts of things to fix it.
The situation is that I have a task set up on each computer in the house which launches a the backup program which is located on the fileserver (so I can change the program as needed). The backup program is working fine when launched manually, but the problem seems to be either in the connection to the fileserver is not established, so the task fails - or that the permissions are not right to launch the program.
The fileserver and all computers are in the same homegroup, but it seems to be that unless I manually browse to a location on the fileserver the task fails to run.
The XML for the exported script is:
Code:
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2011-04-18T15:31:02.5302734</Date>
<Author>MAIN-PC\Paul</Author>
<Description></Description>
</RegistrationInfo>
<Triggers>
<LogonTrigger>
<Repetition>
<Interval>PT1H</Interval>
<StopAtDurationEnd>false</StopAtDurationEnd>
</Repetition>
<Enabled>true</Enabled>
<Delay>PT5M</Delay>
</LogonTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>MAIN-PC\Paul</UserId>
<LogonType>S4U</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>false</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
<UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>"\\8-SERVER\00. Backup\_Scripts\BackUp.exe"</Command>
</Exec>
</Actions>
</Task> The option to not store the password for the user is ticked as some of the users do not have passwords set, but I have also tried doing this using the HomeUsers account, Guest account etc.
Can anyone spot where I have gone wrong?