`netsh encryption` commands are missing

Razvan Chisa 20 Reputation points
2025-07-16T20:53:10.2733333+00:00

I am trying to configure DNS over HTTPS in Windows 10 Pro. My current version is 22H2.

My screen does not match the following documentation: https://techcommunity.microsoft.com/blog/networkingblog/windows-insiders-gain-new-dns-over-https-controls/2494644

Instead of having separate configuration for DNS, I can only configure both IP and DNS. However, there is not option to enable DNS encryption, even if I use Cloudflare (1.1.1.1) for example.

I am trying to use the following command instead:

netsh dns add encryption <IP> <SECURE_DNS>

However, I get an error: The following command was not found: dns add encryption.

How do I enable DNS over HTTPS in Windows 10 and how to fix missing netsh encryption commands?

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing

Answer accepted by question author
Joseph Tran 4,095 Reputation points Independent Advisor
2025-07-17T13:11:15.5033333+00:00

Based on your information, I think you'r encountering the issue where:

  • You don’t see a “DNS encryption” option in the Windows 10 network settings UI.
  • The netsh dns add encryption command is not recognized — this command is only available in Windows 11 (21H2 and later) and Windows Insider Preview builds, not mainstream Windows 10 builds.

=> No, Windows 10 Pro 22H2 mainstream still does not support full GUI or netsh commands for DoH as of July 2025. Only Windows 11 (and certain insider builds of Windows 10 pre-2022) support native DoH configuration via netsh and the Settings UI.

But if you want to enable DoH on Windows 10 then I have some recommend options for you to try :

  1. Use a Third-party DoH Client

You can use a local proxy client to tunnel your DNS queries over DoH:

These apps allow DoH or DNSCrypt on any Windows version.

  1. Use a DoH-capable browser

Browsers like Chrome, Edge, and Firefox support DNS over HTTPS independent of the OS. You can configure Cloudflare or Google DoH directly in their settings:

  • Chrome: chrome://settings/security
  • Firefox: about:preferences#general → scroll to Network Settings → Enable DoH

And the reason why you're confusing with Microsoft Docs is because The Microsoft blog post refers to Windows Insider Preview features. This feature never made it to full Windows 10 general release builds.

And you can verify this by running this in CMD as AD :

netsh

and entering:

dns show encryption

Then it will return: The following command was not found: dns show encryption.

=> This confirms that you're not on a version of Windows that supports native DoH via netsh.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Joseph Tran 4,095 Reputation points Independent Advisor
    2025-07-17T13:11:21.0933333+00:00

    Based on your information, I think you'r encountering the issue where:

    • You don’t see a “DNS encryption” option in the Windows 10 network settings UI.
    • The netsh dns add encryption command is not recognized — this command is only available in Windows 11 (21H2 and later) and Windows Insider Preview builds, not mainstream Windows 10 builds.

    => No, Windows 10 Pro 22H2 mainstream still does not support full GUI or netsh commands for DoH as of July 2025. Only Windows 11 (and certain insider builds of Windows 10 pre-2022) support native DoH configuration via netsh and the Settings UI.

    But if you want to enable DoH on Windows 10 then I have some recommend options for you to try :

    1. Use a Third-party DoH Client

    You can use a local proxy client to tunnel your DNS queries over DoH:

    These apps allow DoH or DNSCrypt on any Windows version.

    1. Use a DoH-capable browser

    Browsers like Chrome, Edge, and Firefox support DNS over HTTPS independent of the OS. You can configure Cloudflare or Google DoH directly in their settings:

    • Chrome: chrome://settings/security
    • Firefox: about:preferences#general → scroll to Network Settings → Enable DoH

    And the reason why you're confusing with Microsoft Docs is because The Microsoft blog post refers to Windows Insider Preview features. This feature never made it to full Windows 10 general release builds.

    And you can verify this by running this in CMD as AD :

    netsh
    

    and entering:

    dns show encryption
    

    Then it will return: The following command was not found: dns show encryption.

    => This confirms that you're not on a version of Windows that supports native DoH via netsh.

    Was this answer helpful?

    0 comments No comments

Your answer

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