Syed Farabi
Syed Farabi

Reputation: 175

Using Powershell script to create folder in Task Scheduler

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.

Upvotes: 0

Views: 2096

Answers (1)

plunkets
plunkets

Reputation: 550

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"

Upvotes: 1

Related Questions