Files
install-pcvisit-remotehost/install-pcvisit-remotehost.bat

25 lines
643 B
Batchfile

@echo off
setlocal
:: URL der Datei
set URL="https://d1kh5e79chg49w.cloudfront.net/c54e98ef610b573b19d45a634780d925/pcvisit_Remote-Host_Setup.exe"
:: Zielpfad für die heruntergeladene Datei
set SETUPFILE="%TEMP%\pcvisit_Remote-Host_Setup.exe"
:: Datei herunterladen
powershell -Command "Start-BitsTransfer -Source %URL% -Destination %SETUPFILE%"
:: Prüfen, ob der Download erfolgreich war
if not exist %SETUPFILE% (
echo Fehler: Die Datei konnte nicht heruntergeladen werden.
exit /b 1
)
:: Installation starten
%SETUPFILE% /S /CompanyAccountId=F6684590965 /UseCompanyPreset
:: Aufräumen (optional)
del %SETUPFILE%
endlocal