Chosen Solution

As the title describes, the xbox one s powers on, then quickly powers off when the power button is pressed.

try replacing your fan and power supply.

I also have this issue just took the entire xbox apart and cleaned it nothing appears to be wrong with the fan as you can hear it click on but I do believe the power supply needs replaced. I am ordering one to see if it fixes the issue.