Created
September 10, 2019 12:56
-
-
Save zekrom-vale/8265d07661f2e5b3403959a22c4b295d to your computer and use it in GitHub Desktop.
Add tasks through xml files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Files: 3 (exicute.bat, Powerup.xml, Shutdown.xml) | |
Size: 8149 bytes (7 KiB) | |
CRC32 checksum for data: D101ACE4 | |
CRC32 checksum for data and names: 0298D948 | |
CRC64 checksum for data: 70D034D6CDDBE7B4 | |
CRC64 checksum for data and names: C9E70D6B807F7418 | |
SHA256 checksum for data: 11F413B5C6121DA76E7EB0F45F2369082859F5F3CAAB63394817FE95C17E3170 | |
SHA256 checksum for data and names: 6BFECDD169A522F0C54E9879249B39DD901112ED8D1607B92961BDBBF8FA5766 | |
SHA1 checksum for data: BE03BF4A0F389780BDBFD16BE2AFBD75B010CA62 | |
SHA1 checksum for data and names: 5D6498390E4F9B02B4687396DF01C26F68F684E7 | |
BLAKE2sp checksum for data: F380348432117CA01669DCDED97CA06683D0A0A0A46DDB671248650D081BB454 | |
BLAKE2sp checksum for data and names: 1E6D85A3E070F13B751B04AF3DF42AE52400CD73D9EDB2B440684AB41564A978 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Continue only if you trust the xml files" | |
echo "Close this window if you don't" | |
pause | |
for %%i in (*.xml) do schtasks.exe /create /tn %%i /XML %%i | |
pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2018-11-30T18:15:24.6361279</Date> | |
<Author>ZEKROM\Zekrom</Author> | |
<URI>\Dev\Powerup</URI> | |
</RegistrationInfo> | |
<Triggers> | |
<CalendarTrigger> | |
<StartBoundary>2000-01-01T07:00:00-06:00</StartBoundary> | |
<ExecutionTimeLimit>PT10M</ExecutionTimeLimit> | |
<Enabled>true</Enabled> | |
<ScheduleByDay> | |
<DaysInterval>1</DaysInterval> | |
</ScheduleByDay> | |
</CalendarTrigger> | |
</Triggers> | |
<Principals> | |
<Principal id="Author"> | |
<UserId>S-1-5-18</UserId> | |
<RunLevel>LeastPrivilege</RunLevel> | |
</Principal> | |
</Principals> | |
<Settings> | |
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> | |
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries> | |
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries> | |
<AllowHardTerminate>true</AllowHardTerminate> | |
<StartWhenAvailable>true</StartWhenAvailable> | |
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable> | |
<IdleSettings> | |
<StopOnIdleEnd>false</StopOnIdleEnd> | |
<RestartOnIdle>false</RestartOnIdle> | |
</IdleSettings> | |
<AllowStartOnDemand>true</AllowStartOnDemand> | |
<Enabled>false</Enabled> | |
<Hidden>true</Hidden> | |
<RunOnlyIfIdle>false</RunOnlyIfIdle> | |
<DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession> | |
<UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine> | |
<WakeToRun>true</WakeToRun> | |
<ExecutionTimeLimit>PT1H</ExecutionTimeLimit> | |
<Priority>7</Priority> | |
</Settings> | |
<Actions Context="Author"> | |
<Exec> | |
<Command>echo</Command> | |
<Arguments>nothing</Arguments> | |
</Exec> | |
</Actions> | |
</Task> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2018-11-30T17:53:46.1793424</Date> | |
<Author>ZEKROM\Zekrom</Author> | |
<URI>\Dev\Shutdown</URI> | |
</RegistrationInfo> | |
<Triggers> | |
<CalendarTrigger> | |
<StartBoundary>2000-01-01T18:00:00-06:00</StartBoundary> | |
<Enabled>true</Enabled> | |
<ScheduleByDay> | |
<DaysInterval>1</DaysInterval> | |
</ScheduleByDay> | |
</CalendarTrigger> | |
<CalendarTrigger> | |
<StartBoundary>2000-01-01T20:00:00-06:00</StartBoundary> | |
<Enabled>true</Enabled> | |
<ScheduleByDay> | |
<DaysInterval>1</DaysInterval> | |
</ScheduleByDay> | |
</CalendarTrigger> | |
</Triggers> | |
<Principals> | |
<Principal id="Author"> | |
<UserId>S-1-5-18</UserId> | |
<RunLevel>LeastPrivilege</RunLevel> | |
</Principal> | |
</Principals> | |
<Settings> | |
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> | |
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries> | |
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries> | |
<AllowHardTerminate>true</AllowHardTerminate> | |
<StartWhenAvailable>true</StartWhenAvailable> | |
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable> | |
<IdleSettings> | |
<Duration>PT30M</Duration> | |
<WaitTimeout>PT1H</WaitTimeout> | |
<StopOnIdleEnd>true</StopOnIdleEnd> | |
<RestartOnIdle>false</RestartOnIdle> | |
</IdleSettings> | |
<AllowStartOnDemand>true</AllowStartOnDemand> | |
<Enabled>true</Enabled> | |
<Hidden>false</Hidden> | |
<RunOnlyIfIdle>true</RunOnlyIfIdle> | |
<DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession> | |
<UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine> | |
<WakeToRun>false</WakeToRun> | |
<ExecutionTimeLimit>PT72H</ExecutionTimeLimit> | |
<Priority>7</Priority> | |
<RestartOnFailure> | |
<Interval>PT1M</Interval> | |
<Count>3</Count> | |
</RestartOnFailure> | |
</Settings> | |
<Actions Context="Author"> | |
<Exec> | |
<Command>shutdown</Command> | |
<Arguments>/s</Arguments> | |
</Exec> | |
</Actions> | |
</Task> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment