Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active August 2, 2016 19:56
  • 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/74824d0f89db0254e45fc43c33b688d0 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"
PsDscRunAsCredential = $Node.Credential
}
}
}
/*
@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 = "2.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