My Scenario:
i have a Windows 2008 R2 server with MDT 6.2.5019.0.
i have 2 deployment shares on this server: Windows 7 x64 Enterprise & Windows 8.1 Enterprise x64
in both my base images (win 7 & win 8.1) i updated to Powershell 4.0
Using task sequence in MDT i try to Run Powershell scripts that i created in "STATE RESTORE">"CUSTOM TASKS" folder using "ADD>GENERAL>RUN POWERSHELL SCRIPT". On the Windows 7 x64 deployment share all my Powershell scripts- task sequences run fine but for my Windows 8.1 i get the following error:
ZTIERROR: Non-zero return code by ZTIPowershell, rc = 10904
i have no clue whats going on.
here are some steps troubleshooting steps I've taken:
1. updated the deployment share>Completely regenerate the boot images
2. Added computer to workgroup instead of Domain (Prevent any GPO's from affecting)
any help would be appreciated