press Ctrl + Shift + Esc on your keyboard at the same time to launch Task Manager.
Go to the Services tab and look for mpssvc (Windows Defender Firewall). Make sure the service is running. If it is not, you should right-click it and choose Start.
Click File > Run new task, type powershell, check the box of Create this task with administrative privileges, and click OK.
Copy and paste the following command to the Windows PowerShell window and press Enter:
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}