0

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.

falsetru
  • 357,413
  • 63
  • 732
  • 636
Syed Farabi
  • 175
  • 1
  • 2
  • 11

1 Answers1

1

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"
Community
  • 1
  • 1
plunkets
  • 510
  • 1
  • 6
  • 13