Files
PowerShell-PSDscResources/Tests/Integration/MSFT_WindowsOptionalFeature.config.ps1
T
2016-10-07 21:07:38 -07:00

44 lines
921 B
PowerShell

param
(
[Parameter(Mandatory = $true)]
[String]
$ConfigurationName
)
Configuration $ConfigurationName
{
param
(
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String]
$Name,
[ValidateSet('Present', 'Absent')]
[ValidateNotNullOrEmpty()]
[String]
$Ensure = 'Present',
[ValidateNotNullOrEmpty()]
[String]
$LogPath = (Join-Path -Path (Get-Location) -ChildPath 'WOFTestLog.txt'),
[Boolean]
$RemoveFilesOnDisable = $false,
[Boolean]
$NoWindowsUpdateCheck = $true
)
Import-DscResource -ModuleName 'PSDscResources'
WindowsOptionalFeature WindowsOptionalFeature1
{
Name = $Name
Ensure = $Ensure
LogPath = $LogPath
NoWindowsUpdateCheck = $NoWindowsUpdateCheck
RemoveFilesOnDisable = $RemoveFilesOnDisable
}
}