Has anyone been able to use the 'Run Command Line' task sequence task and while specifying "RUN AS" credentials and get a PowerShell script to run?
I have been trying to get PowerShell scripts to run from the 'Run Command Line' task while specifying a "RUN AS" account for a while now with no success.
Here is the syntax I use in the task sequence step: Powershell.exe -Executionpolicy Bypass -File .\filename.ps1
Scripts seem to run fine when you don't specify a "RUN AS" account. Why would specifiny an account in the GUI break things? Anyone have thoughts?
- Edited by Tony Chirillo Friday, June 19, 2015 8:08 PM