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

26 lines
778 B
Batchfile

@echo off
setlocal
:: URL der Datei
#set URL="https://d1kh5e79chg49w.cloudfront.net/1df94a62cfadb6a8a500f50293433e9d/pcvisit_Remote-Host_Setup.exe"
set URL="https://lb3.pcvisit.de/v1/hosted/jumplink?func=download&topic=remoteHostSetup&destname=pcvisit_Remote-Host_Setup&os=osWin32"
:: 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