Skip to content

Instantly share code, notes, and snippets.

@rbleattler
Created July 6, 2022 13:13
Show Gist options
  • Save rbleattler/223fadfdf7c0519af8e0b14176f1c0be to your computer and use it in GitHub Desktop.
Save rbleattler/223fadfdf7c0519af8e0b14176f1c0be to your computer and use it in GitHub Desktop.
Start Mouse Jiggler Scheduled Task (chocolatey)
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.3"
xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Author>YOURDOMAIN\YOURUSERID</Author>
<URI>\Run Mouse Jiggler</URI>
</RegistrationInfo>
<Triggers>
<LogonTrigger>
<Enabled>true</Enabled>
<UserId>YOURUSERID@YOURDOMAIN.COM</UserId>
</LogonTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>YOURDOMAIN\YOURUSERID</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</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>true</UseUnifiedSchedulingEngine>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec id="358eabb5-3a92-49dc-b7ad-a9086dd794af">
<Command>MouseJiggler.exe</Command>
<Arguments>-j -m -s 30</Arguments>
<WorkingDirectory>C:\ProgramData\chocolatey\bin\</WorkingDirectory>
</Exec>
</Actions>
</Task>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment