Created
September 15, 2015 15:59
-
-
Save dfinke/bbc9ed2fea7c66d3a24a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function GenerateDSC { | |
$WindowsFeature = Get-WindowsFeature | Where {$PSItem.installed -and $PSItem.name -match 'net-framework'} | % { | |
@" | |
WindowsFeature $($PSItem.name) { | |
Ensure = 'Present' | |
Name = "$($PSItem.name)" | |
} | |
"@ | |
} | |
@" | |
Configuration DotNetFrameWork{ | |
param(`$TargetMachine) | |
Node `$TargetMachine { | |
$WindowsFeature | |
} | |
} | |
"@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment