Microsoft KB Archive/175470

= ActionListOn Items May Be Reset to off after Editing a Policy =

Article ID: 175470

Article Last Modified on 10/31/2006

-

APPLIES TO


 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Windows 95

-



This article was previously published under Q175470



SYMPTOMS
ActionListOn items in a policy file are reset to off when the policy file is opened for editing and then saved.



CAUSE
The policy template keywords ActionListOn and ActionListOff are used to specify an optional list of changes to the registry that are made in response to a control being in a certain state. For example, if a check box is the control, and it's selected, all entries specified in the ActionListOn section are set in the registry. If the check box is cleared, all entries in the ActionListOff are used.



RESOLUTION
A variable is required to store the state of the ActionList. One of the following keywords must be used in defining the registry key containing the actionlist: ValueName, or ListBox, or ComboBox. The following section of a Policy file contains just some of the ways to use each of the above keywords with the ActionList section.

CLASS USER

CATEGORY "Level 1"

POLICY "Policy One" KEYNAME SOFTWARE\Policies\1 VALUENAME "TestValue" ACTIONLISTON VALUENAME "ParameterOne"   VALUE NUMERIC 1 VALUENAME "ParameterTwo"   VALUE NUMERIC 2 END ACTIONLISTON ACTIONLISTOFF VALUENAME "ParameterOne"   VALUE NUMERIC -1 VALUENAME "ParameterTwo"   VALUE NUMERIC -2 END ACTIONLISTOFF END POLICY

POLICY "Policy Two" KEYNAME SOFTWARE\Policies\2 PART Test LISTBOX EXPLICITVALUE END PART ACTIONLISTON VALUENAME "ParameterThree"   VALUE NUMERIC 3 VALUENAME "ParameterFour"    VALUE NUMERIC 4 END ACTIONLISTON ACTIONLISTOFF VALUENAME "ParameterThree"   VALUE NUMERIC 30 VALUENAME "ParameterFour"    VALUE NUMERIC 40 END ACTIONLISTOFF END POLICY

POLICY "Policy Three" KEYNAME SOFTWARE\Policies\3 PART "ChBx" COMBOBOX SUGGESTIONS User PowerUser END SUGGESTIONS VALUENAME "Combo1" END PART ACTIONLISTON VALUENAME "ParameterFive"   VALUE NUMERIC 5 VALUENAME "ParameterSix"    VALUE NUMERIC 6 END ACTIONLISTON ACTIONLISTOFF VALUENAME "ParameterFive"   VALUE NUMERIC 50 VALUENAME "ParameterSix"    VALUE NUMERIC 60 END ACTIONLISTOFF

END POLICY END CATEGORY

Additional query words: ntregistry spe poledit adm common winnt windows

Keywords: KB175470

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.