Want to root your HTC 10? You will have to unlock the bootloader (which will wipe EVERYTHING on your phone), install TWRP recovery, then install a modified version of SuperSU. After that, you will have full root/full admin access to your HTC 10.
If you have backed up everything, then let’s start the process. You can use Windows, Mac, Linux/Ubuntu, or Chromebook to do this. (For Chromebook, you will need the ADB for Chrome)