DSCResources/DSC_xPackageResource/DSC_xPackageResource.schema.mof

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
[ClassVersion("1.0.0"),FriendlyName("xPackage")]
class DSC_xPackageResource : OMI_BaseResource
{
  [Write,ValueMap{"Present", "Absent"},Values{"Present", "Absent"}] string Ensure;
  [Key] string Name;
  [Required] string Path;
  [Key] string ProductId;
  [Write] string Arguments;
  [Write,EmbeddedInstance("MSFT_Credential")] string Credential;
  [Write] uint32 ReturnCode[];
  [Write] string LogPath;
  [Read] string PackageDescription;
  [Read] string Publisher;
  [Read] string InstalledOn;
  [Read] uint32 Size;
  [Read] string Version;
  [Read] boolean Installed;
  [Write] string FileHash;
  [Write,ValueMap{"SHA1","SHA256","SHA384","SHA512","MD5","RIPEMD160"},Values{"SHA1","SHA256","SHA384","SHA512","MD5","RIPEMD160"}] string HashAlgorithm;
  [Write] string SignerSubject;
  [Write] string SignerThumbprint;
  [Write] string ServerCertificateValidationCallback;
  [Write,ValueMap{"LocalMachine","CurrentUser"},Values{"LocalMachine","CurrentUser"}] string InstalledCheckRegHive;
  [Write] string InstalledCheckRegKey;
  [Write] string InstalledCheckRegValueName;
  [Write] string InstalledCheckRegValueData;
  [Write] boolean CreateCheckRegValue;
  [Write, Description("Ignore a pending reboot if requested by package installation.")] Boolean IgnoreReboot;
  [Write,EmbeddedInstance("MSFT_Credential")] string RunAsCredential;
};