DSC module to install and configure PostgreSQL on Windows

Minimum PowerShell version


Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PostgreSqlDsc

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


DSC Community


Copyright the DSC Community contributors. All rights reserved.



DesiredStateConfiguration DSC PostgreSQL


PostgreSqlInstall PostgreSqlScript PostgreSqlDatabase


This module has no dependencies.

Release Notes

## [1.0.2] - 2021-01-13

### Added

- Added PostgreSqlInstall resource
 - Install Postgres with specified features
- Added PostgreSqlScript resource
 - Run T-SQL Scripts against Postgres
- Added PostgreSqlDatabase resource
 - Add and remove database in PostgresSql

### Changed

- Removed CreateDatabase from PostgreSqlScript

### Removed

### Fixed

- Fixed issue with Invoke-Command returning errors during test and set.
- Fixed issue with creating a database where casing could be lost on the
database name.

Version History

Version Downloads Last updated
1.0.2 (current version) 171 1/13/2021
1.0.2-previe... 5 1/13/2021
1.0.1 16 12/17/2020
1.0.1-previe... 5 12/17/2020
1.0.0 25 11/3/2020