standardsoftware/install_openssh.cmd hinzugefügt
This commit is contained in:
parent
4c7f3a6a0c
commit
45bc5cb1f0
35
standardsoftware/install_openssh.cmd
Normal file
35
standardsoftware/install_openssh.cmd
Normal file
@ -0,0 +1,35 @@
|
||||
rem ------------------------------------------------------------
|
||||
rem Installationsroutine
|
||||
rem ------------------------------------------------------------
|
||||
|
||||
rem --- Option: Download in ein temporäres Verzeichnis
|
||||
rem --- Kann für z.B. für GLPI abgeschaltet werden
|
||||
set SAVEPATH=%SYSTEMDRIVE%\TEMP\install
|
||||
MKDIR %SAVEPATH% & CD /D %SAVEPATH%
|
||||
|
||||
rem --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
|
||||
set MINOR=p1-Preview
|
||||
set MAJOR=9.8.1.0
|
||||
set BASEURL=https://github.com/PowerShell/Win32-OpenSSH/releases/download/v%MAJOR%%MINOR%
|
||||
set PROG=OpenSSH-Win64-v%MAJOR%.msi
|
||||
|
||||
rem --- Lade Installationsdatei herunter
|
||||
curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
|
||||
|
||||
rem --- Silent-Installation des Programms:
|
||||
%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log
|
||||
|
||||
|
||||
rem --- Installiere C++ Redistibutable
|
||||
rem set BASEURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/essentiell
|
||||
rem set PROG=VC_redist.x64.exe
|
||||
rem curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & %PROG% /Q
|
||||
|
||||
rem --- Entpacket .ZIP
|
||||
rem powershell.exe -command "Expand-Archive -Force -Path %PROG% -DestinationPath . "
|
||||
|
||||
rem ---- Beispiele ---------------------------------------------
|
||||
rem %PROG% /S
|
||||
rem %PROG% /VERYSILENT /NORESTART /ALLUSERS
|
||||
rem %PROG% /install /quiet /norestart
|
||||
|
Loading…
x
Reference in New Issue
Block a user