我正在尝试使用unattend.xml
用于 Windows Server 2012 R2 设置的文件运行 PowerShell 脚本。我指定要在专门通过阶段执行的 PowerShell 文件。请检查以下无人值守的 PowerShell 脚本。
powershell.exe -executionpolicy bypass -noprofile -File "\\192.168.3.5\deploy\demo.ps1"
每次当我使用无人参与的文件运行设置时,它都会跳过 PowerShell 执行并出现错误。我检查了无人看管的日志,发现下面的 powershell 执行错误代码。
进程返回退出代码 0xfffd0000
我可以完全控制网络共享路径。对此有任何想法吗?