We help IT Professionals succeed at work.

Loading custom adm comes up blank

353 Views
Last Modified: 2010-04-18
Long story short, I am trying to create a custom adm to allow me to restrict drive access and visibility to the "M" and "N" drives, which isn't supported in the normal systems.adm.   I created a custom adm and added the necessary lines in order to allow an option in the drop down box to restrict access to M and N.  Upon loading the adm file, I get no error, but the folder added to the tree on the left is blank, I have two settings on the right that are blank, and all text you would normally see under them is gone.  

This is the first adm I am creating, so I may be missing something easy, but I don't know it.  Here is the adm text.

      CATEGORY !!driverestrict
            #if version >= 4
            
            #endif


            KEYNAME "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"

            POLICY !!NoDrives
                  #if version >= 4
                  SUPPORTED !!SUPPORTED_Win2k
                  #endif

                  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 !!ABConly          VALUE NUMERIC       7
                              NAME !!ABCDOnly         VALUE NUMERIC      15
                              NAME !!ALLDrives        VALUE NUMERIC      67108863 DEFAULT
                              ; low 26 bits on (1 bit per drive)
                              NAME !!RestNoDrives     VALUE NUMERIC      0
                              NAME !!NMOnly           VALUE NUMERIC      3072
                        END ITEMLIST
                  END PART
            END POLICY

            POLICY !!NoViewOnDrive
                  #if version >= 4
                  SUPPORTED !!SUPPORTED_Win2k
                  #endif

                  EXPLAIN !!NoViewOnDrive_Help
                  PART !!NoDrivesDropdown      DROPDOWNLIST NOSORT REQUIRED
                        VALUENAME "NoViewOnDrive"
                        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 !!ALLDrives        VALUE NUMERIC      67108863 DEFAULT
                              ; low 26 bits on (1 bit per drive)
                              NAME !!RestNoDrives     VALUE NUMERIC      0
                              NAME !!NMOnly           VALUE NUMERIC      3072
                        END ITEMLIST
                  END PART
            END POLICY

      END CATEGORY ;; driverestrict

[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"
RestNoDrives="Do not restrict drives"
NMOnly="Restrict M and N drives only"
drivesrestrict="Restrict Drives"
NoDrives="Restrict Drives"
supported_win2k="Supported by Win2k"
Nodrives_help="Help for No Drives"
NoDrivesDropdown="Pick one of the following combinations"
NoViewOnDrive_Help="No View Help"
NoViewOnDrive="Prevent access to drives from My Computer"
driverestrict="Restrict Drive Access"
Comment
Watch Question

Login to your group policy management and edit the GPO that you have added the above file to.

Rigthclick on Administrative Templates --> View --> Filtering

Then uncheck the box called: "Only show policy settings that can be fully managed"

This should show your policies...

Author

Commented:
That is not is, I am afraid.  I checked that earlier, sorry I forgot to mention it, but it is still blank.

Author

Commented:
Figured it out, in case anyone else runs into this problem.  If you remove systems.adm from the loaded list, it suddenly starts working.  I'm not sure why, but it does.

Author

Commented:
Okay, kind of figured out.  It is loading just fine, though it says it can't find descriptions.  I am able to load up the settings correctly and the option is in the drop down.  When I link it, however, and run gpresult or the wizard for RSoP, the policy isn't referenced at all, not in applied, nor denied.  It also loads under the computer settings and I'm not sure why, as the copied portion was from User settings, although I didn't specify one or the other in the file, as you can see above.
CERTIFIED EXPERT
Most Valuable Expert 2019
Most Valuable Expert 2018

Commented:
These are policies that can be fully managed.
What you're missing is the class of the settings; the "Hide Drives" policies are user settings, so that whole thing is of "CLASS USER" (unlike CATEGORY or POLICY, CLASS doesn't need to be closed):

CLASS USER
      CATEGORY !!driverestrict
            KEYNAME "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
            POLICY !!NoDrives
                  #if version >= 4
                  SUPPORTED !!SUPPORTED_Win2k
                  #endif
...

Open in new window

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.