Çözüldü .bat dosyası güvenilir mi?

Bu konu çözüldü olarak işaretlenmiştir. Çözülmediğini düşünüyorsanız konuyu rapor edebilirsiniz.

swxlvr

Hectopat
Katılım
5 Ağustos 2021
Mesajlar
625
Çözümler
4
Merhaba, iyi sosyaller. Microsoft Edge'i kaldırmak için internetten indirdiğim bu .bat dosyası güvenilir midir?

@Echo off

:: Creator: Dave Kirkwood
:: Modified:By Britec
:: Created: 24/09/2020
:: Updated: 21/09/2022
::

net session >nul 2>&1
if Not %ERRORLEVEL%==0 (
Echo This batch must be run with Administrator privileges
Pause
Exit
)

:: First Stop Microsoft Edge Task
taskkill /F /IM msedge.exe >nul 2>&1
taskkill /F /IM MicrosoftEdgeUpdate.exe >nul 2>&1
taskkill /F /IM msedgewebview2.exe >nul 2>&1

CD %HOMEDRIVE%%HOMEPATH%\Desktop
echo %CD%


REM ************ Main process *****************
Set tProgramFiles=%ProgramFiles(x86)%
If /i "%processor_architecture%"=="x86" Set tProgramFiles=%ProgramFiles%
If "%tProgramFiles%"=="" Set tProgramFiles=%ProgramFiles%

echo * Removing Microsoft Edge *
call :killdir C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe
call :killdir "%tProgramFiles%\Microsoft\Edge"
call :killdir "%tProgramFiles%\Microsoft\EdgeUpdate"
call :killdir "%tProgramFiles%\Microsoft\EdgeCore"
call :killdir "%tProgramFiles%\Microsoft\EdgeWebView"
echo * Modifying registry *
call :editreg
echo * Removing shortcuts *
call :delshortcut "C:\Users\Public\Desktop\Microsoft Edge.lnk"
call :delshortcut "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk"
call :delshortcut "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Microsoft Edge.lnk"
echo Finished!
pause
exit

REM ************ KillDir: Take ownership and remove a directory *****************

:killdir
echo|set /p=Removing dir %1
if exist %1 (
takeown /a /r /d Y /f %1 > NUL
icacls %1 /grant administrators:f /t > NUL
rd /s /q %1 > NUL
if exist %1 (
echo ...Failed.
) else (
echo ...Deleted.
)
) else (
echo ...does not exist.
)
exit /B 0

REM ************ Edit registry to add do not update Edge key *****************

:editreg
echo|set /p=Editting registry
echo Windows Registry Editor Version 5.00 > RemoveEdge.reg
echo. >> RemoveEdge.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate] >> RemoveEdge.reg
echo "DoNotUpdateToEdgeWithChromium"=dword:00000001 >> RemoveEdge.reg
echo. >> RemoveEdge.reg
echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{9459C573-B17A-45AE-9F64-1857B5D58CEE}] >> RemoveEdge.reg

regedit /s RemoveEdge.reg
del RemoveEdge.reg
echo ...done.
exit /B 0

:: Delete Microsoft Edge Folders
rmdir /s /q "%tProgramFiles%\Microsoft\Edge"
rmdir /s /q "%tProgramFiles%\Microsoft\EdgeCore"
rmdir /s /q "%tProgramFiles%\Microsoft\EdgeWebView"
rmdir /s /q "%tProgramFiles%\Microsoft\Temp"

:: Delete Edge Icons, from all users
for /f "delims=" %%a in ('dir /b "C:\Users"') do (
del /S /Q "C:\Users\%%a\Desktop\edge.lnk" >nul 2>&1
del /S /Q "C:\Users\%%a\Desktop\Microsoft Edge.lnk" >nul 2>&1)

:: Delete additional files
if exist "C:\Windows\System32\MicrosoftEdgeCP.exe" (
for /f "delims=" %%a in ('dir /b "C:\Windows\System32\MicrosoftEdge*"') do (
takeown /f "C:\Windows\System32\%%a" > NUL 2>&1
icacls "C:\Windows\System32\%%a" /inheritance:e /grant "%UserName%OI)(CI)F" /T /C > NUL 2>&1
del /S /Q "C:\Windows\System32\%%a" > NUL 2>&1))

:delshortcut
echo|set /p=Removing shortcut %1
if exist %1 (
del %1
echo ...done.
) else (
echo ...does not exist.
)
exit /B 0
 
Çözüm
Bence de hocam. Güvenilir fakat kullanabileceğiniz daha etkin bir yöntem için buraya bakabilirsiniz.
Hocam bir Virustotal sonucu atar mısınız?
 
Bence de hocam. Güvenilir fakat kullanabileceğiniz daha etkin bir yöntem için buraya bakabilirsiniz.
 
Son düzenleyen: Moderatör:
Çözüm
Teşekkürler hocam, çözüm olarak reportladım.
 
Bu siteyi kullanmak için çerezler gereklidir. Siteyi kullanmaya devam etmek için çerezleri kabul etmelisiniz. Daha Fazlasını Öğren.…