Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created August 2, 2016 19:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save guitarrapc/17c0697243d0d48b1fbfe93eb20a59dc to your computer and use it in GitHub Desktop.
configuration FeatureNetCore
{
Import-DscResource -ModuleName PSDesiredStateConfiguration;
Node localhost
{
WindowsFeature NET-Framework-Core
{
Ensure = "Present"
Name = "NET-Framework-Core"
IncludeAllSubFeature = $false
LogPath = "C:\Logs\DSC\WindowsFeature\NET-Framework-Core.txt"
}
}
}
/*
@TargetNode='localhost'
@GeneratedBy=SYSTEM
@GenerationDate=07/31/2016 14:32:07
@GenerationHost=DSC
*/
instance of MSFT_RoleResource as $MSFT_RoleResource1ref
{
ResourceID = "[WindowsFeature]NET-Framework-Core::[FeatureNetCore]FeatureNetCore";
IncludeAllSubFeature = False;
Ensure = "Present";
SourceInfo = "::10::9::WindowsFeature";
Name = "NET-Framework-Core";
ModuleName = "PSDesiredStateConfiguration";
ModuleVersion = "1.0";
ConfigurationName = "SAMPLE";
};
instance of OMI_ConfigurationDocument
{
Version="2.0.0";
MinimumCompatibleVersion = "1.0.0";
CompatibleVersionAdditionalProperties= {"Omi_BaseResource:ConfigurationName"};
Author="SYSTEM";
GenerationDate="07/31/2016 14:32:07";
GenerationHost="DSC";
Name="SAMPLE";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment