I have a task sequence that installs Windows 7 from the original .wim file and then applies a language pack and finally installs some applications and updates.
I included in the task sequence, some command line commands.
As I did not want to have to create a batch file and distribute it, I combined the multiple commands into a one-liner.
For example, changing the power options:
Essentially, the multiple commands are combined into a one-liner using the ampersand '&'
I made sure to test the command lines on a Windows machine to make sure they are valid commands - which they are.
However, the task sequence does not seem to run them at all.
I have other command lines in the same task sequence (single command) - they all run perfectly.
Why is it the one-liner multi-commands don't run? Does SCCM TS not support '&'?
Another strange thing I have noticed is that after the OS is deployed with SCCM and I log in using my domain account, the environment variables all do not work (I checked System properties - they are all there).
But if I open command prompt, and type 'powershell' or 'taskmgr' for example, it tells me '*****' is not recognized as an internal or external command, operable program or batch file.
Does anyone know why this happens and how can I fix it?
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.
Hi,
I have a task sequence that installs Windows 7 from the original .wim file and then applies a language pack and finally installs some applications and updates.
I included in the task sequence, some command line commands.
As I did not want to have to create a batch file and distribute it, I combined the multiple commands into a one-liner.
For example, changing the power options:
Essentially, the multiple commands are combined into a one-liner using the ampersand '&'
I made sure to test the command lines on a Windows machine to make sure they are valid commands - which they are.
However, the task sequence does not seem to run them at all.
I have other command lines in the same task sequence (single command) - they all run perfectly.
Why is it the one-liner multi-commands don't run? Does SCCM TS not support '&'?
Another strange thing I have noticed is that after the OS is deployed with SCCM and I log in using my domain account, the environment variables all do not work (I checked System properties - they are all there).
But if I open command prompt, and type 'powershell' or 'taskmgr' for example, it tells me '*****' is not recognized as an internal or external command, operable program or batch file.
Does anyone know why this happens and how can I fix it?
Thank you.
Share this post
Link to post
Share on other sites