I'm using a task sequence to only run a command. For example: regedit /s <file>.reg
I'm setting one up for the first time and I created the task, edited it, added the Run Command Line task, and then placed the above in the command line field.
Then I placed the .reg file on a network share and placed that path in the Start In: field.
Finally I advertised it to a collection with one workstation for as soon as possible and made it mandatory with WoL.
It didn't work until I abandoned the "Start In" field and created a package out of the reg file. So what is the purpose of the 'Start In' field if it isn't the working directory? I didn't change the location of the file, only made a package out of it and cleared the 'Start In' field.
So while I've figured out a way to do it, every reference I've found to the 'Start In' field in task sequences touts it as the working directory. Looking for any clarity in how Task Sequences used for Command Line tasks should be leveraged, especially if there's a file involved.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
I'm using a task sequence to only run a command. For example: regedit /s <file>.reg
I'm setting one up for the first time and I created the task, edited it, added the Run Command Line task, and then placed the above in the command line field.
Then I placed the .reg file on a network share and placed that path in the Start In: field.
Finally I advertised it to a collection with one workstation for as soon as possible and made it mandatory with WoL.
It didn't work until I abandoned the "Start In" field and created a package out of the reg file. So what is the purpose of the 'Start In' field if it isn't the working directory? I didn't change the location of the file, only made a package out of it and cleared the 'Start In' field.
So while I've figured out a way to do it, every reference I've found to the 'Start In' field in task sequences touts it as the working directory. Looking for any clarity in how Task Sequences used for Command Line tasks should be leveraged, especially if there's a file involved.
Thanks a ton!
Share this post
Link to post
Share on other sites