Run PowerShell Command in Task Sequence
In the a Task Sequence you have the option to 'Run PowerShell Script' where you have to specify a package \ script name etc. Could we have 'Run PowerShell Command' this saves having to download the script and run it. For example at the moment I 'Run Command Line' and use 'powershell -command start-sleep 300'. It would be great if we could just run native powershell commands.
Thanks for all your suggestions and feedback, updating status to completed.
SCCM 1902 fast Ring released today
Kim Rinderknecht commented
This would be really helpfull!!
Paul Deasy commented
Any update on this one? Or do we continue to run command line with 'powershell.exe -command <powershell_command_here>'
Tim De Haan commented
This would be a huge advantage to utilize. I saw it at Hack-A-Thon 2016 and I too am surprised it has not made it to production. There are so many times I want to run 5 lines of code (which is not fun to write in a single command line argument) and end up having to write up a script and then distribute it. I would love to see this feature.
I believe this was a 2016 MMS Conference Hack-A-Thon item that was actually demonstrated. Cant believe this is not already done or has more support.