For windows postqresql service error, i just had to go back and replace posgresql.conf with the factory-default file and deleted C:\Program Files\PostgreSQL\XX\data\postmaster.pid file then restarted server and service started.
A few importand info
Postqresql port 5432 should not be used by different applications can be checked with the following command netstat -an | find "5432"
The user running the postgre service must be NETWORK_SERVICE and the password field must contain the postqre db password
Date 2024.12.26