miragte.bat aktualisiert

This commit is contained in:
2026-08-23 23:57:51 +02:00
parent 6e67681980
commit 129c890134
+40 -22
View File
@@ -1,26 +1,7 @@
@echo off @echo off
echo Deaktiviere und loesche pcvisit / caloa Dienste... echo Erstelle TMP-Ordner...
:: Sucht nun nach pcvisit UND caloa Diensten, stoppt und loescht sie if not exist "C:\TMP" mkdir "C:\TMP" >nul 2>&1
powershell -Command "Get-Service -Name '*pcvisit*', '*caloa*' -ErrorAction SilentlyContinue | ForEach-Object { Stop-Service -Name $_.Name -Force -ErrorAction SilentlyContinue; Set-Service -Name $_.Name -StartupType Disabled -ErrorAction SilentlyContinue; sc.exe delete $_.Name }" >nul 2>&1
echo Beende restliche Prozesse...
powershell -Command "Get-Process -Name '*pcvisit*', '*caloa*' -ErrorAction SilentlyContinue | Stop-Process -Force" >nul 2>&1
echo Fuehre pcvisit Uninstaller aus...
for /f "delims=" %%I in ('dir /b /s "%ProgramFiles(x86)%\pcvisit Software AG\*uninstall*.exe" 2^>nul') do (
"%%I" /S >nul 2>&1
)
for /f "delims=" %%I in ('dir /b /s "%ProgramFiles%\pcvisit Software AG\*uninstall*.exe" 2^>nul') do (
"%%I" /S >nul 2>&1
)
:: 10 Sekunden warten
ping 127.0.0.1 -n 11 >nul
echo Raeume pcvisit Datei-Reste auf...
rmdir /S /Q "%ProgramFiles(x86)%\pcvisit Software AG" >nul 2>&1
rmdir /S /Q "%ProgramFiles%\pcvisit Software AG" >nul 2>&1
echo Lade RustDesk herunter... echo Lade RustDesk herunter...
powershell -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri 'https://me-files.vmd55888.de/me-rustdesk-host.exe' -OutFile 'C:\TMP\rustdesk_installer.exe' -UseBasicParsing" powershell -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri 'https://me-files.vmd55888.de/me-rustdesk-host.exe' -OutFile 'C:\TMP\rustdesk_installer.exe' -UseBasicParsing"
@@ -46,4 +27,41 @@ echo Entferne Desktop-Verknuepfung...
del "C:\Users\Public\Desktop\ME-RustDesk-Host.lnk" /Q /F >nul 2>&1 del "C:\Users\Public\Desktop\ME-RustDesk-Host.lnk" /Q /F >nul 2>&1
echo Fertig! echo.
echo ========================================================
echo RUSTDESK IST INSTALLIERT UND LAEUFT!
echo.
echo Bitte wechsle jetzt in deinen RustDesk-Client und
echo baue die Verbindung zu diesem Rechner auf.
echo.
echo Wenn die RustDesk-Verbindung steht, druecke hier
echo eine beliebige Taste, um pcvisit zu deinstallieren.
echo ========================================================
pause
echo.
echo Deaktiviere und loesche pcvisit / caloa Dienste...
:: Sucht nun nach pcvisit UND caloa Diensten, stoppt und loescht sie
powershell -Command "Get-Service -Name '*pcvisit*', '*caloa*' -ErrorAction SilentlyContinue | ForEach-Object { Stop-Service -Name $_.Name -Force -ErrorAction SilentlyContinue; Set-Service -Name $_.Name -StartupType Disabled -ErrorAction SilentlyContinue; sc.exe delete $_.Name }" >nul 2>&1
echo Beende restliche Prozesse...
powershell -Command "Get-Process -Name '*pcvisit*', '*caloa*' -ErrorAction SilentlyContinue | Stop-Process -Force" >nul 2>&1
echo Fuehre pcvisit Uninstaller aus...
for /f "delims=" %%I in ('dir /b /s "%ProgramFiles(x86)%\pcvisit Software AG\*uninstall*.exe" 2^>nul') do (
"%%I" /S >nul 2>&1
)
for /f "delims=" %%I in ('dir /b /s "%ProgramFiles%\pcvisit Software AG\*uninstall*.exe" 2^>nul') do (
"%%I" /S >nul 2>&1
)
:: 10 Sekunden warten
ping 127.0.0.1 -n 11 >nul
echo Raeume pcvisit Datei-Reste auf...
rmdir /S /Q "%ProgramFiles(x86)%\pcvisit Software AG" >nul 2>&1
rmdir /S /Q "%ProgramFiles%\pcvisit Software AG" >nul 2>&1
echo Fertig! Migration komplett abgeschlossen.