This will export the task named "Aero Glass" from the c:\winaero\aero glass.xml file. Execute the following command: Register-ScheduledTask -Xml (Get-Content "c:\winaero\aero glass.xml" | out-string) -TaskName "Aero Glass".Restore a scheduled task in Windows 10 using PowerShell This will restore the task named "Aero Glass" from the c:\winaero\aero glass.xml file. Execute the following command: schtasks /create /tn "Aero Glass" /xml "c:\winaero\aero glass.xml".Restore a scheduled task in Windows 10 using Command Prompt Browse for your XML file and you are done.In the Task Scheduler library, click the action "Import Task." on the right.To restore a scheduled task from backup in Windows 10, do the following. Note: If you have placed your task in some folder in Task Scheduler, don't forget to include the path to the task as follows: Export-ScheduledTask -TaskName "Aero Glass" -TaskPath "\My Folder\" > "C:\winaero\aero glass.xml" How to restore a scheduled task in Windows 10 Execute the following command: Export-ScheduledTask -TaskName "Aero Glass" > "C:\winaero\aero glass.xml"Ĭorrect the task name and the file path as needed. ![]() Open a new elevated PowerShell instance.Note: If you have placed your task in some folder in Task Scheduler, don't forget to include the path to the task as follows: schtasks /query /tn "My Folder\Aero Glass" /xml > "c:\winaero\aero glass.xml"īackup a scheduled task in Windows 10 using PowerShell This will export the task named "Aero Glass" to the c:\winaero\aero glass.xml file.Ĭorrect the task name and the file path as you need. ![]()
0 Comments
Leave a Reply. |