我正在尝试使用Powershell DSC安装setup.exe。
我尝试传递/ s / v / q
之类的不同参数配置ElevateServerInstall { Import-DscResource -ModuleName xPSDesiredStateConfiguration Import-DscResource -Module xWebAdministration
Node ElevateServerSetUp
{ Archive ElevateServerSetUp
{
Path = "C:\elevate\ELV999-AGS\64-bit Package\Elevate_PS90_server_x64\Elevate_PS90server_x64.zip"
Destination = "C:\SetupFile"
Ensure = "Present"
Force = $True
}
Package ElevateServerInstall
{
Name = "ELEVATE_PS 9.0 Server(x64)"
DependsOn = "[Archive]ElevateServerSetUp"
Ensure = "present"
ProductId = ""
Path = "C:\SetupFile\Elevate_PS90server_x64\setup.exe"
Arguments = "/quiet"
}
}
}
我收到以下错误:预期返回代码-2147213312。配置可能不正确。