| [Updated] Hide local drives |
|
|
| Written by Hans Straat, Thursday, 30 March 2006 | |
IntroductionThis howto will show you how you can hide local drives on a Terminal Server or Local workstation by editting the system.adm template. This can be helpfull if you want to deny users to see or even access local harddrives on a terminal server. What do we useTo calculate the drives I want to hide I used Dave’s Drive Calculator. To edit the system.adm I used Notepad.exe which can of course be found on every windows operating system. What are we gonna hideIn this howto we are going to hide the drives A,C and O drive. If you open dave’s drive calculator and fill in the drives and press calculate, you will see you get the number 16389 Edit the system.adm
Now we are going to edit the system.adm which is located in windows\inf directory. Note that the inf directory is a hidden directory!. After you opened the system.adm in notepad hit F3 and search for ABCONLY Now you get to the policy !!NoDrives Partial example from the system.adm (example 1) Example 1 After you edited both the !!NoDrives and !!NoViewOnDrive you need to browse to the [strings] section. Cause if you save the adm now and try to load it it will give you an error stating the string section ACOOnly is missing. As you can see I added the ACOOnly to the string section ACOonly="Restrict A, C and O drives only" Wil result as the example below. Import the edited system.adm
Now you can open gpedit.msc (the group policy editor) or GPMC (Group Policy Management Console) and at administrative templates choose add/remove template (requires right click) Now browse to the system.adm and acknowledge that you want to overwrite the system.adm Group Policy Editor Import templateConfirm that you want to overwrite the excisting system.adm file (make sure you have backupped the original system.adm file!!) Now you are able to select the A,C and O drive to hide on your server or of course workstation
Well this is all there is about hiding drives. You can also edit the system.adm to deny access to these calculated drives. This is mostly used in Terminal Server environments and not on local workstations but you can also implement it on workstations. Make sure you deny read access to local administrators then because once implemented also a local administrator on a workstation won't get access then! NOTE:These policy will not work if a user is allowed to use the command prompt or applications like Total Commander. This is caused by the fact that these programs don't use the windows shell. There is no workaround for this. For the lazy people :) on Petri.co is a tool that also generates the adm template for you. http://www.petri.co.il/gpdrivesoptions.htm |
| < Prev | Next > |
|---|

