In this post, we learn about windows. in this article, we learn how to hide a partition in windows through using the command prompt. Step 1:- Go to command prompt using windows key+R. Step 2:- A new tab will be open on it. Then we type diskpart in it and press enter.