You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On windows2k12/WMF5.0 I found an issue.
When I create a firewall rule with DSC and later on change the profile settings xFirewall throws an error:
Parameter set cannot be resolved using the specified named parameters.
+ CategoryInfo : InvalidArgument: (:) [], CimException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Set-NetFirewallRule
+ PSComputerName : localhost
Hi @RamonPalmieri - thanks for reporting this. I actually think this is actually the same cause as this issue: #130
We haven't come up with a perfect solution to this problem yet. However, if you remove the Group parameter from your xFirewall configuration they should work fine.
It is the call to Set-NetFirewallRule that causes the problem in this case. The problem is that the Set-NetFirewallRule cmdlet only supports the Group parameter as an identifier for the rule(s) that needs to be changed. But in our case we want to update the Group value for the rules matching the Name parameter.
I raised this as a UserVoice issue some time ago, but I doubt it's a high priority one.
Hi,
On windows2k12/WMF5.0 I found an issue.
When I create a firewall rule with DSC and later on change the profile settings xFirewall throws an error:
Parameter set cannot be resolved using the specified named parameters.
+ CategoryInfo : InvalidArgument: (:) [], CimException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Set-NetFirewallRule
+ PSComputerName : localhost
Original resource setting:
xFirewall AllowRDP
{
Name = 'Remote Desktop Admin Connections'
DisplayName = 'Remote Desktop Admin Connections'
Group = "DSC - Remote Desktop"
Ensure = 'Present'
Enabled = 'True'
Action = 'Allow'
Profile = 'Domain', 'Private', 'Public'
}
Changed resource settings:
xFirewall AllowRDP
{
Name = 'Remote Desktop Admin Connections'
DisplayName = 'Remote Desktop Admin Connections'
Group = "DSC - Remote Desktop"
Ensure = 'Present'
Enabled = 'True'
Action = 'Allow'
Profile = 'Domain', 'Private'
}
This error also occurs when changing profile settings by GUI and letting DSC correct it.
Greetings,
Ramon.
The text was updated successfully, but these errors were encountered: