Diagnosing PC awake problems:
Command (Win key and x> Command prompt (Admin)
copy and paste:
powercfg -devicequery wake_armed
Then hit your Enter key
Also try,
powercfg /lastwake
And,
powercfg /waketimers
Solutions, depending on what is waking:
Run (Windows key+r) powercfg.cpl
then go to Change plan settings>Advanced settings>Allow wake timers
Set to disable.
Run ncpa.cpl
then hit Ethernet (Network Adapter)>Properties>Configure>Power Management>Deselect "Allow this device to wake up computer. Under Advanced tab -> Select Wake on Magic Packet>set value to disable. Use the same method to disable Wake on Pattern Match.
Run devmgmt.msc
then go to Universal Serial Bus Controllers> USB Root Hub>Properties>Power...