- Messages
- 107
- Location
- West Auckland
This is half FYI and half Question:
I found out how to add a task to the Automatic Maintenance that runs each morning. I use Geekzone's EPG collector to fill in the guide on Media Centre and I though it would be nice for it to run as part of Automatic Maintenance rather than wake the computer up again later to do it's thing.
Here's how:
Create an XML files in notepad and paste this in...
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2013-02-01T19:34:03.9529687</Date>
<Author>johnofe-laptop\JohnOfE</Author>
<Description>EPG Loader</Description>
</RegistrationInfo>
<Triggers />
<Principals>
<Principal id="LocalSystem">
<UserId>JOHNOFE-LAPTOP\JohnOfE</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>LeastPrivilege</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>true</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<StopOnIdleEnd>false</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
<UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
<MaintenanceSettings>
<Period>P1DT0H</Period>
<Deadline>P7DT0H</Deadline>
<Exclusive>false</Exclusive>
</MaintenanceSettings>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="LocalSystem">
<Exec>
<Command>C:\Program Files (x86)\Geekzone\EPG Collector\EPGCollector.exe</Command>
</Exec>
</Actions>
</Task>
Save the file then in Task Scheduler, import the XML and it will appear. Edit it from there further if you want.
I got this from exporting a task that runs as part of Automatic Maintenance and edited it to suit.
the thing is, I still don't know how it works! I have't been able to create a schedules task from scratch that runs as part of Automatic Maintenance.
Other than plagiarising existing tasks to get what I want, does anyone know how it's really done?
I have what I want, and it works great being able to run all the things I want all at the same time at 3AM each day, as part of Windows' ritual. Even better, if I disable it from waking the computer, everything runs when I'm logged in and Idle. It's fantastic.
Any suggestions or something I missed?
I found out how to add a task to the Automatic Maintenance that runs each morning. I use Geekzone's EPG collector to fill in the guide on Media Centre and I though it would be nice for it to run as part of Automatic Maintenance rather than wake the computer up again later to do it's thing.
Here's how:
Create an XML files in notepad and paste this in...
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2013-02-01T19:34:03.9529687</Date>
<Author>johnofe-laptop\JohnOfE</Author>
<Description>EPG Loader</Description>
</RegistrationInfo>
<Triggers />
<Principals>
<Principal id="LocalSystem">
<UserId>JOHNOFE-LAPTOP\JohnOfE</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>LeastPrivilege</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>true</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<StopOnIdleEnd>false</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
<UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
<MaintenanceSettings>
<Period>P1DT0H</Period>
<Deadline>P7DT0H</Deadline>
<Exclusive>false</Exclusive>
</MaintenanceSettings>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="LocalSystem">
<Exec>
<Command>C:\Program Files (x86)\Geekzone\EPG Collector\EPGCollector.exe</Command>
</Exec>
</Actions>
</Task>
Save the file then in Task Scheduler, import the XML and it will appear. Edit it from there further if you want.
I got this from exporting a task that runs as part of Automatic Maintenance and edited it to suit.
the thing is, I still don't know how it works! I have't been able to create a schedules task from scratch that runs as part of Automatic Maintenance.
Other than plagiarising existing tasks to get what I want, does anyone know how it's really done?
I have what I want, and it works great being able to run all the things I want all at the same time at 3AM each day, as part of Windows' ritual. Even better, if I disable it from waking the computer, everything runs when I'm logged in and Idle. It's fantastic.
Any suggestions or something I missed?
My Computer
System One
-
- OS
- Windows 8 Pro Pack x64
- System Manufacturer/Model
- JohnOfE Special
- Other Info
- Too many systems and combinations!