windows - How to execute a PostGre exe file with silent mode? -



windows - How to execute a PostGre exe file with silent mode? -

hy,

i install postgresql 9.1 on windows server 2012. want used powershell script. jdk executables file, utilize start-process "myfile" -argumentlist "/s" -wait argument \s don't work postgre executables file.

have thought ?

you can utilize install-postgres powershell module, it's on technet gallery.

the install-postgresql powershell module following:

creates local windows user postgresql use downloads postgresql installer provided enterprisedb installs postgres unattended using supplied parameters sets postgres windows user owner of postgres files , folders sets postgres windows service run under postgres local user creates pgpass.conf file in appdata copies configuration files info directory opens supplied port postgresql utilize in windows firewall

usage

import-module install-postgres install-postgres -user "postgres" -password "changeme!"

windows powershell executable postgresql-9.1 windows-server-2012

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -