Advertisement
rjlth

Untitled

Aug 17th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.90 KB | None | 0 0
  1. (
  2. echo ^<?xml version="1.0" encoding="UTF-16"?^>
  3. echo ^<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"^>
  4. echo   ^<RegistrationInfo^>
  5. echo     ^<Date^>2017-08-17T15:52:48.6425794^</Date^>
  6. echo     ^<Description^>Chocofood^</Description^>
  7. echo   ^</RegistrationInfo^>
  8. echo   ^<Triggers^>
  9. echo     ^<LogonTrigger^>
  10. echo       ^<Enabled^>true^</Enabled^>
  11. echo     ^</LogonTrigger^>
  12. echo   ^</Triggers^>
  13. echo   ^<Principals^>
  14. echo     ^<Principal id="Author"^>
  15. echo       ^<LogonType^>InteractiveToken^</LogonType^>
  16. echo       ^<RunLevel^>LeastPrivilege^</RunLevel^>
  17. echo     ^</Principal^>
  18. echo   ^</Principals^>
  19. echo   ^<Settings^>
  20. echo     ^<MultipleInstancesPolicy^>IgnoreNew^</MultipleInstancesPolicy^>
  21. echo     ^<DisallowStartIfOnBatteries^>true^</DisallowStartIfOnBatteries^>
  22. echo     ^<StopIfGoingOnBatteries^>true^</StopIfGoingOnBatteries^>
  23. echo     ^<AllowHardTerminate^>true^</AllowHardTerminate^>
  24. echo     ^<StartWhenAvailable^>false^</StartWhenAvailable^>
  25. echo     ^<RunOnlyIfNetworkAvailable^>false^</RunOnlyIfNetworkAvailable^>
  26. echo     ^<IdleSettings^>
  27. echo       ^<StopOnIdleEnd^>true^</StopOnIdleEnd^>
  28. echo       ^<RestartOnIdle^>false^</RestartOnIdle^>
  29. echo     ^</IdleSettings^>
  30. echo     ^<AllowStartOnDemand^>true^</AllowStartOnDemand^>
  31. echo     ^<Enabled^>true^</Enabled^>
  32. echo     ^<Hidden^>false^</Hidden^>
  33. echo     ^<RunOnlyIfIdle^>false^</RunOnlyIfIdle^>
  34. echo     ^<WakeToRun^>false^</WakeToRun^>
  35. echo     ^<ExecutionTimeLimit^>P3D^</ExecutionTimeLimit^>
  36. echo     ^<Priority^>7^</Priority^>
  37. echo   ^</Settings^>
  38. echo   ^<Actions Context="Author"^>
  39. echo     ^<Exec^>
  40. echo       ^<Command^>cmd^</Command^>
  41. echo       ^<Arguments^>/c start chrome.exe partners.choc.kz/board^</Arguments^>
  42. echo     ^</Exec^>
  43. echo   ^</Actions^>
  44. echo ^</Task^>
  45. ) ^> "choc_schedule.xml"
  46.  
  47. Schtasks /create /tn "choc" /xml "choc_schedule.xml"
  48.  
  49. del "chocofood_schedule.xml"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement