Start by asking the Task Scheduler service to create an empty task definition that you can populate: CComPtr<ITaskDefinition> definition; HR(service->NewTask(0, // reserved &definition)); Before registering the task definition in a specific folder, you need to populate it with at least one action, and optionally with triggers and other information. Once it's ready you can register it in a folder u