MOF File
When I ran this, it resolved all variables and compiled a human readable MOF file. A folder gets created called whatever the script name is (DscConfiguration). A MOF file gets created for each node and is saved in the script name directory. This is for the MOF files and any other supporting files which are created. I only have a single example for localhost.
/*
@TargetNode='localhost'
@GeneratedBy=administrator
@GenerationDate=12/01/2022 16:16:45
@GenerationHost=DC-1
*/
instance of MSFT_RoleResource as $MSFT_RoleResource1ref
{
ResourceID = "[WindowsFeature]MyFeatureInstance";
Ensure = "Present";
SourceInfo = "C:\\PowerShell\\wt4\\dsc1.ps1::10::9::WindowsFeature";
Name = "RSAT";
ModuleName = "PsDesiredStateConfiguration";
ModuleVersion = "1.0";
ConfigurationName = "DscConfiguration";
};
instance of MSFT_RoleResource as $MSFT_RoleResource2ref
{
ResourceID = "[WindowsFeature]My2ndFeatureInstance";
Ensure = "Present";
SourceInfo = "C:\\PowerShell\\wt4\\dsc1.ps1::16::9::WindowsFeature";
Name = "DNS";
ModuleName = "PsDesiredStateConfiguration";
ModuleVersion = "1.0";
ConfigurationName = "DscConfiguration";
};
instance of OMI_ConfigurationDocument
{
Version="2.0.0";
MinimumCompatibleVersion = "1.0.0";
CompatibleVersionAdditionalProperties= {"Omi_BaseResource:ConfigurationName"};
Author="administrator";
GenerationDate="12/01/2022 16:16:45";
GenerationHost="DC-1";
Name="DscConfiguration";
};
Last updated