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

Here're the screenshots guide on how to make partition active in Windows 7, the test environment is Windows 7 32-Bit Edition, of course, it also works on the 64-bit edition, the final screenshot we attached in Window 10 64 bit Edition. Click each picture to enlarge and you can use arrow button to go through next or previous pic.

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