[NT] ADM Template Policy: Keyname doet moeilijk

Pagina: 1
Acties:

  • cyspoz
  • Registratie: September 2001
  • Laatst online: 25-02 12:28

cyspoz

Relaxed, het zijn maar 1 en 0

Topicstarter
Ik ben momenteel bezig een ADM Template Policy te maken voor Wincue. Wincue heeft standaard de instellingen van de gebruiker op het volgende adres in de registry staan:

HKEY_CURRENT_USER\Software\WinCue

Dus ik ben begonnen met een ADM template en heb gewoon eerst maar eens één value geprobeerd te namen. Echter wordt die niet weergegeven in mijn PolicyEditor. Na even uitzoeken bleek het probleem te zitten in de Keyname.
code:
1
2
3
4
5
6
7
8
9
10
11
12
CLASS USER
CATEGORY "Wincue plugin for Winamp"
    CATEGORY "Global"
        POLICY "First Time"
            KEYNAME "Software\WinCue"
            EXPLAIN "If disabled, wincue won't show first time configuration message"
            VALUENAME "first_time"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY
    END CATEGORY
END CATEGORY

Zoals het er nu uit ziet zou het allemaal goed moeten zijn. De mappen duiken wel op in de PolicyEditor maar het instelbare item niet. Zodra ik de Keyname verander in "Software\Policy\WinCue" werkt het wel. Terwijl die locatie helemaal niet bestaat. Wat doe ik verkeerd, mag ik met ADM templates niet in "Software\WinCue" wijzigingen doorvoeren of is het iets anders?

  • elevator
  • Registratie: December 2001
  • Niet online

elevator

Officieel moto fan :)

Je hebt in de Policy Editor ergens een optie staan die "Legacy" (tatooing, etc) policies weergeeft - die moet je aanzetten om jouw policy te zien :)

Ik heb even geen policy editor bij de hand dus minder vaag wordt ik niet :)

  • cyspoz
  • Registratie: September 2001
  • Laatst online: 25-02 12:28

cyspoz

Relaxed, het zijn maar 1 en 0

Topicstarter
Ok heb het gevonden en snap het ook. Mijn instellingen zijn wel blijvend in de registry. Dat is meteen ook handig om te weten dat ik misschien ooit een tegenwaarde moet maken om het goed te krijgen. Het tatooing effect dus.
Je krijgt deze alleen zichtbaar door onder menu view de filtering opties goed te zetten. Nadat ik die goed heb gezet werkt het wel en worden de opties zichtbaar met een rood icoontje. Waarschijnlijk omdat ze het mooie tatooing effect hebben.

Ik vind overigens dat Microsoft weinig informatie vrij geeft omtrent ADM files maken, terwijl iedereen roept dat dit DE manier is om registry instellingen in je netwerk te versprijden. Bedankt in iedergeval, ik kan weer mooi vooruit.

  • mutsje
  • Registratie: September 2000
  • Laatst online: 24-03 15:48

mutsje

Certified Prutser

in windows 2000 en 2003 moet je volgende uitzetten om de policies te zien weet je dat ook gelijk.

open gedit.msc > view > Filtering > (deselecteer) Only show policy settings that can be fully managed.

  • cyspoz
  • Registratie: September 2001
  • Laatst online: 25-02 12:28

cyspoz

Relaxed, het zijn maar 1 en 0

Topicstarter
Nog even een post voor het naslagwerk:

Voor de mensen die het ooit graag zelf willen gebruiken of nog verder willen aanpassen (zitten misschien links en rechts nog wat typo's in) de volledig source code zoals ik hem momenteel gebruik voor de Wincue plugin. Het gaat daarbij om versie 1.40.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
CLASS USER
CATEGORY "Wincue plugin for Winamp"

    POLICY "First Time"
        KEYNAME "Software\WinCue"
        EXPLAIN "If disabled, Wincue won't show first time configuration message."
        VALUENAME "first_time"
            VALUEON  NUMERIC 1
            VALUEOFF NUMERIC 0
    END POLICY

    POLICY "Enabled"
        KEYNAME "Software\WinCue"
        EXPLAIN "If enabled, Wincue will be enabled."
        VALUENAME "enabled"
            VALUEON  NUMERIC 1
            VALUEOFF NUMERIC 0
    END POLICY

    CATEGORY "General"

        POLICY "Remember Window State"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled Wincue will remember it's windowstate."
            VALUENAME "rememberWindowState"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Remember Playlist"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled Wincue will remember the playlist."
            VALUENAME "rememberPlaylist"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Show Recent Files in File menu"
            KEYNAME "Software\WinCue"
            EXPLAIN "Is enabled, Wincue will show recent used files in the file menu."
            VALUENAME "showRecentFiles"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Show tray iceon"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled an icon of Wincue will be shown in the system tray."
            VALUENAME "useTray"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Show Cue Box on startup"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, the cue box fill be shown on startup of Wincue."
            VALUENAME "cue_box_on_startup"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Check for new version on startup"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will checke for a new version on startup."
            VALUENAME "autoCheckVersion"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Include file paths in search"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled Wincue will include file paths during searching."
            VALUENAME "searchDir"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Delay Search"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled a delay in ms can be configuredthe to let Wincue wait before searching."

            PART "Enable/Disable Delay Search" CHECKBOX
                VALUENAME "delaySearch"
                    VALUEON  NUMERIC 1
                    VALUEOFF NUMERIC 0
            END PART

            PART "Delay Search Value" NUMERIC
                VALUENAME "searchDelay"
                    MIN 1
                    MAX 65535
            END PART
        END POLICY

    END CATEGORY

    CATEGORY "Display"

        POLICY "Dim title bar when inactive"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, the title bar will be dimmed when screen is inactive."
            VALUENAME "dimTitle"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Show number of tracks in title bar"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, the number of tracks in the archive is shown on top of the screen."
            VALUENAME "showNumFiles"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Show search results in title bar"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, the number of search results is shown on top of the screen."
            VALUENAME "showNumMatches"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Show filename in title bar"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled the filename is shown on top of the screen."
            VALUENAME "showFileName"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Hide Cue, Goto & Start buttons"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, the Cue, Goto & Start buttons are nog shown on the screen."
            VALUENAME "hideButtons"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Show track numbers"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, all tracks in the list will be prefixed with a number."
            VALUENAME "showNumbers"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Show tooltips"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, tooltips will be shown."
            VALUENAME "show_tooltips"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Show track lengths."
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, the trakc lengths will be shown at the end of a track name in the list. This will take some time to show on first load since al track lengths must be checked."
            VALUENAME "show_length"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

    END CATEGORY

    CATEGORY "Winamp"

        POLICY "Infiltrate Winamp menu"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will infiltrate into the Winamp menu."
            VALUENAME "changeMenu"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Steal current skin from Winamp"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will steal the current skin from Winamp."
            VALUENAME "stealSkin"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Set focus on Winamp window at startup"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Winamp will get the focus on startup."
            VALUENAME "focus_on_winamp"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Copy playlist on startup"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will copy the playlist on startup."
            VALUENAME "auto_copy_playlist"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Clear playlist on exit"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will clear the playlist on exit."
            VALUENAME "clear_playlist_on_exit"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Save playlist every X minutes"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will save the playlist every X minutes."

            PART "Enable" CHECKBOX
                VALUENAME "backupPlaylist"
                    VALUEON  NUMERIC 1
                    VALUEOFF NUMERIC 0
            END PART
            
            PART "Interval" NUMERIC
                VALUENAME "backupInterval"
                    MIN 1
                    MAX 60
            END PART
        END POLICY

        POLICY "Automatically clean up playlist when it reaches X played entries"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will clienup the playlist when it reaches X played items."

            PART "Enable/Disable playlist cleanup" CHECKBOX
                VALUENAME "auto_cleanup_playlist"
                    VALUEON  NUMERIC 1
                    VALUEOFF NUMERIC 0
            END PART
            
            PART "Number of played items" NUMERIC
                VALUENAME "cleanup_playlist_limit"
                    MIN 1
                    MAX 1000
            END PART
        END POLICY

        POLICY "Refuse to cue new songs if more than X entries left in playlist"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will refuse to add any new song if there are more then X left to be played."

            PART "Enable/Disable cure refuse" CHECKBOX
                VALUENAME "refuse_cue"
                    VALUEON  NUMERIC 1
                    VALUEOFF NUMERIC 0
            END PART            

            PART "Number of items to play" NUMERIC
                VALUENAME "refuse_cue_limit"
                    MIN 1
                    MAX 1000
            END PART
        END POLICY

    END CATEGORY
    
    CATEGORY "Titles"

        POLICY "Read extended file info"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will read extended file info."
            VALUENAME "read_file_info"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Read ID3 tags"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will read ID3 tags. This can take some time on big archives on the first time."
            VALUENAME "useID3"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Guess track info from path and filename"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will gues the track information based on the information fromn the file path and filename."
            VALUENAME "guessNames"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Convert underscore to space"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will convert underscores in the filename to spaces."
            VALUENAME "convertUnderscores"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Convert %20 to space"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will convert all %20 in the filename to spaces."
            VALUENAME "convert20h"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Remoce redundant spaces"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will remove redundant spaces in the filename."
            VALUENAME "trimSpaces"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Tile Formatting"
            KEYNAME "Software\WinCue"
            EXPLAIN "This can be used to format the titles shown in the list. For more information see the wincue documentation."
            
            PART "String format (default)"
                EDITTEXT
                VALUENAME "titleFormat"
                    MAXLEN 50
                    DEFAULT "%7"
            END PART
            
            PART "String format (with ID3 tag found)"
                EDITTEXT
                VALUENAME "id3TitleFormat"
                    MAXLEN 50
                    DEFAULT "%1 - %2"
            END PART
            
        END POLICY

    END CATEGORY
    
    CATEGORY "AutoCue"

        POLICY "Enable AutoCue"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, AutoCue will make Wincue automatically cue random tracks to the playlist when the playlist is about to become empty. this can be useful to prevent music from stopping even if you forget to cue new tracks all the time."
            VALUENAME "autoCue"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY
    
    END CATEGORY
    
    CATEGORY "Media Libary"

        POLICY "Always load Media Library on startup"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will load the media library on startup."
            VALUENAME "alwaysMediaLibrary"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Sort Media Library"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will sort the media library"
            VALUENAME "sortMediaLibrary"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Sort on Title."
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will sort the library on Title."
            VALUENAME "mediaLibrarySorting"
                VALUEON  NUMERIC 0
                VALUEOFF NUMERIC 1
        END POLICY

        POLICY "Cache Media Library"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will cache the media library."
            VALUENAME "cache_media_library"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Reverse Sorting"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, Wincue will sort the list in reverse order."
            VALUENAME "reverseSorting"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Extensions"
            KEYNAME "Software\WinCue"
            EXPLAIN "This are the extensions that Wincue will load into the media library."

            PART "Extensions"

                EDITTEXT
                VALUENAME "extensions"
                    MAXLEN 50
                    DEFAULT "mp3"
            END PART

        END POLICY

        POLICY "Media Library Directories"
            KEYNAME "Software\WinCue"
            EXPLAIN "Here you can configure the directories you wan't Wincue to load."

            PART "Media Library Path 1"
                EDITTEXT
                VALUENAME "libEntry1"
                    MAXLEN 255
                    DEFAULT "D:\\muziek"
            END PART
        END POLICY

    END CATEGORY
    
    CATEGORY "DelayPlay"
    
        POLICY "Disable DelayPlay feature"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, DelayPlay will be disabled."
            VALUENAME "disableDelayPlay"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Confirm exit while in DelayPlay mode"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, an confirmation is needed while in delay play mode."
            VALUENAME "confirmExit"
                VALUEON  NUMERIC 1
                VALUEOFF NUMERIC 0
        END POLICY

        POLICY "Delay Value"
            KEYNAME "Software\WinCue"
            EXPLAIN "If enabled, "

            PART "Delay Value" NUMERIC
                VALUENAME "delay"
                    MIN 1
                    MAX 100
            END PART
        END POLICY

    END CATEGORY

END CATEGORY