Disable Windows firewall on 2k19.

Doria 1,246 Reputation points
2020-08-11T15:56:52.393+00:00

Hi everyone!

I am trying to disable the firewall service on w2k19 but I get the following error message below. Why?
16968-untitled.png

Thanks.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,695 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sunny Qi 11,031 Reputation points Microsoft Vendor
    2020-08-12T03:07:32.023+00:00

    Hi,

    Thanks for DSPatrick's answer.

    Please make sure that you run cmd.exe as administrator to execute command "sc config MpsSvc start= disabled"

    If "Access is denied" error still occurred, may I know whether you want to disable Windows Defender Firewall or want to disable Windows Defender Firewall services?

    17083-image-2.jpg
    17084-image-1.jpg

    To disable Windows Defender Firewall as image 1:

    You can try DSPatrick's suggestion through Powershell with administrator privilege or you can execute the following command through cmd.exe with administrator privilege.

    Disable Guest or public networks:

    netsh firewall set opmode disable

    If your computer is a domain member you must to use this command to disable DOMAIN mode and Local mode:

    netsh firewall set opmode mode = DISABLE profile = ALL

    To disable Windows Defender Firewall services as image 2:

    Please open cmd.exe with administrator privilege and run the following command:

    reg add hklm\system\currentcontrolset\services\mpssvc /t reg_dword /v start /d 4 /f

    Hope my answer will help you!

    ---Please Accept as answer if the reply is helpful---

    Best Regards,
    Sunny

    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-08-12T17:41:24.367+00:00

    Yes
    Windows Defender Firewall (mpssvc)

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.