Diagnostics check for hosts youtube entries
This commit is contained in:
parent
dc861c36ec
commit
0cbe689724
1 changed files with 11 additions and 0 deletions
11
service.bat
11
service.bat
|
|
@ -549,6 +549,17 @@ if !dohfound!==0 (
|
|||
)
|
||||
echo:
|
||||
|
||||
:: Hosts file check
|
||||
set "hostsFile=%SystemRoot%\System32\drivers\etc\hosts"
|
||||
if exist "%hostsFile%" (
|
||||
set "yt_found=0"
|
||||
>nul 2>&1 findstr /I "youtube.com" "%hostsFile%" && set "yt_found=1"
|
||||
>nul 2>&1 findstr /I "yotou.be" "%hostsFile%" && set "yt_found=1"
|
||||
if !yt_found!==1 (
|
||||
call :PrintYellow "[?] Your hosts file contains entries for youtube.com or yotou.be. This may cause problems with YouTube access"
|
||||
)
|
||||
)
|
||||
|
||||
:: WinDivert conflict
|
||||
tasklist /FI "IMAGENAME eq winws.exe" | find /I "winws.exe" > nul
|
||||
set "winws_running=!errorlevel!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue