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?
One Year Later: I believe the error to be related to the "location" or Domain of the account being used. Depending on how you reference the account in your script, you may need to add the domain prefix or suffix to set the location context for the account referenced in the script DOM\username or username@domain.local
User contributions licensed under CC BY-SA 3.0