scripts/script_bin_backuptool.cmd hinzugefügt
This commit is contained in:
30
scripts/script_bin_backuptool.cmd
Normal file
30
scripts/script_bin_backuptool.cmd
Normal file
@@ -0,0 +1,30 @@
|
||||
:: ----------------------------------------------------------------
|
||||
:: Installiere Disk2VHD und DoubleDriver
|
||||
:: ----------------------------------------------------------------
|
||||
|
||||
:: --- Option: Download in ein temporäres Verzeichnis
|
||||
:: --- Kann für z.B. für GLPI abgeschaltet werden
|
||||
set SAVEPATH=%SYSTEMDRIVE%\SETUP
|
||||
MKDIR %SAVEPATH% & CD /D %SAVEPATH%
|
||||
|
||||
:: Setze Basisurl zu den Binaries
|
||||
set BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win
|
||||
|
||||
:: --- Disk2VHD
|
||||
set PROG=Disk2vhd.zip
|
||||
curl -kLO %BASEURL%/%PROG%
|
||||
powershell.exe "& {Expand-Archive %PROG% -Force -DestinationPath .}"
|
||||
del %PROG%
|
||||
|
||||
:: ---- Double Driver
|
||||
set PROG=Double%%20Driver.zip
|
||||
curl -kLO %BASEURL%/%PROG%
|
||||
powershell.exe "& {Expand-Archive %PROG% -Force -DestinationPath .}"
|
||||
del %PROG%
|
||||
|
||||
:: --- Sichere alle Treiber mit Double Driver
|
||||
::cd /D "%SAVEPATH%\Double Driver"
|
||||
::ddc b /target:%SAVEPATH%\Treiber
|
||||
|
||||
:: --- Neu: Sichere alle Treiber mit Powershell!
|
||||
powershell -command "& Export-WindowsDriver -Online -Destination C:\SETUP\Treiber"
|
Reference in New Issue
Block a user