Files

42 lines
872 B
PowerShell

param
(
[Parameter(Mandatory = $true)]
[System.String]
$ConfigurationName
)
Configuration $ConfigurationName
{
param
(
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[System.String]
$Name,
[Parameter(Mandatory = $true)]
[ValidateSet('Present', 'Absent')]
[System.String]
$Ensure,
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[System.String]
$SourcePath,
[ValidateNotNullOrEmpty()]
[System.String]
$LogPath = (Join-Path -Path (Get-Location) -ChildPath 'WindowsPackageCabTestLog.txt')
)
Import-DscResource -ModuleName 'PSDscResources'
WindowsPackageCab WindowsPackageCab1
{
Name = $Name
Ensure = $Ensure
SourcePath = $SourcePath
LogPath = $LogPath
}
}