Problem with registry path when creating custom .adm file

Posted on 2006-07-10
Last Modified: 2007-12-19
I am attempting to create a custom .adm file to control the folder used by the My Pictures Slideshow screensaver. My understanding is that it need to change the registry entry that gives the path to the folder. I have used Regshot to find out exactly which key gewts changed when I change the path from the default (HKEY_USERS\S-1-5-21-128323046-1898321161-1566985067-3370\Control Panel\Screen Saver.Slideshow\ImageDirectory: "C:\Documents and Settings\TestUser\Desktop" in my case) This key is only created if the path is changed from the default (C:\Documents and Settings\TestUser\My Documents\My Pictures).

The .adm file I have created is:-


CATEGORY !!ControlPanel
        CATEGORY !!Display

            POLICY !!MyPicsSet
                  KEYNAME "Control Panel\Screen Saver.Slideshow"
                  PART "Path to folder used by screensaver" COMBOBOX
                  VALUENAME "ImageDirectory"
                        "C:\WINDOWS\Corporate Desktop\Screensaver"
                        END SUGGESTIONS      
                  END PART
            EXPLAIN !!MyPicsSet_Explain
                   END POLICY ;MYPicsSet

        END CATEGORY ;Display

ControlPanel="Control Panel"
MyPicsSet="My Pictures Slideshow screensaver"
MyPicsSet_Explain="Custom Policy\n\nDefines the folder location used by the My Pictures Slideshow screensaver.\n\nThe My Pictures Slideshow screensaver cycles through all image files located in the folder specifed."

Now this policy won't display in the GPE. If I change the registry key path to "Software\Policies\Microsoft\Windows\Control Panel\Screen Saver.Slideshow" for example, the policy shows in the GPE and when assigned to a test user, creates the registry key. However as this is the wrong location it has no effect on the screensaver.

The problem, as far as I can see is that the key I need to change is located in HKEY_USERS\S-1-5-21-128323046-1898321161-1566985067-3370\ which I would imagine changes for every user. What do I need to do to get around this?


Question by:talltim
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

aurico earned 400 total points
ID: 17125459
There is a setting in GPE that will allow you to set the screen saver, time till the screen saver is activated and password protect the screen saver.  These are all located under  - User Configuration/Administrative Templates/Control Panel/Display

In the code above, you may want to move "END POLICY ;MYPicsSet" over so that when looking at the code (whether it is you or someone else) to troubleshoot easier.


POLICY !!MyPicsSet
                 KEYNAME "Control Panel\Screen Saver.Slideshow"
               PART "Path to folder used by screensaver" COMBOBOX
               VALUENAME "ImageDirectory"
                    "C:\WINDOWS\Corporate Desktop\Screensaver"
                    END SUGGESTIONS    
               END PART
          EXPLAIN !!MyPicsSet_Explain

In my experience in creating your own .adm files and implimenting them into GPE, that you will need to right click where you want to add the .adm file, such as Administrative Templetes.  Then click on Add/Remove templates.  Once the template has been added, in order to see the setting of the template you need to click on View, then on Filtering.  Then on the Filtering dialog box select "Filter by Requirements information" and deselect "Only show policy settings that can be fully managed".  Then click on the template you created and you will then be able to change the settings.


Author Comment

ID: 17144515
Sorry, been a bit snowed under with other work, I will have a look at your filtering suggestion when i get a chance

Author Comment

ID: 17174452
The line positioning is acually as you suggest in my ADM, it was a copy/paste error that made it show incorrectly in my post!

I have had a look at what you say about filtering, and yes, when I remove the tick from 'Show only policy settings that can be fully managed' my missing policy appears. It does however have a red mark next to it instead of blue.
Testing the configured policy shows that the correct path for the image folder appears in the screensaver properties. However it is still possible for a user to change this path (although it resets when they log on next time) and other settings within the screensaver. However =I can use the (built in) Hide screensaver tab policy to get round this problem.

For any future referers to this question this Microsoft document describes the difference between fully managed and 'preference' policies. My browser tell me I had looked at it before but I don't remember it!

I am going to give you the points for this. Thanks :-D

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
cone shaped white flowers (perhaps like easter lily..) 8 73
How to write an English digest paper 6 145
Partnership Agreement 2 43
Need definitions 2 16
This is a quick article, and by no means should you quit your job today or plan to feed your family of 5 on a business idea. Starting a business takes work. This article will only give you the basic skeleton of understanding. Going into business for…
I really like Experts Exchange but the text formatting tags are pretty basic. For example in an article I wrote I found that when I put a "[bullet]" tag in front of a list of items and a closing "[/bullet]" tag at the end I expected that each item i…
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
Where to go on the main page to find the job listings. How to apply to a job that you are interested in from the list that is featured on our Careers page.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question