From ed89dfd397c63c72bce6f1c45e29347913a617be Mon Sep 17 00:00:00 2001 From: Peter Reichart Date: Wed, 27 Aug 2025 08:50:49 +0000 Subject: [PATCH] =?UTF-8?q?scripts/script=5Fbin=5Fbackuptool.cmd=20hinzuge?= =?UTF-8?q?f=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/script_bin_backuptool.cmd | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 scripts/script_bin_backuptool.cmd diff --git a/scripts/script_bin_backuptool.cmd b/scripts/script_bin_backuptool.cmd new file mode 100644 index 0000000..f3db5bf --- /dev/null +++ b/scripts/script_bin_backuptool.cmd @@ -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"