Meilleur auteur de réponses
Scheduled task XML import

Question
-
Hello,
I'm trying to create a scheduled task with a XML file. Here is my XML file :
<?xml version="1.0" encoding="UTF-16"?> <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo> <URI>\2BrightSparks\SyncBackFree\</URI> </RegistrationInfo> <Triggers> <CalendarTrigger> <StartBoundary>2015-06-24T17:30:00Z</StartBoundary> <Enabled>true</Enabled> <ScheduleByDay> <DaysInterval>1</DaysInterval> </ScheduleByDay> </CalendarTrigger> </Triggers> <Principals> <Principal id="Author"> <UserId>DOMAIN\USERNAME</UserId> <LogonType>InteractiveToken</LogonType> <RunLevel>LeastPrivilege</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> <WakeToRun>false</WakeToRun> <ExecutionTimeLimit>P3D</ExecutionTimeLimit> <Priority>7</Priority> </Settings> <Actions Context="Author"> <Exec> <Command>"C:\Program Files (x86)\2BrightSparks\SyncBackFree\SyncBackFree.exe"</Command> <Arguments>-m email</Arguments> </Exec> </Actions> </Task>
I'm using this batch file to import the scheduled task :
schtasks.exe /Create /XML "%USERPROFILE%\Desktop\SyncBack.xml" /TN Test
My problem is that the task is created but it looks like the URI is bypassed. How can it be imported into \2BrightSparks\SyncBackFree\
Thanks
mercredi 24 juin 2015 15:08
Réponses
-
schtasks.exe /Create /XML "%USERPROFILE%\Desktop\SyncBack.xml" /TN 2BrightSparks\SyncBackFree\Test
- Modifié Bawilanemo mercredi 24 juin 2015 19:00
- Proposé comme réponse Teodora Sharkova lundi 29 juin 2015 21:56
- Marqué comme réponse Emile Supiot mardi 1 septembre 2015 08:32
mercredi 24 juin 2015 18:58
Toutes les réponses
-
schtasks.exe /Create /XML "%USERPROFILE%\Desktop\SyncBack.xml" /TN 2BrightSparks\SyncBackFree\Test
- Modifié Bawilanemo mercredi 24 juin 2015 19:00
- Proposé comme réponse Teodora Sharkova lundi 29 juin 2015 21:56
- Marqué comme réponse Emile Supiot mardi 1 septembre 2015 08:32
mercredi 24 juin 2015 18:58 -
Bonjour, dmnpch,
S'il vous plaît, utilisez la langue française pour poster vos questions et commentaires.
Le problème persiste-t-il ?
Je vous remercie par avance de votre retour.
Cordialement,
TéodoraVotez! Appel à la contribution TechNet Community Support. LE CONTENU EST FOURNI "TEL QUEL" SANS GARANTIE D'AUCUNE SORTE, EXPLICITE OU IMPLICITE. S'il vous plaît n'oubliez pas de "Marquer comme réponse" les réponses qui ont résolu votre problème. C'est une voie commune pour reconnaître ceux qui vous ont aidé, et rend plus facile pour les autres visiteurs de trouver plus tard la résolution.
lundi 29 juin 2015 21:58