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:-
KEYNAME "Control Panel\Screen Saver.Slideshow"
PART "Path to folder used by screensaver" COMBOBOX
END POLICY ;MYPicsSet
END CATEGORY ;Display
END CATEGORY ;Desktop
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?