For a while i have my db running on a command window because im not figuring out how to run it as a windows service.
Since i have the zip file version downloaded. ho
Just run 'Command Prompt' as windows administrator and run the below command:
pg_ctl.exe register -N PostgreSQL -D "D:/Program Files/PostgreSQL/9.0.4/db_data"
You don't need to specify a User and Password, as previous answers have suggested.