Advertisement
J2897

SchedTask

Jan 23rd, 2016
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.01 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  3.   <RegistrationInfo>
  4.     <Description>This will update all Cygwin packages on the 1st of every month at 00:00.</Description>
  5.   </RegistrationInfo>
  6.   <Triggers>
  7.     <CalendarTrigger>
  8.       <StartBoundary>2016-01-23T00:00:00</StartBoundary>
  9.       <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
  10.       <Enabled>true</Enabled>
  11.       <ScheduleByMonth>
  12.         <DaysOfMonth>
  13.           <Day>1</Day>
  14.         </DaysOfMonth>
  15.         <Months>
  16.           <January />
  17.           <February />
  18.           <March />
  19.           <April />
  20.           <May />
  21.           <June />
  22.           <July />
  23.           <August />
  24.           <September />
  25.           <October />
  26.           <November />
  27.           <December />
  28.         </Months>
  29.       </ScheduleByMonth>
  30.     </CalendarTrigger>
  31.   </Triggers>
  32.   <Principals>
  33.     <Principal id="Author">
  34.       <LogonType>Password</LogonType>
  35.       <RunLevel>HighestAvailable</RunLevel>
  36.     </Principal>
  37.   </Principals>
  38.   <Settings>
  39.     <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
  40.     <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
  41.     <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
  42.     <AllowHardTerminate>true</AllowHardTerminate>
  43.     <StartWhenAvailable>true</StartWhenAvailable>
  44.     <RunOnlyIfNetworkAvailable>true</RunOnlyIfNetworkAvailable>
  45.     <IdleSettings>
  46.       <StopOnIdleEnd>true</StopOnIdleEnd>
  47.       <RestartOnIdle>false</RestartOnIdle>
  48.     </IdleSettings>
  49.     <AllowStartOnDemand>true</AllowStartOnDemand>
  50.     <Enabled>true</Enabled>
  51.     <Hidden>false</Hidden>
  52.     <RunOnlyIfIdle>false</RunOnlyIfIdle>
  53.     <WakeToRun>false</WakeToRun>
  54.     <ExecutionTimeLimit>P1D</ExecutionTimeLimit>
  55.     <Priority>7</Priority>
  56.   </Settings>
  57.   <Actions Context="Author">
  58.     <Exec>
  59.       <Command>C:\cygstore\scripts\cyg-upgrade.bat</Command>
  60.       <WorkingDirectory>C:\cygstore\scripts</WorkingDirectory>
  61.     </Exec>
  62.   </Actions>
  63. </Task>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement