Results 1 to 2 of 2

Thread: Restrict drive in access GPO - This may be of some use to someone

  1. #1
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Restrict drive in access GPO - This may be of some use to someone

    This is something I wrote up a while ago, It looks as if MS never change the basics in their OS so its still valid! I am setting up a GPO and it needs to hide Drives A: to drives E: The option in the GPO are A:, A: B:, A: B: C:, C:, none or all. So, I can't hide E: F: etc without messing around for ages. It was the same in Windows 2000 Server and it was an issue then as well!

    anyway after a few hours messing I found that here is how to do it.....

    Drive letter and corresponding code

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

    If you want to block multiple drives, add the values of those drives together.

    eg.

    Block A & B = 3
    Block A, B, C & D = 15

    Here is the script for the new adm file.

    Code:
    CLASS USER
    
    CATEGORY  !!HideDrives
           
    KEYNAME Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
        POLICY !!HideDrives 
        
        PART !!HideDrivesDropdown    DROPDOWNLIST NOSORT REQUIRED
        VALUENAME "NoDrives"
        ITEMLIST
            NAME !!ABOnly           VALUE NUMERIC    3
            NAME !!COnly            VALUE NUMERIC    4
            NAME !!DOnly            VALUE NUMERIC    8
            NAME !!ABConly          VALUE NUMERIC    7
            NAME !!ABCDOnly         VALUE NUMERIC    15
            NAME !!HideACE          VALUE NUMERIC    21
            NAME !!HideCE           VALUE NUMERIC    20
            NAME !!HideCDE          VALUE NUMERIC    28
            NAME !!HideACEF         VALUE NUMERIC    53
            NAME !!HideCEF          VALUE NUMERIC    52
            NAME !!ALLDrives        VALUE NUMERIC    67108863 DEFAULT 
            NAME !!RestNoDrives     VALUE NUMERIC    0
        END ITEMLIST
        END PART            
        END POLICY
    
          
    
    END CATEGORY;HideDrives
    
    [strings]
    Blank=" "
    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"
    HideACEF="Restrict A,C,E and F drives only"
    HideCDE="Restrict C, D and E drives only"
    HideACE="Restrict A, C and E drives only"
    HideCE="Restrict C and E drives only"
    HideCEF="Restrict C, E and F drives only"
    HideDrives="Hide Drives"
    HideDrivesDropdown="Hide Drives Selection"
    MoveProfile="Move Profiles"
    MoveProfileDropdown="Move User Profile Location"
    MOVEPROFILETOD="Move Profile to D Drive"
    RestNoDrives="Restore Drives"
    Save the file as hidedrives.adm and save it in your server's Windows Inf folder. Then in gpedit.msc right click Administrative Templates, select Add Template and select your hidedrives.adm file. This will add it to the GPO and allow you to block the drives on that work station or Terminal Service Server in this case.

    Just though maybe this may be of some use to someone in the future.
    □ΞVΞ□

  2. #2
    Registered+
    Join Date
    Jul 2003
    Location
    Brighton
    Posts
    61
    Thanks
    0
    Thanked
    0 times in 0 posts
    • Sp00n's system
      • Motherboard:
      • Asus P8Z68V PRO
      • CPU:
      • Intel i3 2120 @ Stock
      • Memory:
      • 2x 2gb PC12800
      • Storage:
      • 1 x 120Gb aData SSD, WD RAID 0 - Boot, 2 x 500GB WD - 1 x 1.5TB WD
      • Graphics card(s):
      • Nvidia GTX 260
      • PSU:
      • 500watt thermaltake TR2
      • Case:
      • Antec 300
      • Operating System:
      • Windows 7 64bit
      • Monitor(s):
      • Samsung T200
      • Internet:
      • 50mbit Virgin Media / 2mbit Plus.net ADSL

    Re: Restrict drive in access GPO - This may be of some use to someone

    I know this thread is ancient now but I've just googled for a solution to this and this thread came up, I had to say thank you!

    So... Thank you!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. hard drive becomes fixed?
    By Totem in forum Help! Quick Relief From Tech Headaches
    Replies: 5
    Last Post: 14-03-2008, 08:26 AM
  2. Assigning drive letters on reinstall
    By silentvoice in forum PC Hardware and Components
    Replies: 3
    Last Post: 18-02-2008, 10:00 PM
  3. nForce2 and Western Digital EIDE drive
    By Zak33 in forum PC Hardware and Components
    Replies: 15
    Last Post: 14-08-2007, 09:20 AM
  4. Replacing HDD on Dell Dimension & doing a Drive Image-Not Working?
    By X10 in forum Help! Quick Relief From Tech Headaches
    Replies: 2
    Last Post: 07-08-2006, 06:18 PM
  5. Hard drive Problems.
    By Clstrphbc_donut in forum PC Hardware and Components
    Replies: 5
    Last Post: 27-07-2006, 04:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •