Can any one please help me letting me know the Powershell command to create a folder in Task scheduler? I have created the script to create task in separate folder but if the folder is not there I need to create one.
Cannot find any command even after Googling a lot.
It will be great if any one can help me out.
Use schtasks.exe. Maybe an answer is in this topic: SchTasks.exe to create a task folder
schtasks /create /xml "MyTask.xml" /tn "My Task Folder\My New Task"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.