You need to enter your system specs so we know what you are using. Did you install Windows with only the OS drive connected to the board, or other drives attached too?
Is that restart happening when the OS installation has just finished, or after the OS installation, and you loaded other drivers, or what? What SATA mode did you use during the installation?
You should go into the UEFI/BIOS, and in the Advanced screen, disable Intel Rapid Start, and Intel Smart Connect. Did you use default BIOS settings for the CPU and memory when this restart happens, or did you OC the CPU or your memory?