Recommendation for anyone still affected by this problem, no matter how your computer has behaved to up now. If you think your computer is already getting normal battery usage, there is no advantage to following these instructions.
Until I am sure that the Windows drivers aren't causing the problem this entire procedure should be done booting only into macOS (i.e. don't boot into Windows). I don't definitely know that the Windows' power management driver causes a problem, but I don't know it they doesn't. I understand that VMware runs under macOS, so that's fine.
- Plug in the power and make sure the computer shows the 'plugged-in' icon.
- Use the App Store to check that you're not being offered a macOS update. You should be running at least macOS 10.12.2. If a later update is available, install it, then check again. If you're part of the developer programme, you can use the version available to developers. If you're not, you can use the one available to everyone else. There is no difference between the two in regard to this problem.
- Reset the System Management Controller:
- Shut down
- Hold down the shift and control and option keys while pressing the power key to the right of the Touch Bar
- Release all keys, then press the power key again to boot the computer
- If the computer isn't already fully charged, allow the computer to top up the battery. You don't have to do this all in one go, just don't run the computer on battery power for longer than a minute until it shows 100%.
- Allow the battery to run all the way down. You don't have to do this all in one go, just refrain from plugging the computer in again until it hibernates of its own accord. You can do it quickly by running power-intensive apps, or slowly in your normal usage pattern, or any mixture of the two.
- Recharge the battery fully. You don't have to do this all in one go, just don't run the computer on battery power for longer than a minute or two until it shows 100%.
Return to using the computer as you would normally. You can now boot into Windows again if you want. After a day or so of allowing the computer to reassess its power curve you should find it has a reasonable battery life, in line with that advertised by Apple. If this is still not the case, please report it to Apple in the usual ways telling them that you have done the above procedure. Please note that nobody from Apple officially reads this list. Posting about a fault here does not report it to Apple.