Bug: Windows Server 2022 - Answer File (Unattend) Firewall Rule not set (0x1): Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
Zeile 1: Zeile 1:
[[Datei:01-server 2022-unattend firewall rule.png|right]]
+
[[Datei:01-unattend firewall rule.png|right]]
  
 
== Error ==
 
== Error ==

Version vom 11. Januar 2022, 17:47 Uhr

01-unattend firewall rule.png

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

  • Start the Windows Defender Firewall (mpssvc) before adding your Firewall Rules.

Example

...
<RunSynchronousCommand wcm:action="add">
	<Description>Start Windows Defender Firewall to prevent errors while adding Firewall-Rules</Description>
	<Order>1</Order>
	<Path>net start mpssvc</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>
...