Did the in place upgrade repair fix the integrity violations found with sfc /scannow?
Did the in place upgrade repair alter anything related to hibernation and fast startup?
Does another user alter the ability to shutdown?
Check to see if you have the 2017 bios update:
HP Software and Driver Downloads for HP Printers, Laptops, Desktops and More | HP® Customer Support
Open administrative command prompt and type or copy and paste:
1) sfc /scannow
2) dism /online /cleanup-image /scanhealth
3) dism /online /cleanup-image /restorehealth
4) chkdsk /scan
5) When these have completed > right click on the top bar or title bar of the administrative command prompt box > left click on edit then select all > right click on the top bar again > left click on edit then copy > paste into the thread
6) net user test /add
7) this is a log collector that we use in the bsod forum and it will collect msinfo32, dxdiag, mini dumps, eventvwr. etc. Please post the zip into the thread:
BSOD - Posting Instructions - Windows 10 Forums
8) powercfg.exe /hibernate off
9) download and install:
HP PC Hardware Diagnostics | HP® Official Site
9) shutdown /s /t 00
10) Power on the computer and repetitively click the F2 key
11) Run the HP UEFI diagnostics that were just downloaded and installed.
Use the loop until failure mode.
Start the testing in the evening and plan to run overnight.
The number of loops will be related to the size of the drive and the amount of RAM.
The testing is designed to abort if there is a failure. So a battery problem will prevent the testing of the other hardware components.
In the AM if the test is still looping that is a good sign.
Press the keyboard escape key if there are at least 2 loops.
Then view the UEFI logs to confirm the pass.
Report the results into the thread.