1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Hiding drives in terminal services

Discussion in 'Legacy Windows' started by catsystems, 2004/05/11.

Thread Status:
Not open for further replies.
  1. 2004/05/11
    catsystems

    catsystems Inactive Thread Starter

    Joined:
    2002/04/12
    Messages:
    46
    Likes Received:
    0
    2000 server

    Hi there,

    We need to run a number of mapped dives for our TS clients but does anyone know how to hide the other drives when the client is browsing explorer.

    The GPE will only hide drives A,B,C and D however we need to hide drive E (a partition) and M (echange partition). All we want to see is R,S,T Etc..

    Thanks :confused:
     
  2. 2004/05/13
    catsystems

    catsystems Inactive Thread Starter

    Joined:
    2002/04/12
    Messages:
    46
    Likes Received:
    0
    O.K. after a lot of searching I eventually found it... I hope this helps someone else:- :)

    1> Find a file called system.adm file that is located in C:\Winnt\inf and make a backup Copy. Copy this file to a location to work on it.

    2> Open the File with Notepad.exe, and as it is a huge file, you need to Search for the word !!NoDrives

    3> This will bring you to the correct section of the system.adm file you want to modify. It will look like this. Example is in Blue

    POLICY !!NoDrives
    EXPLAIN !!NoDrives_Help
    PART !!NoDrivesDropdown DROPDOWNLIST NOSORT REQUIRED
    VALUENAME "NoDrives "
    ITEMLIST
    NAME !!ABOnly VALUE NUMERIC 3
    NAME !!COnly VALUE NUMERIC 4
    NAME !!DOnly VALUE NUMERIC 8
    NAME !!CEGOnly VALUE NUMERIC 84
    NAME !!ABConly VALUE NUMERIC 7
    NAME !!ABCDOnly VALUE NUMERIC 15
    NAME !!ALLDrives VALUE NUMERIC 67108863
    ;low 26 bits on (1 bit per drive)
    NAME !!RestNoDrives VALUE NUMERIC 0 (Default)
    END ITEMLIST
    END PART
    END POLICY

    4> You will notice that each Drive has a Hexidecimal number associated with it. For multiple drives these numbers are Added together. Eg. The Hexidecimal # for C: is 4. You need to find out the Hexidecimal value for the drive you want to hide. I have listed them all below:

    A = 1 N = 8192
    B = 2 O = 16384
    C = 4 P = 32768
    D = 8 Q = 65536
    E = 16 R = 131072
    F = 32 S = 262144
    G = 64 T = 524288
    H = 128 U = 1048576
    I = 256 V = 2097152
    J = 512 W = 4194304
    K = 1024 X = 8388608
    L = 2048 Y = 16777216
    M = 4096 Z = 33554432


    4> For more than one Drive you need to add them up. For example, if you wanted to Hide C: E: and G: the Value Numeric would be 84. Add the Drives to the section in the system.adm file using the Same Format as is already listed. This will give you these options when you Open Group Policy later on.

    5> Now you need to find the [strings] section of system.adm. It is usually at the end of the file but is large, so search for "ABOnly ". Here you need to add the String that you will see in Group Policy. Use the same format as below. Remember the name MUST match what you put up above. See Blue Example

    [strings]
    ABCDOnly= "Restrict A, B, C and D drives only "
    ABConly= "Restrict A, B and C drives only "
    ABOnly= "Restrict A and B drives only "
    ALLDrives= "Restrict all drives "
    COnly= "Restrict C drive only "
    DOnly= "Restrict D drive only "
    CEGOnly=â€Restrict C, E and G Drives onlyâ€
    RestNoDrives= "Do not restrict drives "


    6> Save the system.adm file. Now you need to copy to C:\Winnt\inf on ALL your W2K Domain Controllers and any Windows 2000 Professional machines that you use to modify Group Policies. Make Sure you have backed up the original system.adm before copying over it.

    7> Now Open up AD, and go a Group Policy Object. Go to Users|Administrative Templates|Windows Components|Windows Explorer and find the Policy that says "Hide these specified drives in My Computer" Define the Policy, and your added Drives should be available to hide in the Drop Down Box.
     

  3. to hide this advert.

  4. 2004/05/13
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    Whew!!!

    Thanks for that. Interesting stuff. They don't make it real easy, do they?
     
    Newt,
    #3
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.