10 Ocak 2018 Çarşamba

Disable Java auto updater script




dim wsh
set wsh = createobject("WScript.Shell")
wsh.run("REG.EXE DELETE ""HKLM\SOFTWARE\JavaSoft\Java Update"" /f")
wsh.run("REG.EXE DELETE ""HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"" /v SunJavaUpdateSched /f")
wsh.run("REG.EXE DELETE ""HKLM\SOFTWARE\WOW6432Node\JavaSoft\Java Update"" /f")
wsh.run("REG.EXE DELETE ""HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run"" /v SunJavaUpdateSched /f")
set wsh = nothing

JAVA Direct connection to Internet without Proxy Batch






Windows 7-8-10


(
  (echo(deployment.proxy.type=0)
)>>"%userprofile%\AppData\LocalLow\Sun\Java\Deployment\deployment.properties"




Windows XP


(
  (echo(deployment.proxy.type=0)
)>>"%userprofile%\Application Data\Sun\Java\Deployment\deployment.properties"



Clear All Windows EventLog

You can apply the extension by rotating * .bat.


@echo off
FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V
IF (%adminTest%)==(Access) goto noAdmin
for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")
echo.
echo Event Logs have been cleared!
goto theEnd
:do_clear
echo clearing %1
wevtutil.exe cl %1
goto :eof
:noAdmin
echo You must run this script as an Administrator!
echo.
:theEnd