1
次のDSCステートメントは、既存のWindowsファイアウォールルールを複製します。私は重複の代わりにそれを更新することをお勧めします。おかげDSCリソースでICMPを有効にするxFirewallで新しいルールが作成される
xFirewall EnableV4PingIn{
Name = 'File and Printer Sharing (Echo Request - ICMPv4-In)'
Group= 'File and Printer Sharing'
Protocol = 'ICMPv4'
Ensure='Present'
Enabled='True'
Direction='Inbound'
PsDscRunAsCredential = $DomainAdminCredential
}
xFirewall EnableV4PingOut{
Name = 'File and Printer Sharing (Echo Request - ICMPv4-Out)'
Group= 'File and Printer Sharing'
Protocol = 'ICMPv4'
Ensure='Present'
Enabled='True'
Direction='Outbound'
PsDscRunAsCredential = $DomainAdminCredential
}
xFirewall EnableV6PingIn{
Name = 'File and Printer Sharing (Echo Request - ICMPv6-In)'
Group= 'File and Printer Sharing'
Protocol = 'ICMPv6'
Ensure='Present'
Enabled='True'
Direction='Inbound'
PsDscRunAsCredential = $DomainAdminCredential
}
xFirewall EnableV6PingOut{
Name = 'File and Printer Sharing (Echo Request - ICMPv6-Out)'
Group= 'File and Printer Sharing'
Protocol = 'ICMPv6'
Ensure='Present'
Enabled='True'
Direction='Outbound'
PsDscRunAsCredential = $DomainAdminCredential
}
これでdupsを防ぐ方法を見つけましたか?私は同じ問題を抱えています... –