Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Configuration ParametersExample
- {
- param(
- [Parameter(Mandatory=$true)]
- [string] $FeatureName,
- [Parameter(Mandatory=$true)]
- [boolean] $IsPresent
- )
- $EnsureString = 'Present'
- if($IsPresent -eq $false)
- {
- $EnsureString = 'Absent'
- }
- Node 'sample'
- {
- WindowsFeature ($FeatureName + 'Feature')
- {
- Ensure = $EnsureString
- Name = $FeatureName
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement