Files
PowerShell-PSDscResources/Tests/Integration/MSFT_Archive_ValidateOnly.config.ps1
T
2017-02-22 16:50:19 -08:00

45 lines
800 B
PowerShell

param
(
[Parameter(Mandatory = $true)]
[String]
$ConfigurationName
)
Configuration $ConfigurationName
{
param
(
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String]
$Path,
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String]
$Destination,
[Parameter()]
[ValidateSet('Present', 'Absent')]
[String]
$Ensure = 'Present',
[Parameter()]
[Boolean]
$Validate = $false
)
Import-DscResource -ModuleName 'PSDscResources'
Node localhost
{
Archive Archive1
{
Path = $Path
Destination = $Destination
Ensure = $Ensure
Validate = $Validate
}
}
}