我使用postgresql-9.4.4-3-windows-x64
使用此命令进行无人参与的Invoke-Command
安装:
postgresql-9.4.4-3-windows-x64.exe --unattendedmodeui minimal --mode unattended --superpassword "password" --servicename "postgreSQL"
--servicepassword "password" --serverport 5432
但问题是视觉工作室GUI正在弹出。如果没有人登录到服务器,则安装失败。
答案 0 :(得分:0)
我已对参数进行了更改:
自:
--unattendedmodeui minimal
要:
--unattendedmodeui none