I recently tried to run a PowerShell script during a task sequence (using the MDT 2012 "run Powershell script" step). I was getting error 10904 from ZTIpowershell. I Googled that exact error string and wasn't finding much. Unfortunately the MDT documentation only shows 10901, 10902, and 10903 in the "Interpret Windows PowerShell Script Return Codes" section. I figured I did something wrong so I went on to waste more time than I'm willing to admit troubleshooting it. Then I edited my Google search a bit and found these posts:
http://social.technet.microsoft.com/Forums/en-US/mdt/thread/74540e70-d2c7-4b98-a0ef-6e9bc0ad9830 http://social.technet.microsoft.com/Forums/en-US/mdt/thread/68be52c4-3531-4ded-bfb6-b6930bfb2951 I went back and denied the GPO that sets my Powershell settings for the domain and sure enough all my test Powershell scripts started working. I thought MDT's PowerShell host was supposed to side step the Powershell security issues so we wouldn't have to worry about this stuff? -Brian
