Skip to content

Instantly share code, notes, and snippets.

@adgooroo
Created May 20, 2025 14:33
Show Gist options
  • Save adgooroo/bad21c97e530ce310704b8eb0827a1b4 to your computer and use it in GitHub Desktop.
Save adgooroo/bad21c97e530ce310704b8eb0827a1b4 to your computer and use it in GitHub Desktop.
Батник для автоматической установки Comss.one DoH в Windows 11
@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