Advertisement
Smooney

MDT Task Scheduler Script v1

Mar 29th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.90 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  3.   <RegistrationInfo>
  4.     <Date>2016-03-20T07:54:23.3888957</Date>
  5.     <Author></Author>
  6.   </RegistrationInfo>
  7.   <Triggers>
  8.     <CalendarTrigger>
  9.       <StartBoundary>2016-03-20T23:59:00</StartBoundary>
  10.       <Enabled>true</Enabled>
  11.       <ScheduleByWeek>
  12.         <DaysOfWeek>
  13.           <Thursday />
  14.         </DaysOfWeek>
  15.         <WeeksInterval>1</WeeksInterval>
  16.       </ScheduleByWeek>
  17.     </CalendarTrigger>
  18.   </Triggers>
  19.   <Principals>
  20.     <Principal id="Author">
  21.       <UserId></UserId>
  22.       <LogonType>Password</LogonType>
  23.       <RunLevel>HighestAvailable</RunLevel>
  24.     </Principal>
  25.   </Principals>
  26.   <Settings>
  27.     <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
  28.     <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
  29.     <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
  30.     <AllowHardTerminate>true</AllowHardTerminate>
  31.     <StartWhenAvailable>false</StartWhenAvailable>
  32.     <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
  33.     <IdleSettings>
  34.       <StopOnIdleEnd>true</StopOnIdleEnd>
  35.       <RestartOnIdle>false</RestartOnIdle>
  36.     </IdleSettings>
  37.     <AllowStartOnDemand>true</AllowStartOnDemand>
  38.     <Enabled>true</Enabled>
  39.     <Hidden>false</Hidden>
  40.     <RunOnlyIfIdle>false</RunOnlyIfIdle>
  41.     <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
  42.     <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
  43.     <WakeToRun>false</WakeToRun>
  44.     <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
  45.     <Priority>7</Priority>
  46.   </Settings>
  47.   <Actions Context="Author">
  48.     <Exec>
  49.       <Command>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</Command>
  50.       <Arguments>-ExecutionPolicy Bypass -File D:\ReferenceScripts\VMBuilder-REFIMG2016TP4-v3.ps1</Arguments>
  51.     </Exec>
  52.   </Actions>
  53. </Task>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement