mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 02:14:40 +01:00
Inline the Windows NCSI CMD script
parent
1dcd8bedb0
commit
110d9ebb05
1 changed files with 18 additions and 6 deletions
|
@ -249,13 +249,25 @@ Exactly the «Network Location Awareness» (NlaSvc) service connects to `svchost
|
|||
|
||||
## CMD : Windows NCSI - Semi-Automatic Reconfiguration
|
||||
|
||||
**1) Commandlet + HELP in one bundle (have a look at the code inside)**
|
||||
```cmd
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "EnableActiveProbing" /t REG_DWORD /d 0 /f >nul 2>&1
|
||||
|
||||
**2) Setting GPO (manually) and Registry tweaks (auto)**
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "ActiveDnsProbeContent" /t REG_SZ /d "127.0.0.1" /f >nul 2>&1
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "ActiveDnsProbeContentV6" /t REG_SZ /d "::1" /f >nul 2>&1
|
||||
|
||||
**3) Disabling unnecessary services. WARNING: ONLY FOR LOCAL USER ACCOUNTS!**
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "ActiveDnsProbeHost" /t REG_SZ /d "localhost" /f >nul 2>&1
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "ActiveDnsProbeHostV6" /t REG_SZ /d "localhost" /f >nul 2>&1
|
||||
|
||||
- Feel free to comment the correspondent part of the cmd-scenario, if you need this.
|
||||
- Disabling additional services is not included (see instruction above).
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "ActiveWebProbeContent" /t REG_SZ /d "" /f >nul 2>&1
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "ActiveWebProbeContentV6" /t REG_SZ /d "" /f >nul 2>&1
|
||||
|
||||
### Download: [Network - Status Indicator (NCSI).cmd](https://anonfile.com/bct0k7m0od/Network_Status_Indicator_NCSI_zip)
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "ActiveWebProbeHost" /t REG_SZ /d "localhost.localdomain" /f >nul 2>&1
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "ActiveWebProbeHostV6" /t REG_SZ /d "localhost.localdomain" /f >nul 2>&1
|
||||
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "ActiveWebProbePath" /t REG_SZ /d "" /f >nul 2>&1
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" /v "ActiveWebProbePathV6" /t REG_SZ /d "" /f >nul 2>&1
|
||||
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\wlidsvc" /v "Start" /t REG_DWORD /d 4 /f >nul 2>&1
|
||||
|
||||
gpupdate
|
||||
```
|
Loading…
Add table
Reference in a new issue