I'm trying to run a PowerShell script using unattend.xml
file for Windows Server 2012 R2 setup. I specified that PowerShell file to execute at specialise pass stage. Please check the below unattended script for PowerShell.
powershell.exe -executionpolicy bypass -noprofile -File "\\192.168.3.5\deploy\demo.ps1"
Everytime when I ran the setup using the unattended file it skips the PowerShell execution with the error. I have checked unattended log and found the below error code for the powershell execution.
Process returned with exit code 0xfffd0000
I have full control to the network shared path. Any idea on this?