DSCResources/DSR_ReplaceText/DSR_ReplaceText.schema.mof

[ClassVersion("1.0.0.0"), FriendlyName("ReplaceText")]
class DSR_ReplaceText : OMI_BaseResource
{
  [Key, Description("The path to the text file to replace the string in.")] String Path;
  [Key, Description("The RegEx string to use to search the text file.")] String Search;
  [Write, Description("Specifies the value type to use as the replacement string. Defaults to 'Text'."),ValueMap{"Text", "Secret"},Values{"Text", "Secret"}] String Type;
  [Write, Description("The text to replace the text identified by the RegEx. Only used when Type is set to 'Text'.")] String Text;
  [write, Description("The secret text to replace the text identified by the RegEx. Only used when Type is set to 'Secret'."),EmbeddedInstance("MSFT_Credential")] String Secret;
};