1.Herhangi bir uygulamayı .bat uzantlı çalıştırma:
Masaüstünde Yeni>>>Yeni Metin Belgesi oluşturunuz.Şimdi bunu açın içine bir Windows uygulamasını sonu exe olarak yazınız.Sonra bu bu metin belgesini farklı kaydet komut yoramında herhangi bir isim olacak şekilde kayıt ediniz.
Örmek Windows Uygulaması:sndvol.exe
Bunu yazdıktan sonra sonu bat olacak şekilde mesela ses kontrol ayarı.bat şeklinde kayıt dein.Oluşacak yeni çift tıklatınız ve bakın ne oluyor....!
Bu yöntemi tüm windows bileşenlerine uygulayabilirsiniz.
2.Windows Olay Günlüklerinin Temizlenmesi:
Kod: Tümünü seç
@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 goto theEnd
:do_clear
echo clearing %1
wevtutil.exe cl %1
goto :eof
:noAdmin
exit
Kod: Tümünü seç
@echo off
net share c$ /d
net share d$ /d
net share f$ /d
net share g$ /d
net share h$ /d
net share e$ /d
net share admin$ /d
net share IPC$ /d
Kod: Tümünü seç
@echo off
c:
cd c:\windows\temp
del *.* /f/q/s
cd c:\windows\prefetch
del *.* /f/q/s
echo ışlem başarıyla tamamlandı sayın [BURAYA KULLANICI İSMİ YAZILACAK]
pause
Kod: Tümünü seç
@echo off
cd /d %~dp0
color 1F
setLocal EnableDelayedExpansion
if exist "%Windir%\Sysnative\sppsvc.exe" set SysPath=%Windir%\Sysnative
if exist "%Windir%\System32\sppsvc.exe" set SysPath=%Windir%\System32
echo Windows Status:
ver
cscript //nologo %SysPath%\slmgr.vbs /dli
cscript //nologo %SysPath%\slmgr.vbs /xpr
echo.
echo.
echo Office 2013 Status:
set office=
set installed=0
FOR /F "tokens=2*" %%a IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\Common\InstallRoot" /v "Path" 2^>nul') do (SET office=%%b)
if exist "%office%\OSPP.VBS" (
set installed=1
cd /d "%office%"
cscript //nologo ospp.vbs /dstatus
cd /d %~dp0
)
set office=
FOR /F "tokens=2*" %%a IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Common\InstallRoot" /v "Path" 2^>nul') do (SET office=%%b)
if exist "%office%\OSPP.VBS" (
set installed=1
cd /d "%office%"
cscript //nologo ospp.vbs /dstatus
cd /d %~dp0
)
if %installed%==0 echo Not installed
echo.
echo.
echo Office 2010 Status:
set office=
set installed=0
FOR /F "tokens=2*" %%a IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot" /v "Path" 2^>nul') do (SET office=%%b)
if exist "%office%\OSPP.VBS" (
set installed=1
cd /d "%office%"
cscript //nologo ospp.vbs /dstatus
cd /d %~dp0
)
set office=
FOR /F "tokens=2*" %%a IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Common\InstallRoot" /v "Path" 2^>nul') do (SET office=%%b)
if exist "%office%\OSPP.VBS" (
set installed=1
cd /d "%office%"
cscript //nologo ospp.vbs /dstatus
cd /d %~dp0
)
if %installed%==0 echo Not installed
echo.
pause
TRWE_2012
SAKARYA 2016