Slide 10
Slide 10 text
Custom Resource MOF
[version("1.0.0"), FriendlyName("HostsFile")]
class HostsFile : MSFT_BaseResourceConfiguration
{
[Key] string hostName;
[Key] string ipAddress;
[write,ValueMap {"Present",
"Absent"},Values{"Present", "Absent"}] string Ensure;
};
• [Key] for unique
attributes; become
mandatory
• [Write] for
attributes for which
a value can be
specified
• [Read] for readonly
attributes
• ValueMap defines
the possible values
• Naming:
classname.schema.
mof
HostsFile.Schema.Mof