How to use diskpart cmd to set active partition in Windows 7

one partition must set active for the operating system to run during Windows 7 installation, not the system reserved partition nor other logical partition, but one primary partition, we can active that partition using diskpart command prompt, type list to list all the partitions and press enter on each command you see from the sreenshots

This guide also applies to Windows 8, Windows 8.1, Windows 10 and other Windows Server OS.