DSCResources/Grani_ScriptOnOSVersion/Grani_ScriptOnOSVersion.schema.mof

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

[ClassVersion("1.0.0.0"), FriendlyName("cScriptOnOSVersion")]
class Grani_ScriptOnOSVersion : OMI_BaseResource
{
    [Key, Description("Unique key.")] String Key;
    [Write, Description("
Set Script when run script.")] String SetScript;
    [Write, Description("
Test Script when run script.")] String TestScript;
    [Write, EmbeddedInstance("
MSFT_Credential"), Description("Action execute Credential. You can ignore it if run as SYSTEM.")] String Credential;
    [Required, Description("
Platfrom Name = OS Name.")] String ExecuteOnPlatform;
    [Required, Description("
.NET Version formatted string for OS.")] String ExecuteOnVersion;
    [Required, Description("
Specify version matching condition."), ValueMap{"LessThan","LessThanEqual","Equal","NotEqual","GreaterThan","GreaterThanEqual"}, Values{"LessThan","LessThanEqual","Equal","NotEqual","GreaterThan","GreaterThanEqual"}] String When;
    [Read, Description("
Ensure run on specified platform."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure;
};