Solved

Problem with registry path when creating custom .adm file

Posted on 2006-07-10
3
530 Views
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:-


CLASS USER

CATEGORY !!ControlPanel
        CATEGORY !!Display

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

        END CATEGORY ;Display
END CATEGORY ;Desktop

[strings]
ControlPanel="Control Panel"
Display="Display"
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?

Tim



0
Comment
Question by:talltim
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
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.

Example:

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

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.

0
 

Author Comment

by:talltim
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
0
 

Author Comment

by:talltim
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 http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/management/gp/admtgp.mspx 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
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
words ending with 'cy' 6 63
most reliable laptop brand in 2016~ 8 109
Problem to refer to value 8 50
Problem to file 13 41
One of the biggest challenges facing freelancers is balancing multiple projects and deadlines. Organizational skills and time management are key to keeping up with projects and staying on track. Luckily, we’ve curated seven tools to help you focus o…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
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.

803 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