Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal enabledelayedexpansion
- echo ----------------------------------------------------------------------------
- net session >nul 2>&1
- if %errorLevel% == 0 (
- if exist C:\Windows\perfc (
- echo Mar letezik a prefc
- ) else (
- echo Fajlok letrehozasa
- echo. 2>C:\Windows\perfc
- echo. 2>C:\Windows\perfc.dll
- echo. 2>C:\Windows\perfc.dat
- attrib +R C:\Windows\perfc
- attrib +R C:\Windows\perfc.dll
- attrib +R C:\Windows\perfc.dat
- )) else (
- echo Nem vagy rendszergazda.
- pause
- exit
- )
- echo ----------------------------------------------------------------------------
- SET UJSOR=^& echo.
- echo Hosts modositasa
- FIND /C /I "benkow.cc" %WINDIR%\system32\drivers\etc\hosts
- IF %ERRORLEVEL% NEQ 0 ECHO %UJSOR%^0.0.0.0 benkow.cc>>%WINDIR%\System32\drivers\etc\hosts
- FIND /C /I "185.165.29.78" %WINDIR%\system32\drivers\etc\hosts
- IF %ERRORLEVEL% NEQ 0 ECHO %UJSOR%^0.0.0.0 185.165.29.78>>%WINDIR%\System32\drivers\etc\hosts
- FIND /C /I "upd.me-doc.com.ua" %WINDIR%\system32\drivers\etc\hosts
- IF %ERRORLEVEL% NEQ 0 ECHO %UJSOR%^0.0.0.0 upd.me-doc.com.ua>>%WINDIR%\System32\drivers\etc\hosts
- FIND /C /I "95.141.115.108" %WINDIR%\system32\drivers\etc\hosts
- IF %ERRORLEVEL% NEQ 0 ECHO %UJSOR%^0.0.0.0 95.141.115.108>>%WINDIR%\System32\drivers\etc\hosts
- FIND /C /I "111.90.139.247" %WINDIR%\system32\drivers\etc\hosts
- IF %ERRORLEVEL% NEQ 0 ECHO %UJSOR%^0.0.0.0 111.90.139.247>>%WINDIR%\System32\drivers\etc\hosts
- FIND /C /I "84.200.16.242" %WINDIR%\system32\drivers\etc\hosts
- IF %ERRORLEVEL% NEQ 0 ECHO %UJSOR%^0.0.0.0 84.200.16.242>>%WINDIR%\System32\drivers\etc\hosts
- FIND /C /I "yadi.sk" %WINDIR%\system32\drivers\etc\hosts
- IF %ERRORLEVEL% NEQ 0 ECHO %UJSOR%^0.0.0.0 yadi.sk>>%WINDIR%\System32\drivers\etc\hosts
- FIND /C /I "french-cooking.com" %WINDIR%\system32\drivers\etc\hosts
- IF %ERRORLEVEL% NEQ 0 ECHO %UJSOR%^0.0.0.0 french-cooking.com>>%WINDIR%\System32\drivers\etc\hosts
- echo ----------------------------------------------------------------------------
- set /P SMBv1off=SMBv1 kikapcsolasa ['I/N']?
- if /I "%SMBv1off%" EQU "I" (
- ver | find "6.1."
- if !ERRORLEVEL! EQU 0 (
- sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi
- sc.exe config mrxsmb10 start= disabled
- reg add "HKCU\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v SMB1 /t REG_DWORD /d 0 /f
- )
- ver | find "6.3."
- if !ERRORLEVEL! EQU 0 (
- sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi
- sc.exe config mrxsmb10 start= disabled
- reg add "HKCU\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v SMB1 /t REG_DWORD /d 0 /f
- )
- ver | find "5.1."
- if !ERRORLEVEL! EQU 0 echo Windows XP - nincs mit tenni
- ver | find "10.0."
- if !ERRORLEVEL! EQU 0 DISM /online /disable-feature /featurename:SMB1Protocol
- )
- echo ----------------------------------------------------------------------------
- echo Vege
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement