Hi All, I am VERY new to Mac, and not sure if anyone will find this helpful or not...
I just bought my rMBP in September, and had the same 2 hour battery problem. My first trip to the Apple Store, they ran the terminal commands mentioned here and told me to totally drain the battery, recharge it and I should be good to go. I did exactly as instructed, but still had only two hours of battery life when I was on campus.
Again, I am very new to Mac, but I thought perhaps the fact that I have a NAS drive on my home network might be causing it to look for the drive when I was on campus. So after following their instructions and before heading out I made sure to unmount the network drives and also stopped my Box Sync. (like DropBox). Still, when on campus I had only two hours of life. At this point I had only had the rMBP for a couple of weeks.
After a call to tech support, again, I headed back to the Apple Store. Tech support told me that they would make a notation on my account for the store to just replace the battery. The store did not have a battery, so they replaced the rMBP with a brand new one. By this time I was taking a charger with me to campus [good thing] the new computer was down more than 50% in one hour!
Note, that I was NOT runing any programs that should drain the battery that fast! No video, games or anything of the sort. Only mail, Safari and Word, screen so dim it gives me a headache, no BlueTooth or any other battery drainers. I was still unmounting the NAS drive and closing Box Sync before leaving home. My TimeMachine backup is set to a USB drive that is connected to the NAS drive, but it is set to NOT run when on battery.
Finally, this last week I have been shutting the rMBP completely off before I leave home and powering it back on when I get to the campus. THIS WORKED! As long as I remember to turn it completely off for the short drive and power it back on once I arive on campus [open network] the battery life is good for the day, but if I forget to shut it down, I better have a power supply ready within two hours!
I just thought I would offer this suggestion as it worked for me. I have no idea why really, but I guess I can live with restarting every day. It has been like learning to use a computer all over again! I have been a PC user for years. My last Apple was in 1980! It didn't even have a hard drive LOL.