Test-TargetResource in MSFT_RegistryResource Missing Force Parameter - by Steve Murawski

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


5
0
Sign in
to vote
ID 792354 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 7/2/2013 12:56:50 PM
Access Restriction Public

Description

The parameter sets for Test-TargetResource and Set-TargetResource do not match for MSFT_RegistryResource.

For Set-TargetResource you have:
[parameter(Mandatory = $true)]				
		[ValidateNotNullOrEmpty()]
		[System.String]
		$Key,
		
		[ValidateNotNull()]
		[System.String]
		$ValueName = [String]::Empty,
        
        [ValidateSet("Present", "Absent")]
		[System.String]
		$Ensure = "Present",

        [ValidateNotNull()]
		[System.String[]]
		$ValueData = @(),

        [ValidateSet("String", "Binary", "DWord", "QWord", "MultiString", "ExpandString")]
		[System.String]
		$ValueType = "String",
        
		[System.Boolean]
		$Hex = $false,
        
		[System.Boolean]
		$Force = $false

For Test-TargetResource you have:

[parameter(Mandatory = $true)]				
		[ValidateNotNullOrEmpty()]
		[System.String]
		$Key,
		
		[ValidateNotNull()]
		[System.String]
		$ValueName = [String]::Empty,
        
        [ValidateSet("Present", "Absent")]
		[System.String]
		$Ensure = "Present",

        [ValidateNotNull()]
		[System.String[]]
		$ValueData = @(),

        [ValidateSet("String", "Binary", "DWord", "QWord", "MultiString", "ExpandString")]
		[System.String]
		$ValueType = "String",
        
		[System.Boolean]
		$Hex = $false
Sign in to post a comment.