Microsoft Windows NT 4.0 User Manual

Page 59

Advertising
background image

Microsoft Windows NT Server White Paper

51

type REG_EXPAND_SZ, for example:

PART !!MyPolicy EDITTEXT EXPANDABLETEXT

VALUENAME ValueToBeChanged

END PART

MAXLEN— Specifies the maximum length of text, for example:

PART !!MyPolicy EDITTEXT

VALUENAME ValueToBeChanged

MAXLEN 4

END PART

DEFAULT— Specifies the default value for text or numeric data,

for example:

PART !!MyPolicy EDITTEXT

DEFAULT !!MySampleText

VALUENAME ValueToBeChanged

END PART

or

PART !!MyPolicy NUMERIC

DEFAULT 5

VALUENAME ValueToBeChanged

END PART

MIN and MAX— These specify the lowest and highest valid values

respectively, for example:

PART !!MyPolicy NUMERIC

MIN 100 MAX 999 DEFAULT 55

VALUENAME ValueToBeChanged

END PART

Use the keywords VALUEOFF and VALUEON to write specific values

based on the state of the option, for example:

POLICY !!MyPolicy

KEYNAME ....

VALUENAME ValueToBeChanged

VALUEON “Turned On” VALUEOFF “Turned Off”

END POLICY

or

POLICY !!MyPolicy

KEYNAME ....

VALUENAME ValueToBeChanged

VALUEON 5 VALUEOFF 10

END POLICY

8. Save and test your file.

Note that if you modify an .adm file while the System Policy Editor applica-

tion is running, you will need to reload the file. From the Options menu, select

Policy Template, and press OK. This reloads the structure, and your new

entries will be available. (You do not need to perform this step if you modify a

file before starting the System Policy Editor; the reload is done automatically

Advertising