HIDE Drive Letter From the My Computer VIA PowerShell
$Explorer_Key = “HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer”
New-itemProperty –Path $Explorer_Key -Name “NoDrives” –PropertyType “DWord” –Value 8 –Force
New-itemProperty –Path $Explorer_Key –Name “NoViewOnDrive” –PropertyType “DWord” –Value 8 -Force
Run Mention Command and Restart the Machine or End Task Explorer
For D Drive - 8
For C Drive- 4
For All Drive - 67108863
For None - 0
very usefull thanks
ReplyDelete