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.

1 Answer 1

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"
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you! That really helped. My situation is bit different though but really helped me giving the idea.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.