This article explains how to upgrade the bundled PostgreSQL database in ADManager Plus to the latest supported version in order to improve performance, enhance data security, and ensure compatibility with newer ADManager Plus builds. This is especially useful during version upgrades or when preparing the product for long-term stability in enterprise environments.
Ensure the ADManager Plus installation directory is excluded from antivirus scans.
Create a full backup of the installation folder or take a server snapshot before starting the upgrade process.
Step 1: Stop ADManager Plus
Go to Start > ADManager Plus > Stop ADManager Plus.
If ADManager Plus is running as a Windows service, stop it via Start > Run > services.msc > ManageEngine ADManager Plus > Stop.
If high availability is enabled, also stop the ManageEngineADManagerPlusPostgres service from the Services Console.
Step 2: Back up the database
Open Command Prompt as administrator.
Navigate to \<Installation_Dir>\ADManager Plus\bin and run backupDB.bat.
A backup folder will be created inside the installation directory containing your database backup (e.g., OfflineBackup_<timestamp>.ezip).
The backup file is protected using the CryptTag value from the customer-config.xml file found in the <conf> directory.
Step 3: Download and upgrade PostgreSQL v15.6
In the ADManager Plus installation directory, create a new folder named NewPgsql.
Move the downloaded PostgreSQL ZIP file into this NewPgsql folder.
Navigate to \<Installation_Dir>\ADManager Plus\bin and execute upgradePG.bat.
Step 4: Restart ADManager Plus
Launch the application via Start > ADManager Plus > Start ADManager Plus.
Step 1: Stop ADManager Plus
Go to Start > ADManager Plus > Stop ADManager Plus.
If running as a Windows service, stop it via Start > Run > services.msc > ManageEngine ADManager Plus > Stop.
Step 2: Back up the database
Open Command Prompt as administrator.
Navigate to \<Installation_Dir>\ADManager Plus\bin and run backupDB.bat.
A Backup folder will be created in the installation directory, containing the database backup (e.g., OfflineBackup_<timestamp>.ezip).
The backup file is password-protected using the CryptTag value, which can be found in the customer-config.xml file located in \<Installation_Dir>\ADManager Plus\conf.
Step 3: Copy configuration and data files
From your current installation directory, copy the following:
Archive, ES, and esdata folders.
customer-config.xml file from the conf folder.
Step 4: Prepare for reinstallation (if using the same server)
Navigate to C:\Program Files (x86)\InstallShield Installation Information
Rename the folder:
CC00BC3F-40AE-49A7-BA63-FE2F93D20585 to
CC00BC3F-40AE-49A7-BA63-FE2F93D20585_bak.
Go to C:\Program Files\ManageEngine (or your installation path) and rename the existing ADManager Plus folder to ADManager Plus_old.
Step 5: Reinstall the same build
Download the same ADManager Plus build version used previously.
Run the installer but do not start the application after setup. Uncheck Start ADManager Plus in console mode in the final step.
Step 6: Restore configuration and data files
Paste the previously copied Archive, ES, and esdata folders into the new installation directory.
Replace the new customer-config.xml with your original one.
Copy your backup file (e.g., OfflineBackup_<timestamp>.ezip) into the bin folder of the new installation.
Step 7: Restore the database
Open Command Prompt as administrator.
Navigate to \<Installation_Dir>\ADManager Plus\bin.
Run the following command:
restoreDB.bat <backup_file_name> -p
Example: restoreDB.bat OfflineBackup_20230215191814.ezip -p
When prompted, use the CryptTag value from your original customer-config.xml as the password (unless a different password was set in ADManager Plus, Admin > General Settings > Security and Privacy > Privacy Settings).
Step 8: Start ADManager Plus and apply your license
Launch the product using the Start menu or Service Manager.
Reapply your license file. Use the original file sent to your email from licensing@manageengine.com, or retrieve it from the old instance’s lib directory as AdventNetLicense.xml.
Step 1: Stop ADManager Plus and its database
Go to Start > All Programs > ADManager Plus > Stop ADManager Plus.
If ADManager Plus is installed as a Windows service, open Run > services.msc, find ManageEngine ADManager Plus, and click Stop.
To stop the database, navigate to \<Installation_Dir>\ADManager Plus\bin and run StopDB.bat.
Step 2: Back up the existing database
Go to \<Installation_Dir>\ADManager Plus\bin, right-click backupDB.bat, and select Run as administrator.
This will generate a backup in a folder named Backup located inside the installation directory (e.g., OfflineBackup_20230215191814.ezip).
Step 3: Copy configuration files
From your current installation directory, copy the following:
The Backup folder with the database backup (OfflineBackup_*.ezip)
Archive, ES, and esdata folders.
Step 4: Prepare for a fresh installation
In File Explorer, enable Hidden items (View > Show > Hidden items).
Navigate to C:\Program Files (x86)\InstallShield Installation Information and rename the folder CC00BC3F-40AE-49A7-BA63-FE2F93D20585 to CC00BC3F-40AE-49A7-BA63-FE2F93D20585_bak.
Rename your existing installation folder (e.g., ADManager Plus to ADManager Plus_old).
Step 5: Download and install the required build
Download the required ADManager Plus build version and install it on the same server.
After installation, launch the product once in console mode, then close it by right-clicking the system tray icon > Stop ADManager Plus.
Step 6: Paste configuration files
Paste the previously copied Archive, ES, and esdata folders into the new installation directory.
Place the backup file in \<New_Installation_Dir>\ADManager Plus\bin
Place the Archive, ES, and esdata folders in the root of the new installation directory
Step 7: Restore the database
Open Command Prompt as the ADManager Plus service account.
Navigate to the bin folder, cd <drive letter>:\<New_Installation_Dir>\ADManager Plus\bin
Run the restore command:
Example: restoreDB.bat OfflineBackup_20210116225934.ezip -p
Step 8: Reinstall ADManager Plus as a service
From the same Command Prompt window, run wrapper.exe -i ..\conf\wrapper.conf
Step 9: Start ADManager Plus
Open Run > services.msc
Locate ManageEngine ADManager Plus and click Start
Step 10: Apply the license and SSL certificate
Copy the license file AdventNetLicense.xml from the old instance’s bin\license folder. Apply it to the new instance.
If an SSL certificate was configured previously, reapply it using the SSL Certificate Tool.
Perform the upgrade in a test environment before applying it to the production server.
Retain the old instance until you’ve verified that the new setup works as expected.
Plan the upgrade during a scheduled maintenance window to reduce disruption.
Keep a record of each step for future troubleshooting or reference.