Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created December 6, 2014 20:32
Show Gist options
  • Save guitarrapc/8a1aaa87559a329ebd77 to your computer and use it in GitHub Desktop.
Save guitarrapc/8a1aaa87559a329ebd77 to your computer and use it in GitHub Desktop.
# Configuraion sample
Configuration WebServer
{
WindowsFeature IIS
{
Ensure = "Present"
Name = "Web-Server"
IncludeAllSubFeature = $false
LogPath = "C:\Logs\DSC\WindowsFeature\Web-Server.txt"
}
}
# MOF compiled from Configuration
instance of MSFT_RoleResource as $MSFT_RoleResource1ref
{
ResourceID = "[WindowsFeature]IIS::[WebServer]WebServer";
LogPath = "C:\\Logs\\DSC\\WindowsFeature\\Web-Server.txt";
IncludeAllSubFeature = False;
Ensure = "Present";
SourceInfo = "C:\\WebServer.ps1::3::5::WindowsFeature";
Name = "Web-Server";
ModuleName = "PSDesiredStateConfiguration";
ModuleVersion = "1.0";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment