Created
May 20, 2025 14:33
-
-
Save adgooroo/bad21c97e530ce310704b8eb0827a1b4 to your computer and use it in GitHub Desktop.
Батник для автоматической установки Comss.one DoH в Windows 11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo Установка Comss DoH в системный реестр... | |
powershell -Command "Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name 'EnableAutoDoh' -Value 2 -Type DWord" | |
powershell -Command "New-Item -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers' -Force" | |
powershell -Command "New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers' -Name 'ComssDNS' -Value 'https://dns.comss.one/dns-query' -PropertyType String -Force" | |
echo Перезапуск службы Dnscache... | |
net stop dnscache >nul 2>&1 | |
net start dnscache >nul 2>&1 | |
echo Готово! | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment