Bug: Windows Server 2022 - Answer File (Unattend) Firewall Rule not set (0x1): Unterschied zwischen den Versionen
Aus Wiki-WebPerfect
Admin (Diskussion | Beiträge) K |
Admin (Diskussion | Beiträge) K |
||
Zeile 7: | Zeile 7: | ||
== Cause == | == Cause == | ||
− | '' | + | ''Most likely, this is because Windows Defender Firewall (mpssvc) is not running at the time you set the rule.'' |
Version vom 11. Januar 2022, 17:05 Uhr
Inhaltsverzeichnis
Error
In the File C:\Windows\Panther\UnattendGC\setupact.log:
[SETUPUGC.EXE] Process returned with exit code 0x1.
Cause
Most likely, this is because Windows Defender Firewall (mpssvc) is not running at the time you set the rule.
Workaround
- Define the first Windows Firewall Rule in the Answer File (Unattend) twice. In the picture above you can see the first Firewall Rule failed but the second is working!
Example
<RunSynchronousCommand wcm:action="add"> <Description>ADD FW ICMP</Description> <Order>1</Order> <Path>netsh advfirewall firewall add rule profile=any name="All ICMP V4" dir=in action=allow protocol=icmpv4</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Description>ADD FW ICMP</Description> <Order>2</Order> <Path>netsh advfirewall firewall add rule profile=any name="All ICMP V4" dir=in action=allow protocol=icmpv4</Path> </RunSynchronousCommand>