Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Saturday, August 20, 2016 6:46 AM
hi dear Microsoft support team
i have one map drive in my computer
how do i hide the map drive with command line?
All replies (7)
Saturday, August 20, 2016 9:20 PM âś…Answered
Based on that GPO you can set that as a registry setting, so as a command that would be;
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoDrives /t REG_BINARY /d 04
Hides the C: drive. If explorer is open then explorer needs to be restarted for that to take affect.
Hide these specified drives in My Computer" in server 2012 has a description of working out the number used to specify what drives to hide;
NoDrives is the Microsoft page with information on that registry key.
Saturday, August 20, 2016 11:03 AM
You can do it by using the following method.
Start --> Run and type cmd and press Enter.
Type diskpart and press Enter.
DISKPART>list volume
DISKPART>select volume H (drive you want hide)
DISKPART>remove letter H
You can hide drives also with the Group Policy objects.
https://support.microsoft.com/en-us/kb/231289
Saturday, August 20, 2016 1:33 PM
Hi
TNX for your answer
i had test and try this solution many times ago, but it does not work because when you use remove letter command , the mapped drives are not available in volume list !
please help me to hide the map drive with command line
**
**
**
**
Saturday, August 20, 2016 1:41 PM | 1 vote
You can hide the drive using group policy.
Start the Microsoft Management Console. On the Console menu, click Add/Remove Snap-in.
Add the Group Policy snap-in for the default domain policy. To do this, click Browse when you are prompted to select a Group Policy Object (GPO). The default GPO is Local Computer. You can also add GPOs for other domain partitions (specifically, Organizational Units).
Open the following sections: User Configuration, Administrative Templates, Windows Components, and Windows Explorer.
Click Hide these specified drives in My Computer.
Click to select the Hide these specified drives in My Computer check box.
Click the appropriate option in the drop-down box.
Please refer the link.
https://support.microsoft.com/en-in/kb/231289
Saturday, August 20, 2016 7:56 PM
TNX for your answer SOUNDARRAJ RAMASAMY
But I just want to do this via the command line
please guide me
**
**
Saturday, August 20, 2016 10:59 PM
Let me know the reason to apply this in CMD.?
Friday, September 2, 2016 8:36 AM
We have not heard from you in a couple of days. Please post back at your convenience if we can assist further.
Please remember to mark the replies as an answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].