Wanna to hide whole drive completely with CMD, so there's no need of any software, group policy editor or registry trick. Follow these simple steps:
- Go to start>run>Type Diskpart
- Window will open, type "list volume" without quotes.
- Now select drive which you want to hide, suppose you wanna to hide drive F, for that type "select volume 4" (Volume 4 is correspond to drive letter F).
- Type "remove letter F"
- For accessing back, type "assign letter F".