diff --git a/README.md b/README.md index 16fbe8b..e1f3435 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,27 @@ -# setup_windows +# Windows Setup Tools -Windows Helper \ No newline at end of file +### Automatische Einstellungen für frisch installierte Windows 10 Rechner + +* Automatische Installation von essentieller Software + * 7-Zip + * Mozilla Firefox + * Microsoft C++ Runtime + * Notepad ++ +* Nützliche Windows 10 Einstellungen, z.B.: + * Energieeinstellungen + * Anzeige von Dateinamenerweiterungen +* Windows 10 Debloater + * Entfernen von OneDrive + * Entfernen der meisten Bloatware + +#### Anwendung mit Windows 10: +* Starten von ```cmd.exe```mit Administratorrechten +* Diese Zeile einfügen und mit starten: +* ```mkdir \temp & cd \temp & curl -k -L https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/win10_initial_install.cmd -o start.cmd & start.cmd``` + +#### Anwendung mit Windows 11: +* Starten von ```cmd.exe```mit Administratorrechten +* Diese Zeile einfügen und mit starten: +* ```mkdir \temp & cd \temp & curl -k -L https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/win11_initial_install.cmd -o start.cmd & start.cmd``` + +. \ No newline at end of file diff --git a/admin/deploy_glpi-agent_albrecht.cmd b/admin/deploy_glpi-agent_albrecht.cmd new file mode 100644 index 0000000..95bc1c0 --- /dev/null +++ b/admin/deploy_glpi-agent_albrecht.cmd @@ -0,0 +1,20 @@ +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 VERS=1.11 +set BASEURL=https://github.com/glpi-project/glpi-agent/releases/download/%VERS% +set PROG=GLPI-Agent-%VERS%-x64.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 /quiet RUNNOW=1 AGENTMONITOR=1 ADD_FIREWALL_EXCEPTION=1 NO_SSL_CHECK=1 TAG=AE SERVER=https://glpi.albrecht-elektrotechnik.local/plugins/glpiinventory/ + diff --git a/admin/deploy_rustdesk_ostrachhelp.cmd b/admin/deploy_rustdesk_ostrachhelp.cmd new file mode 100644 index 0000000..15aa725 --- /dev/null +++ b/admin/deploy_rustdesk_ostrachhelp.cmd @@ -0,0 +1,44 @@ +@echo off + +REM Assign the value random password to the password variable +setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION +set alfanum=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 +set rustdesk_pw= +for /L %%b in (1, 1, 12) do ( + set /A rnd_num=!RANDOM! %% 62 + for %%c in (!rnd_num!) do ( + set rustdesk_pw=!rustdesk_pw!!alfanum:~%%c,1! + ) +) + +REM Get your config string from your Web portal and Fill Below +set rustdesk_cfg=0nI9gDS4RVb2VHWXBjNnhGZHlmdalEeTFXT0IUYBBTW6FzZtBXe0MmcuBVTzpnI6ISeltmIsIiI6ISawFmIsISZk5CcsVGaoNWYyR3cv5Cdy9GcwV3ciojI5FGblJnIsISZk5CcsVGaoNWYyR3cv5Cdy9GcwV3ciojI0N3boJye + +REM ############################### Please Do Not Edit Below This Line ######################################### + +if not exist C:\Temp\ md C:\Temp\ +cd C:\Temp\ + +set RUSTVER=1.2.3-1 +curl -L "https://github.com/rustdesk/rustdesk/releases/download/%RUSTVER%/rustdesk-%RUSTVER%-x86_64.exe" -o rustdesk.exe + +rustdesk.exe --silent-install +timeout /t 20 + +cd "C:\Program Files\RustDesk\" +rustdesk.exe --install-service +timeout /t 20 + +for /f "delims=" %%i in ('rustdesk.exe --get-id ^| more') do set rustdesk_id=%%i + +rustdesk.exe --config %rustdesk_cfg% + +rustdesk.exe --password %rustdesk_pw% + +echo ............................................... +REM Show the value of the ID Variable +echo RustDesk ID: %rustdesk_id% + +REM Show the value of the Password Variable +echo Password: %rustdesk_pw% +echo ............................................... diff --git a/admin/deploy_rustdesk_template.cmd b/admin/deploy_rustdesk_template.cmd new file mode 100644 index 0000000..9581a11 --- /dev/null +++ b/admin/deploy_rustdesk_template.cmd @@ -0,0 +1,44 @@ +@echo off + +REM Assign the value random password to the password variable +setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION +set alfanum=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 +set rustdesk_pw= +for /L %%b in (1, 1, 12) do ( + set /A rnd_num=!RANDOM! %% 62 + for %%c in (!rnd_num!) do ( + set rustdesk_pw=!rustdesk_pw!!alfanum:~%%c,1! + ) +) + +REM Get your config string from your Web portal and Fill Below +set rustdesk_cfg="configstring" + +REM ############################### Please Do Not Edit Below This Line ######################################### + +if not exist C:\Temp\ md C:\Temp\ +cd C:\Temp\ + +set RUSTVER=1.2.3-1 +curl -L "https://github.com/rustdesk/rustdesk/releases/download/%RUSTVER%/rustdesk-%RUSTVER%-x86_64.exe" -o rustdesk.exe + +rustdesk.exe --silent-install +timeout /t 20 + +cd "C:\Program Files\RustDesk\" +rustdesk.exe --install-service +timeout /t 20 + +for /f "delims=" %%i in ('rustdesk.exe --get-id ^| more') do set rustdesk_id=%%i + +rustdesk.exe --config %rustdesk_cfg% + +rustdesk.exe --password %rustdesk_pw% + +echo ............................................... +REM Show the value of the ID Variable +echo RustDesk ID: %rustdesk_id% + +REM Show the value of the Password Variable +echo Password: %rustdesk_pw% +echo ............................................... diff --git a/admin/deploy_wazuh_ostrachhelp.cmd b/admin/deploy_wazuh_ostrachhelp.cmd new file mode 100644 index 0000000..6338b7a --- /dev/null +++ b/admin/deploy_wazuh_ostrachhelp.cmd @@ -0,0 +1,29 @@ +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 BASEURL=https://packages.wazuh.com/4.x/windows +set PROG=wazuh-agent-4.7.3-1.msi + +IF EXIST "%PROGRAMFILES%\ossec-agent" GOTO ENDE +IF EXIST "%PROGRAMFILES(X86)%\ossec-agent" GOTO ENDE + +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +msiexec.exe /i %SAVEPATH%\%PROG% /passive WAZUH_MANAGER=intern.hochvogel.de WAZUH_REGISTRATION_SERVER=intern.hochvogel.de + +rem --- Warte 5 Sekunden +ping -n 10 127.0.0.1 + +rem --- starte Service +NET START WazuhSvc + +:ENDE \ No newline at end of file diff --git a/admin/install_adv_ip_scanner.cmd b/admin/install_adv_ip_scanner.cmd new file mode 100644 index 0000000..e3ac77b --- /dev/null +++ b/admin/install_adv_ip_scanner.cmd @@ -0,0 +1,33 @@ +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 BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=Advanced_IP_Scanner_2.5.4594.1.exe + +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /VERYSILENT /NORESTART /ALLUSERS + + +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 +rem %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log diff --git a/admin/install_glpi-agent.cmd b/admin/install_glpi-agent.cmd new file mode 100644 index 0000000..3747d5f --- /dev/null +++ b/admin/install_glpi-agent.cmd @@ -0,0 +1,20 @@ +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 VERS=1.11 +set BASEURL=https://github.com/glpi-project/glpi-agent/releases/download/%VERS% +set PROG=GLPI-Agent-%VERS%-x64.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 + diff --git a/admin/install_iperf3.cmd b/admin/install_iperf3.cmd new file mode 100644 index 0000000..360e1fc --- /dev/null +++ b/admin/install_iperf3.cmd @@ -0,0 +1,15 @@ +rem ---------------------------------------------------------------- +rem Installiere IPERF3 +rem ---------------------------------------------------------------- + +rem --- Option: Download in ein temporäres Verzeichnis +rem --- Kann für z.B. für GLPI abgeschaltet werden +set SAVEPATH=%SYSTEMDRIVE%\SETUP +MKDIR %SAVEPATH% & CD /D %SAVEPATH% + +set BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=iperf-3.17.1-win64.zip +curl -kLO %BASEURL%/%PROG% +powershell.exe "& {Expand-Archive %PROG% -Force -DestinationPath %SYSTEMDRIVE%\Windows }" +del %PROG% + diff --git a/admin/install_rustdesk.cmd b/admin/install_rustdesk.cmd new file mode 100644 index 0000000..df09216 --- /dev/null +++ b/admin/install_rustdesk.cmd @@ -0,0 +1,19 @@ +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 BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=rustdesk-1.2.3-x86_64.exe + +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% --silent-install + diff --git a/admin/install_tightvnc.cmd b/admin/install_tightvnc.cmd new file mode 100644 index 0000000..02b17e6 --- /dev/null +++ b/admin/install_tightvnc.cmd @@ -0,0 +1,21 @@ +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 BASEURL=https://www.tightvnc.com/download/2.8.81 +set PROG=tightvnc-2.8.81-gpl-setup-64bit.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 VIEWER_ASSOCIATE_VNC_EXTENSION=1 SERVER_REGISTER_AS_SERVICE=1 SERVER_ADD_FIREWALL_EXCEPTION=1 VIEWER_ADD_FIREWALL_EXCEPTION=1 SERVER_ALLOW_SAS=1 SET_USEVNCAUTHENTICATION=1 VALUE_OF_USEVNCAUTHENTICATION=1 SET_PASSWORD=1 VALUE_OF_PASSWORD=TightLogin + +rem %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /quiet /norestart ADDLOCAL="Server,Viewer" VIEWER_ASSOCIATE_VNC_EXTENSION=1 SERVER_REGISTER_AS_SERVICE=1 SERVER_ADD_FIREWALL_EXCEPTION=1 VIEWER_ADD_FIREWALL_EXCEPTION=1 SERVER_ALLOW_SAS=1 SET_USEVNCAUTHENTICATION=1 VALUE_OF_USEVNCAUTHENTICATION=1 SET_PASSWORD=1 VALUE_OF_PASSWORD=PASSWORD SET_USECONTROLAUTHENTICATION=1 VALUE_OF_USECONTROLAUTHENTICATION=1 SET_CONTROLPASSWORD=1 VALUE_OF_CONTROLPASSWORD=PASSWORD + diff --git a/admin/install_wireshark.cmd b/admin/install_wireshark.cmd new file mode 100644 index 0000000..69dccb4 --- /dev/null +++ b/admin/install_wireshark.cmd @@ -0,0 +1,23 @@ +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 --- npcap herunterladen (muss manuell installiert werden) +curl -kLO https://npcap.com/dist/npcap-1.80.exe + +rem --- Download Basis-URL, Dateiname und TEMP-Verzeichnis +set VERS=4.4.0 +set BASEURL=https://2.na.dl.wireshark.org/win64 +set PROG=Wireshark-%VERS%-x64.exe + +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S /EXTRACOMPONENTS=ciscodump,sshdump,udpdump + diff --git a/entwickler/install_git.cmd b/entwickler/install_git.cmd new file mode 100644 index 0000000..5aa40d7 --- /dev/null +++ b/entwickler/install_git.cmd @@ -0,0 +1,46 @@ +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 BASEURL=https://github.com/git-for-windows/git/releases/download/v2.43.0.windows.1 +set PROG=Git-2.43.0-64-bit.exe + +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Erzeuge INI-Datei +( +echo [Setup] +echo Lang=default +echo Dir=C:\Program Files\Git +echo Group=Git +echo NoIcons=0 +echo SetupType=default +echo Components=gitlfs,assoc,assoc_sh,scalar +echo Tasks= +echo EditorOption=Notepad++ +echo CustomEditorPath= +echo DefaultBranchOption= +echo PathOption=Cmd +echo SSHOption=OpenSSH +echo TortoiseOption=false +echo CURLOption=OpenSSL +echo CRLFOption=CRLFAlways +echo BashTerminalOption=MinTTY +echo GitPullBehaviorOption=Merge +echo UseCredentialManager=Enabled +echo PerformanceTweaksFSCache=Enabled +echo EnableSymlinks=Disabled +echo EnablePseudoConsoleSupport=Disabled +echo EnableFSMonitor=Disabled +) > git.ini + +rem --- Silent-Installation des Programms: +%PROG% /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /LOADINF=git.ini + diff --git a/entwickler/install_sandboxie.cmd b/entwickler/install_sandboxie.cmd new file mode 100644 index 0000000..c5034e3 --- /dev/null +++ b/entwickler/install_sandboxie.cmd @@ -0,0 +1,16 @@ +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 --- TortoiseGIT +set BASEURL=https://github.com/sandboxie-plus/Sandboxie/releases/download/v1.12.3 +set PROG=Sandboxie-Plus-x64-v1.12.3.exe +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +%PROG% /SP- /NORESTART /lang=de /ALLUSERS /SILENT /VERYSILENT /SUPPRESSMSGBOXES diff --git a/entwickler/install_tortoisegit.cmd b/entwickler/install_tortoisegit.cmd new file mode 100644 index 0000000..afa9250 --- /dev/null +++ b/entwickler/install_tortoisegit.cmd @@ -0,0 +1,25 @@ +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 --- TortoiseGIT +set BASEURL=https://download.tortoisegit.org/tgit/2.15.0.0 +set PROG=TortoiseGit-2.15.0.0-64bit.msi +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% +%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log + +rem --- Sprachpaket Deutsch +set BASEURL=https://download.tortoisegit.org/tgit/2.15.0.0 +set PROG=TortoiseGit-LanguagePack-2.15.0.0-64bit-de.msi +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% +%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log + + + diff --git a/essentiell/install_backuptools.cmd b/essentiell/install_backuptools.cmd new file mode 100644 index 0000000..5248201 --- /dev/null +++ b/essentiell/install_backuptools.cmd @@ -0,0 +1,24 @@ +rem ---------------------------------------------------------------- +rem Installiere Disk2VHD und DoubleDriver +rem ---------------------------------------------------------------- + +rem --- Option: Download in ein temporäres Verzeichnis +rem --- Kann für z.B. für GLPI abgeschaltet werden +set SAVEPATH=%SYSTEMDRIVE%\SETUP +MKDIR %SAVEPATH% & CD /D %SAVEPATH% + +set BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=Disk2vhd.zip +curl -kLO %BASEURL%/%PROG% +powershell.exe "& {Expand-Archive %PROG% -Force -DestinationPath .}" +del %PROG% + +set BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=Double%%20Driver.zip +curl -kLO %BASEURL%/%PROG% +powershell.exe "& {Expand-Archive %PROG% -Force -DestinationPath .}" +del %PROG% + +rem --- Sichere alle Treiber: +cd /D "%SAVEPATH%\Double Driver" +ddc b /target:%SAVEPATH%\Treiber diff --git a/essentiell/install_dotnet-runtime-4.8-x64.cmd b/essentiell/install_dotnet-runtime-4.8-x64.cmd new file mode 100644 index 0000000..60b3e71 --- /dev/null +++ b/essentiell/install_dotnet-runtime-4.8-x64.cmd @@ -0,0 +1,15 @@ +rem ---------------------------------------------------------------- +rem Installiere Microsoft Visual C++ 2015-2022 Redistributable (x64) +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% + +set BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=dotnet_4.8_runtime_offline_NDP48-x86-x64-AllOS-ENU.exe +rem --- Lade Installationsdatei herunter +curl -kLO %BASEURL%/%PROG% +rem --- Silent-Installation des Programms: +%PROG% /install /quiet /norestart diff --git a/essentiell/install_dotnet-runtime-6.0.23-x64.cmd b/essentiell/install_dotnet-runtime-6.0.23-x64.cmd new file mode 100644 index 0000000..a2cc80c --- /dev/null +++ b/essentiell/install_dotnet-runtime-6.0.23-x64.cmd @@ -0,0 +1,15 @@ +rem ---------------------------------------------------------------- +rem Installiere Microsoft Visual C++ 2015-2022 Redistributable (x64) +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% + +set BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=dotnet-runtime-6.0.23-win-x64.exe +rem --- Lade Installationsdatei herunter +curl -kLO %BASEURL%/%PROG% +rem --- Silent-Installation des Programms: +%PROG% /install /quiet /norestart diff --git a/essentiell/install_vc_redist_runtime.cmd b/essentiell/install_vc_redist_runtime.cmd new file mode 100644 index 0000000..210ba1d --- /dev/null +++ b/essentiell/install_vc_redist_runtime.cmd @@ -0,0 +1,16 @@ +rem ---------------------------------------------------------------- +rem Installiere Microsoft Visual C++ 2015-2022 Redistributable (x64) +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% + +set BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=VC_redist.x64.exe +rem --- Lade Installationsdatei herunter +curl -kLO %BASEURL%/%PROG% +rem --- Silent-Installation des Programms: +rem %PROG% /Q +%PROG% /install /quiet /norestart diff --git a/essentiell/install_windowsdesktop-runtime-6.0.23-x64.cmd b/essentiell/install_windowsdesktop-runtime-6.0.23-x64.cmd new file mode 100644 index 0000000..9d592ce --- /dev/null +++ b/essentiell/install_windowsdesktop-runtime-6.0.23-x64.cmd @@ -0,0 +1,15 @@ +rem ---------------------------------------------------------------- +rem Installiere Microsoft Visual C++ 2015-2022 Redistributable (x64) +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% + +set BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=windowsdesktop-runtime-6.0.23-win-x64.exe +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% +rem --- Silent-Installation des Programms: +%PROG% /install /quiet /norestart diff --git a/glpi/check-install.cmd b/glpi/check-install.cmd new file mode 100644 index 0000000..f4d44c2 --- /dev/null +++ b/glpi/check-install.cmd @@ -0,0 +1,41 @@ + +@echo off +rem ---------------------------------------------------------------------------- +rem GLPI-Agent Installer +rem +rem Diese Script prüft ob Registry-Einträge für den GLPI-Agent vorhanden sind. +rem Falls Ja : keine Aktion +rem Falls Nein: Automatische Installation +rem +rem Falls eine Datei C:\reinstallglpi.txt vorhanden ist, oder die Agent-Version +rem abweicht wird eine Neuinstallation erzwungen. +rem ---------------------------------------------------------------------------- + +set AGENTVERSION=1.11 +set GLPISERVER="https://glpi.albrecht-elektrotechnik.local/plugins/glpiinventory/" + +REG QUERY "HKLM\SOFTWARE\GLPI-Agent\Installer" /t REG_SZ /v Version | find "%AGENTVERSION%" > NUL && set AGENT=Installed || set AGENT=NotInstalled + +IF EXIST "c:\temp\reinstallglpi.txt" GOTO Force +IF %AGENT%==Installed GOTO Installed +IF %AGENT%==NotInstalled GOTO Install +GOTO END + +:Force +del c:\temp\reinstallglpi.txt +echo "Neuinstallation forciert..." + +:Install +echo "Installiere GLPI-Agent..." +cscript //B //Nologo glpi-agent-deployment.vbs /version:%AGENTVERSION% /glpisrv:%GLPISERVER% +GOTO END + +:Installed +echo "GLPI scheint schon installiert zu sein...." +GOTO END + +:END +echo "Script wird beendet..." + +rem exit 0 +rem REG QUERY "HKLM\SOFTWARE\GLPI-Agent\Installer" | find /i "ExecMode" > NUL && set AGENT=Installed || set AGENT=NotInstalled \ No newline at end of file diff --git a/glpi/glpi-agent-deployment.vbs b/glpi/glpi-agent-deployment.vbs new file mode 100644 index 0000000..328e231 --- /dev/null +++ b/glpi/glpi-agent-deployment.vbs @@ -0,0 +1,625 @@ +' +' ------------------------------------------------------------------------ +' glpi-agent-deployment.vbs +' Copyright (C) 2010-2017 by the FusionInventory Development Team. +' Copyright (C) 2021 by the Teclib SAS +' ------------------------------------------------------------------------ +' +' LICENSE +' +' This file is part of GLPI Agent project. +' +' This file is free software; you can redistribute it and/or modify it +' under the terms of the GNU General Public License as published by the +' Free Software Foundation; either version 2 of the License, or (at your +' option) any later version. +' +' +' This file is distributed in the hope that it will be useful, but WITHOUT +' ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +' FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +' more details. +' +' You should have received a copy of the GNU General Public License +' along with this program; if not, write to the Free Software Foundation, +' Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA, +' or see . +' +' ------------------------------------------------------------------------ +' +' @package GLPI Agent +' @file .\contrib\windows\glpi-agent-deployment.vbs +' @author(s) Benjamin Accary +' Christophe Pujol +' Marc Caissial +' Tomas Abad +' Guillaume Bougard +' @copyright Copyright (c) 2010-2017 FusionInventory Team +' Copyright (c) 2021 Teclib SAS +' @license GNU GPL version 2 or (at your option) any later version +' http://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html +' @link http://www.glpi-project.org/ +' @since 2021 +' +' ------------------------------------------------------------------------ +' + +' +' +' Purpose: +' GLPI Agent Unattended Deployment. +' +' + +Option Explicit +Dim Reconfigure, Repair, Verbose, colArgs, GLPISRV +Dim Setup, SetupArchitecture, SetupLocation, SetupNightlyLocation, SetupOptions, SetupVersion, RunUninstallFusionInventoryAgent, UninstallOcsAgent + +' +' +' USER SETTINGS +' +' + +' SetupVersion +' Setup version with the pattern ..[-] +'SetupVersion = "1.11" +' +' Modifikation: Agent-Version kann per CLI Option übergeben werden! +Set colArgs = WScript.Arguments.Named +SetupVersion = colArgs.Item("version") +WScript.echo "Installiere Version: " & SetupVersion +' +' When using a nightly built version, uncomment the following SetupVersion definition line +' replacing gitABCDEFGH with the most recent git revision found on the nightly builds site +' In that case, SetupNightlyLocation will be selected as location in place of SetupLocation +'SetupVersion = "1.6-gitABCDEFGH" + +' SetupLocation +' Depending on your needs or your environment, you can use either a HTTP or +' CIFS/SMB. +' +' If you use HTTP, please, set to SetupLocation a URL: +' +' SetupLocation = "http://host[:port]/[absolut_path]" or +' SetupLocation = "https://host[:port]/[absolut_path]" +' +' If you use CIFS, please, set to SetupLocation a UNC path name: +' +' SetupLocation = "\\host\share\[path]" +' +' You also must be sure that you have removed the "Open File Security Warning" +' from programs accessed from that UNC. +' +' Location for Release Candidates +SetupLocation = "https://github.com/glpi-project/glpi-agent/releases/download/" & SetupVersion + +' Location for Nightly Builds +SetupNightlyLocation = "https://nightly.glpi-project.org/glpi-agent" + + +' SetupArchitecture +' The setup architecture can be 'x86', 'x64' or 'Auto' +' +' If you set SetupArchitecture = "Auto" be sure that both installers are in +' the same SetupLocation. +' +SetupArchitecture = "Auto" + +' SetupOptions +' Consult the online installer documentation to know its list of options. +' See: https://glpi-agent.readthedocs.io/en/latest/installation/windows-command-line.html#command-line-parameters +' +' You should use simple quotes (') to set between quotation marks those values +' that require it; double quotes (") doesn't work with UNCs. +' +' Modifikation: GLPI Server URL kann per CLI Option übergeben werden! +GLPISRV = colArgs.Item("glpisrv") +SetupOptions = "/quiet RUNNOW=1 ADDLOCAL=feat_AGENT,feat_DEPLOY,feat_WOL AGENTMONITOR=1 ADD_FIREWALL_EXCEPTION=1 NO_SSL_CHECK=1 SERVER='" & GLPISRV & "'" +' +'SetupOptions = "/quiet RUNNOW=1 AGENTMONITOR=1 SERVER='https://glpi.local/plugins/fusioninventory'" + +' Setup +' The installer file name. You should not have to modify this variable ever. +' +Setup = "GLPI-Agent-" & SetupVersion & "-" & SetupArchitecture & ".msi" + +' Reconfigure +' Just reconfigure the current installation if installed agent has the same version +' +Reconfigure = "Yes" + +' Repair +' Repair the installation when Setup is still installed. +' +Repair = "No" + +' Verbose +' Enable or disable the information messages. +' +' It's advisable to use Verbose = "Yes" with 'cscript //nologo ...'. +' +Verbose = "Yes" + +' RunUninstallFusionInventoryAgent +' Set to "Yes" to first uninstall FusionInventory Agent +' Also and unless SERVER or LOCAL are defined in SetupOptions, this script +' will try to get them from FusionInventory-Agent configuration found in registry +' +RunUninstallFusionInventoryAgent = "Yes" + +' UninstallOcsAgent +' Enable or disable the uninstallation of OCS Agent +' +UninstallOcsAgent = "Yes" + +' +' +' DO NOT EDIT BELOW +' +' + +Function removeOCSAgents() + On error resume next + + Dim Uninstall + ' Uninstall agent ocs if is installed + ' Verification on OS 32 Bits + On error resume next + Uninstall = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OCS Inventory Agent\UninstallString") + If err.number = 0 then + WshShell.Run "CMD.EXE /C net stop ""OCS INVENTORY SERVICE""",0,True + WshShell.Run "CMD.EXE /C """ & Uninstall & """ /S /NOSPLASH",0,True + WshShell.Run "CMD.EXE /C rmdir ""%ProgramFiles%\OCS Inventory Agent"" /S /Q",0,True + WshShell.Run "CMD.EXE /C rmdir ""%SystemDrive%\ocs-ng"" /S /Q",0,True + WshShell.Run "CMD.EXE /C sc delete ""OCS INVENTORY""",0,True + End If + + ' Verification on OS 64 Bits + On error resume next + Uninstall = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\OCS Inventory Agent\UninstallString") + If err.number = 0 then + WshShell.Run "CMD.EXE /C net stop ""OCS INVENTORY SERVICE""",0,True + WshShell.Run "CMD.EXE /C """ & Uninstall & """ /S /NOSPLASH",0,True + WshShell.Run "CMD.EXE /C rmdir ""%ProgramFiles(x86)%\OCS Inventory Agent"" /S /Q",0,True + WshShell.Run "CMD.EXE /C rmdir ""%SystemDrive%\ocs-ng"" /S /Q",0,True + WshShell.Run "CMD.EXE /C sc delete ""OCS INVENTORY""",0,True + End If + + ' Verification Agent V2 on 32Bit + On error resume next + Uninstall = WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OCS Inventory NG Agent\UninstallString") + If err.number = 0 then + WshShell.Run "CMD.EXE /C net stop ""OCS INVENTORY SERVICE""",0,True + WshShell.Run "CMD.EXE /C taskkill /F /IM ocssystray.exe",0,True + WshShell.Run "CMD.EXE /C """ & Uninstall & """ /S /NOSPLASH",0,True + WshShell.Run "CMD.EXE /C rmdir ""%ProgramFiles%\OCS Inventory Agent"" /S /Q",0,True + WshShell.Run "CMD.EXE /C rmdir ""%SystemDrive%\ocs-ng"" /S /Q",0,True + WshShell.Run "CMD.EXE /C sc delete ""OCS INVENTORY""",0,True + End If + + ' Verification Agent V2 on 64Bit + On error resume next + Uninstall = WshShell.RegRead("HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\OCS Inventory NG Agent\UninstallString") + If err.number = 0 then + WshShell.Run "CMD.EXE /C net stop ""OCS INVENTORY SERVICE""",0,True + WshShell.Run "CMD.EXE /C taskkill /F /IM ocssystray.exe",0,True + WshShell.Run "CMD.EXE /C """ & Uninstall & """ /S /NOSPLASH",0,True + WshShell.Run "CMD.EXE /C rmdir ""%ProgramFiles%\OCS Inventory Agent"" /S /Q",0,True + WshShell.Run "CMD.EXE /C rmdir ""%SystemDrive%\ocs-ng"" /S /Q",0,True + WshShell.Run "CMD.EXE /C sc delete ""OCS INVENTORY""",0,True + End If +End Function + +Function hasOption(opt) + Dim regEx + Set regEx = New RegExp + regEx.Global = true + regEx.IgnoreCase = False + regEx.Pattern = "\b" & opt & "=.+\b" + hasOption = regEx.Test(SetupOptions) +End Function + +Function uninstallFusionInventoryAgent() + Dim Uninstall, getValue + + ' Try to get SERVER and LOCAL from FIA configuration in registry if needed + If not hasOption("SERVER") then + On error resume next + getValue = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\FusionInventory-Agent\server") + If err.number = 0 And getValue <> "" then + SetupOptions = SetupOptions & " SERVER='" & getValue & "'" + End If + End If + If not hasOption("LOCAL") then + On error resume next + getValue = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\FusionInventory-Agent\local") + If err.number = 0 And getValue <> "" then + SetupOptions = SetupOptions & " LOCAL='" & getValue & "'" + End If + End If + + ' Verify normal case + On error resume next + Uninstall = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent\UninstallString") + If err.number = 0 then + WshShell.Run "CMD.EXE /C net stop FusionInventory-Agent",0,True + WshShell.Run "CMD.EXE /C """ & Uninstall & """ /S /NOSPLASH",0,True + WshShell.Run "CMD.EXE /C rmdir ""%ProgramFiles%\FusionInventory-Agent"" /S /Q",0,True + End If + + ' Verify FIA x86 is installed on x64 OS + On error resume next + Uninstall = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent\UninstallString") + If err.number = 0 then + WshShell.Run "CMD.EXE /C net stop FusionInventory-Agent",0,True + WshShell.Run "CMD.EXE /C """ & Uninstall & """ /S /NOSPLASH",0,True + WshShell.Run "CMD.EXE /C rmdir ""%ProgramFiles(x86)%\FusionInventory-Agent"" /S /Q",0,True + End If +End Function + +Function AdvanceTime(nMinutes) + Dim nMinimalMinutes, dtmTimeFuture + ' As protection + nMinimalMinutes = 5 + If nMinutes < nMinimalMinutes Then + nMinutes = nMinimalMinutes + End If + ' Add nMinutes to the current time + dtmTimeFuture = DateAdd ("n", nMinutes, Time) + ' Format the result value + ' The command AT accepts 'HH:MM' values only + AdvanceTime = Hour(dtmTimeFuture) & ":" & Minute(dtmTimeFuture) +End Function + +Function baseName (strng) + Dim regEx + Set regEx = New RegExp + regEx.Global = true + regEx.IgnoreCase = True + regEx.Pattern = ".*[/\\]([^/\\]+)$" + baseName = regEx.Replace(strng,"$1") +End Function + +Function GetSystemArchitecture() + Dim strSystemArchitecture + Err.Clear + ' Get operative system architecture + On Error Resume Next + strSystemArchitecture = CreateObject("WScript.Shell").ExpandEnvironmentStrings("%PROCESSOR_ARCHITECTURE%") + If Err.Number = 0 Then + ' Check the operative system architecture + Select Case strSystemArchitecture + Case "x86" + ' The system architecture is 32-bit + GetSystemArchitecture = "x86" + Case "AMD64" + ' The system architecture is 64-bit + GetSystemArchitecture = "x64" + Case Else + ' The system architecture is not supported + GetSystemArchitecture = "NotSupported" + End Select + Else + ' It has been not possible to get the system architecture + GetSystemArchitecture = "Unknown" + End If +End Function + +Function isHttp(strng) + Dim regEx, matches + Set regEx = New RegExp + regEx.Global = true + regEx.IgnoreCase = True + regEx.Pattern = "^(http(s?)).*" + If regEx.Execute(strng).count > 0 Then + isHttp = True + Else + isHttp = False + End If + Exit Function +End Function + +Function isNightly(strng) + Dim regEx, matches + Set regEx = New RegExp + regEx.Global = true + regEx.IgnoreCase = True + regEx.Pattern = "-(git[0-9a-f]{8})$" + If regEx.Execute(strng).count > 0 Then + isNightly = True + Else + isNightly = False + End If + Exit Function +End Function + +Function IsInstallationNeeded(strSetupVersion, strSetupArchitecture, strSystemArchitecture) + Dim strCurrentSetupVersion + ' Compare the current version, whether it exists, with strSetupVersion + If strSystemArchitecture = "x86" Then + ' The system architecture is 32-bit + ' Check if the subkey 'SOFTWARE\GLPI-Agent\Installer' exists + On error resume next + strCurrentSetupVersion = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\GLPI-Agent\Installer\Version") + If Err.Number = 0 Then + ' The subkey 'SOFTWARE\GLPI-Agent\Installer' exists + If strCurrentSetupVersion <> strSetupVersion Then + ShowMessage("Installation needed: " & strCurrentSetupVersion & " -> " & strSetupVersion) + IsInstallationNeeded = True + End If + Exit Function + Else + ' The subkey 'SOFTWARE\GLPI-Agent\Installer' doesn't exist + Err.Clear + ShowMessage("Installation needed: " & strSetupVersion) + IsInstallationNeeded = True + End If + Else + ' The system architecture is 64-bit + ' Check if the subkey 'SOFTWARE\Wow6432Node\GLPI-Agent\Installer' exists + On error resume next + strCurrentSetupVersion = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\GLPI-Agent\Installer\Version") + If Err.Number = 0 Then + ' The subkey 'SOFTWARE\Wow6432Node\GLPI-Agent\Installer' exists + If strCurrentSetupVersion <> strSetupVersion Then + ShowMessage("Installation needed: " & strCurrentSetupVersion & " -> " & strSetupVersion) + IsInstallationNeeded = True + End If + Exit Function + Else + ' The subkey 'SOFTWARE\Wow6432Node\GLPI-Agent\Installer' doesn't exist + Err.Clear + ' Check if the subkey 'SOFTWARE\GLPI-Agent\Installer' exists + On error resume next + strCurrentSetupVersion = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\GLPI-Agent\Installer\Version") + If Err.Number = 0 Then + ' The subkey 'SOFTWARE\GLPI-Agent\Installer' exists + If strCurrentSetupVersion <> strSetupVersion Then + ShowMessage("Installation needed: " & strCurrentSetupVersion & " -> " & strSetupVersion) + IsInstallationNeeded = True + End If + Exit Function + Else + ' The subkey 'SOFTWARE\GLPI-Agent\Installer' doesn't exist + Err.Clear + ShowMessage("Installation needed: " & strSetupVersion) + IsInstallationNeeded = True + End If + End If + End If +End Function + +Function IsSelectedReconfigure() + If LCase(Reconfigure) <> "no" Then + ShowMessage("Installation reconfigure: " & SetupVersion) + IsSelectedReconfigure = True + Else + IsSelectedReconfigure = False + End If +End Function + +Function IsSelectedRepair() + If LCase(Repair) <> "no" Then + ShowMessage("Installation repairing: " & SetupVersion) + IsSelectedRepair = True + Else + IsSelectedRepair = False + End If +End Function + +' http://www.ericphelps.com/scripting/samples/wget/index.html +Function SaveWebBinary(strSetupLocation, strSetup) + Const adTypeBinary = 1 + Const adSaveCreateOverWrite = 2 + Const ForWriting = 2 + Dim web, varByteArray, strData, strBuffer, lngCounter, ado, strUrl + strUrl = strSetupLocation & "/" & strSetup + 'On Error Resume Next + 'Download the file with any available object + Err.Clear + Set web = Nothing + Set web = CreateObject("WinHttp.WinHttpRequest.5.1") + If web Is Nothing Then Set web = CreateObject("WinHttp.WinHttpRequest") + If web Is Nothing Then Set web = CreateObject("MSXML2.ServerXMLHTTP") + If web Is Nothing Then Set web = CreateObject("Microsoft.XMLHTTP") + web.Open "GET", strURL, False + web.Send + If Err.Number <> 0 Then + SaveWebBinary = False + Set web = Nothing + Exit Function + End If + If web.Status <> "200" Then + SaveWebBinary = False + Set web = Nothing + Exit Function + End If + varByteArray = web.ResponseBody + Set web = Nothing + 'Now save the file with any available method + On Error Resume Next + Set ado = Nothing + Set ado = CreateObject("ADODB.Stream") + If ado Is Nothing Then + Set fs = CreateObject("Scripting.FileSystemObject") + Set ts = fs.OpenTextFile(baseName(strUrl), ForWriting, True) + strData = "" + strBuffer = "" + For lngCounter = 0 to UBound(varByteArray) + ts.Write Chr(255 And Ascb(Midb(varByteArray,lngCounter + 1, 1))) + Next + ts.Close + Else + ado.Type = adTypeBinary + ado.Open + ado.Write varByteArray + ado.SaveToFile CreateObject("WScript.Shell").ExpandEnvironmentStrings("%TEMP%") & "\" & strSetup, adSaveCreateOverWrite + ado.Close + End If + SaveWebBinary = True +End Function + +Function ShowMessage(strMessage) + If LCase(Verbose) <> "no" Then + WScript.Echo strMessage + End If +End Function + +Function MsiServerAvailable() + Dim loopCount, objWMIService, oMsiServer, oServicePath, errExecMethod + MsiServerAvailable = false + Const maxLoops = 120 + loopCount = 0 + 'Wait maximum 2 minutes to get MsiServer service available + Set objWMIService = GetObject("winmgmts:\\.\root\CIMV2") + Do While loopCount < maxLoops + If loopCount > 0 Then + WScript.Sleep 1000 + End If + Set oMsiServer = GetObject("winmgmts:Win32_Service='MsiServer'") + If oMsiServer.State = "Stopped" Then + MsiServerAvailable = true + Exit Function + End If + Set oServicePath = oMsiServer.Path_ + Set errExecMethod = objWMIService.ExecMethod(oServicePath, "StopService") + 'StopService method should fail with ReturnValue set to 5 on MsiServer business + If errExecMethod.ReturnValue = 0 Then + MsiServerAvailable = true + Exit Function + End If + loopCount = loopCount + 1 + Loop +End Function + +Function MsiExec(strOptions) + Dim loopCount + Const maxLoops = 3 + loopCount = 0 + Do While loopCount < maxLoops + If loopCount > 0 Then + ShowMessage("Next attempt in 30 seconds...") + WScript.Sleep 30000 + End If + If MsiServerAvailable() Then + ShowMessage("Running: MsiExec.exe " & strOptions) + MsiExec = WshShell.Run("MsiExec.exe " & strOptions, 0, True) + ' Error 1618 occurs on MsiServer business, we should only retry on that error + If MsiExec <> 1618 Then + Exit Do + End If + Else + MsiExec = 1618 + End If + loopCount = loopCount + 1 + Loop + If MsiExec = 0 Then + ShowMessage("Deployment done!") + ElseIf MsiExec = 1618 Then + ShowMessage("Deployment failed: MSI Installer is busy!") + Else + ShowMessage("Deployment failed! (Err=" & MsiExec & ")") + End If +End Function + +' +' +' MAIN +' +' + +Dim nMinutesToAdvance, strCmd, strSystemArchitecture, strTempDir, WshShell, strInstallOrRepair, bInstall +Set WshShell = WScript.CreateObject("WScript.shell") + +nMinutesToAdvance = 5 + +If UninstallOcsAgent = "Yes" Then + removeOCSAgents() +End If + +If RunUninstallFusionInventoryAgent = "Yes" Then + uninstallFusionInventoryAgent() +End If + +' Get system architecture +strSystemArchitecture = GetSystemArchitecture() +If (strSystemArchitecture <> "x86") And (strSystemArchitecture <> "x64") Then + ShowMessage("The system architecture is unknown or not supported.") + ShowMessage("Deployment aborted!") + WScript.Quit 1 +Else + ShowMessage("System architecture detected: " & strSystemArchitecture) +End If + +' Check and auto detect SetupArchitecture +Select Case LCase(SetupArchitecture) + Case "x86" + ' The setup architecture is 32-bit + SetupArchitecture = "x86" + Setup = Replace(Setup, "x86", SetupArchitecture, 1, 1, vbTextCompare) + ShowMessage("Setup architecture: " & SetupArchitecture) + Case "x64" + ' The setup architecture is 64-bit + SetupArchitecture = "x64" + Setup = Replace(Setup, "x64", SetupArchitecture, 1, 1, vbTextCompare) + ShowMessage("Setup architecture: " & SetupArchitecture) + Case "auto" + ' Auto detection of SetupArchitecture + SetupArchitecture = strSystemArchitecture + Setup = Replace(Setup, "Auto", SetupArchitecture, 1, 1, vbTextCompare) + ShowMessage("Setup architecture detected: " & SetupArchitecture) + Case Else + ' The setup architecture is not supported + ShowMessage("The setup architecture '" & SetupArchitecture & "' is not supported.") + WScript.Quit 2 +End Select + +' Check the relation between strSystemArchitecture and SetupArchitecture +If (strSystemArchitecture = "x86") And (SetupArchitecture = "x64") Then + ' It isn't possible to execute a 64-bit setup on a 32-bit operative system + ShowMessage("It isn't possible to execute a 64-bit setup on a 32-bit operative system.") + ShowMessage("Deployment aborted!") + WScript.Quit 3 +End If + +bInstall = False +strInstallOrRepair = "/i" + +If IsInstallationNeeded(SetupVersion, SetupArchitecture, strSystemArchitecture) Then + bInstall = True +ElseIf IsSelectedRepair() Then + strInstallOrRepair = "/fa" + bInstall = True +ElseIf IsSelectedReconfigure() Then + If not hasOption("REINSTALL") Then + SetupOptions = SetupOptions & " REINSTALL=feat_AGENT" + End If + bInstall = True +End If + +If bInstall Then + If isNightly(SetupVersion) Then + SetupLocation = SetupNightlyLocation + End If + If isHttp(SetupLocation) Then + ShowMessage("Downloading: " & SetupLocation & "/" & Setup) + If SaveWebBinary(SetupLocation, Setup) Then + strCmd = WshShell.ExpandEnvironmentStrings("%ComSpec%") + strTempDir = WshShell.ExpandEnvironmentStrings("%TEMP%") + MsiExec(strInstallOrRepair & " """ & strTempDir & "\" & Setup & """ " & SetupOptions) + ShowMessage("Scheduling: DEL /Q /F """ & strTempDir & "\" & Setup & """") + WshShell.Run "AT.EXE " & AdvanceTime(nMinutesToAdvance) & " " & strCmd & " /C ""DEL /Q /F """"" & strTempDir & "\" & Setup & """""", 0, True + Else + ShowMessage("Error downloading '" & SetupLocation & "\" & Setup & "'!") + End If + Else + 'Don't include path if empty or set to current folder + If SetupLocation <> "" And SetupLocation <> "." Then + Setup = SetupLocation & "\" & Setup + End If + MsiExec(strInstallOrRepair & " """ & Setup & """ " & SetupOptions) + End If +Else + ShowMessage("It isn't needed the installation of '" & Setup & "'.") +End If diff --git a/install_template.cmd b/install_template.cmd new file mode 100644 index 0000000..165664d --- /dev/null +++ b/install_template.cmd @@ -0,0 +1,33 @@ +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 BASEURL= +set PROG= + +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S + + +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 +rem %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log diff --git a/packs/essentials.cmd b/packs/essentials.cmd new file mode 100644 index 0000000..6b88f00 --- /dev/null +++ b/packs/essentials.cmd @@ -0,0 +1,17 @@ +rem ----------------------------------------------------------------------- +rem Essentials +rem +rem Must-have Programme für Jedermann +rem ----------------------------------------------------------------------- + +set SAVEPATH=%SYSTEMDRIVE%\TEMP\install +MKDIR %SAVEPATH% & CD /D %SAVEPATH% + +rem --- Ordner: Standardsoftware +set STDURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/standardsoftware +curl -kLO %STDURL%/install_7zip.cmd & call install_7zip.cmd +curl -kLO %STDURL%/install_putty.cmd & call install_putty.cmd +curl -kLO %STDURL%/install_firefox.cmd & call install_firefox.cmd +curl -kLO %STDURL%/install_notepad++.cmd & call install_notepad++.cmd +rem curl -kLO %STDURL%/install_keepass.cmd & call install_keepass.cmd +rem curl -kLO %STDURL%/install_vlc.cmd & call install_vlc.cmd \ No newline at end of file diff --git a/packs/media_audiovideo_pack.cmd b/packs/media_audiovideo_pack.cmd new file mode 100644 index 0000000..12aaccb --- /dev/null +++ b/packs/media_audiovideo_pack.cmd @@ -0,0 +1,15 @@ +rem ----------------------------------------------------------------------- +rem Media-Pack +rem +rem curl -k -L https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/win10_initial_install.cmd -o start.cmd +rem +rem ----------------------------------------------------------------------- + +set SAVEPATH=%SYSTEMDRIVE%\TEMP\install +MKDIR %SAVEPATH% & CD /D %SAVEPATH% + +rem --- Ordner: Standardsoftware +set STDURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/standardsoftware +curl -kLO %STDURL%/install_audacity.cmd & call install_audacity.cmd +curl -kLO %STDURL%/install_vlc.cmd & call install_vlc.cmd +curl -kLO %STDURL%/install_handbrake.cmd & call install_handbrake.cmd diff --git a/packs/media_drawing_pack.cmd b/packs/media_drawing_pack.cmd new file mode 100644 index 0000000..53bd700 --- /dev/null +++ b/packs/media_drawing_pack.cmd @@ -0,0 +1,16 @@ +rem ----------------------------------------------------------------------- +rem Media-Pack +rem +rem curl -k -L https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/win10_initial_install.cmd -o start.cmd +rem +rem ----------------------------------------------------------------------- + +set SAVEPATH=%SYSTEMDRIVE%\TEMP\install +MKDIR %SAVEPATH% & CD /D %SAVEPATH% + +rem --- Ordner: Standardsoftware +set STDURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/standardsoftware +curl -kLO %STDURL%/install_gimp.cmd & call install_gimp.cmd +curl -kLO %STDURL%/install_inkscape.cmd & call install_inkscape.cmd +curl -kLO %STDURL%/install_blender.cmd & call install_blender.cmd +curl -kLO %STDURL%/install_freecad.cmd & call install_freecad.cmd diff --git a/packs/office_pack.cmd b/packs/office_pack.cmd new file mode 100644 index 0000000..8d17743 --- /dev/null +++ b/packs/office_pack.cmd @@ -0,0 +1,16 @@ +rem ----------------------------------------------------------------------- +rem Office-Pack +rem ----------------------------------------------------------------------- + +set SAVEPATH=%SYSTEMDRIVE%\TEMP\install +MKDIR %SAVEPATH% & CD /D %SAVEPATH% + +rem --- Ordner: Standardsoftware +set STDURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/standardsoftware +curl -kLO %STDURL%/install_greenshot.cmd & call install_greenshot.cmd +curl -kLO %STDURL%/install_sumatrapdf.cmd & call install_sumatrapdf.cmd +curl -kLO %STDURL%/install_pdf24.cmd & call install_pdf24.cmd +curl -kLO %STDURL%/install_libreoffice_x64.cmd & call install_libreoffice_x64.cmd +curl -kLO %STDURL%/install_microsip.cmd & call install_microsip.cmd + + diff --git a/skripte/Win11Debloat-master.zip b/skripte/Win11Debloat-master.zip new file mode 100644 index 0000000..09cfdb2 Binary files /dev/null and b/skripte/Win11Debloat-master.zip differ diff --git a/skripte/Windows10Debloater-master.zip b/skripte/Windows10Debloater-master.zip new file mode 100644 index 0000000..c9f70c6 Binary files /dev/null and b/skripte/Windows10Debloater-master.zip differ diff --git a/skripte/Windows10Debloater.cmd b/skripte/Windows10Debloater.cmd new file mode 100644 index 0000000..af7eb9b --- /dev/null +++ b/skripte/Windows10Debloater.cmd @@ -0,0 +1,16 @@ +rem ----------------------------------------------------------------- +rem Installiere Windows10Debloater +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 --- Lade Debloater .ZIP +set BASEURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/skripte +set PROG=Windows10Debloater-master.zip +curl -k -L %BASEURL%/%PROG% -o %PROG% +powershell.exe -command "Expand-Archive -Force -Path %PROG% -DestinationPath . " +CD Windows10Debloater-master +powershell.exe -ExecutionPolicy Unrestricted -File "Win11Debloat.ps1" -RunDefaults \ No newline at end of file diff --git a/skripte/Windows11Debloater.cmd b/skripte/Windows11Debloater.cmd new file mode 100644 index 0000000..770afdc --- /dev/null +++ b/skripte/Windows11Debloater.cmd @@ -0,0 +1,17 @@ +rem ----------------------------------------------------------------- +rem Installiere Windows11Debloater +rem https://github.com/Raphire/Win11Debloat +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 --- Lade Debloater .ZIP +set BASEURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/skripte +set PROG=Win11Debloat-master.zip +curl -kLO %BASEURL%/%PROG% +powershell.exe -command "Expand-Archive -Force -Path %PROG% -DestinationPath . " +CD Win11Debloat-master +powershell.exe -ExecutionPolicy Unrestricted -File "Win11Debloat.ps1" -Silent -RunDefaults -RemoveGamingApps -RemoveCommApps -RemoveW11Outlook -DisableBing -DisableTelemetry -DisableLockscreenTips -TaskbarAlignLeft -RevertContextMenu -ShowKnownFileExt -HideSearchTb -HideTaskview -DisableCopilot -DisableWidgets -HideChat -DisableSuggestions -HideDupliDrive diff --git a/skripte/script_hardening_win10.cmd b/skripte/script_hardening_win10.cmd new file mode 100644 index 0000000..9c50fbd --- /dev/null +++ b/skripte/script_hardening_win10.cmd @@ -0,0 +1,139 @@ +@echo off +:: Stand 2024-07-17 +echo -------------------------------------------------------------------------- +echo hardening Windows 10 +echo -------------------------------------------------------------------------- + +:: The command below creates the restore point, you can do it manually, too. +powershell.exe enable-computerrestore -drive c:\ +powershell.exe vssadmin resize shadowstorage /on=c: /for=c: /maxsize=5000MB +:: checkpoint-computer -description "beforehardening" +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v SystemRestorePointCreationFrequency /t REG_DWORD /d 20 /f +powershell.exe -ExecutionPolicy Bypass -Command "Checkpoint-Computer -Description 'BeforeSecurityHardening' -RestorePointType 'MODIFY_SETTINGS'" + +:: Disable CMD.exe +reg add "HKCU\Software\Policies\Microsoft\Windows\System" /v DisableCMD /t REG_DWORD /d 0x2 /f + +:: Block remote commands https://docs.microsoft.com/en-us/windows/win32/com/enabledcom +reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\OLE" /v EnableDCOM /t REG_SZ /d N /F + +:: Disable autorun/autoplay on all drives +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v NoAutoplayfornonVolume /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoAutorun /t REG_DWORD /d 1 /f + +:: Disable IPv6 +:: https://support.microsoft.com/en-us/help/929852/guidance-for-configuring-ipv6-in-windows-for-advanced-users +reg add "HKLM\SYSTEM\CurrentControlSet\services\tcpip6\parameters" /v DisabledComponents /t REG_DWORD /d 0xFF /f + +:: Stop NetBIOS over TCP/IP +wmic /interactive:off nicconfig where TcpipNetbiosOptions=0 call SetTcpipNetbios 2 +wmic /interactive:off nicconfig where TcpipNetbiosOptions=1 call SetTcpipNetbios 2 +:: Disable NTLMv1 +powershell.exe Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol +reg add "HKLM\SYSTEM\CurrentControlSet\Services\mrxsmb10" /v Start /t REG_DWORD /d 4 /f + +:: Disable (c|w)script.exe to prevent the system from running VBS scripts +:: --------------------- +reg add "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v Enabled /t REG_DWORD /d 0 /f +reg add "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v ActiveDebugging /t REG_SZ /d 1 /f +reg add "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v DisplayLogo /t REG_SZ /d 1 /f +reg add "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v SilentTerminate /t REG_SZ /d 0 /f +reg add "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v UseWINSAFER /t REG_SZ /d 1 /f + +:: Disables DNS multicast, smart mutli-homed resolution, netbios, powershellv2, printer driver download and printing over http, icmp redirect +:: Enables UAC and sets to always notify, Safe DLL loading (DLL Hijacking prevention), saving zone information, explorer DEP, explorer shell protocol protected mode +:: --------------------- +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /v EnableMulticast /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /v DisableSmartNameResolution /t REG_DWORD /d 1 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" /v DisableParallelAandAAAA /t REG_DWORD /d 1 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v SMB1 /t REG_DWORD /d 0 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v IGMPLevel /t REG_DWORD /d 0 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v DisableIPSourceRouting /t REG_DWORD /d 2 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v EnableICMPRedirect /t REG_DWORD /d 0 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v DisableIPSourceRouting /t REG_DWORD /d 2 /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableVirtualization /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 2 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v SafeDLLSearchMode /t REG_DWORD /d 1 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v ProtectionMode /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v SaveZoneInformation /t REG_DWORD /d 2 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v NoDataExecutionPrevention /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v NoHeapTerminationOnCorruption /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v PreXPSP2ShellProtocolBehavior /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers" /v DisableWebPnPDownload /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers" /v DisableHTTPPrinting /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\config" /v AutoConnectAllowedOEM /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy" /v fMinimizeConnections /t REG_DWORD /d 1 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\Netbt\Parameters" /v NoNameReleaseOnDemand /t REG_DWORD /d 1 /f +wmic /interactive:off nicconfig where (TcpipNetbiosOptions=0 OR TcpipNetbiosOptions=1) call SetTcpipNetbios 2 +powershell.exe Disable-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2 -norestart +powershell.exe Disable-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root -norestart + +::####################################################################### +:: Harden lsass to help protect against credential dumping (Mimikatz) +:: Configures lsass.exe as a protected process and disables wdigest +:: Enables delegation of non-exported credentials which enables support for Restricted Admin Mode or Remote Credential Guard +:: https://technet.microsoft.com/en-us/library/dn408187(v=ws.11).aspx +:: https://medium.com/blue-team/preventing-mimikatz-attacks-ed283e7ebdd5 +:: --------------------- +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\LSASS.exe" /v AuditLevel /t REG_DWORD /d 00000008 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v RunAsPPL /t REG_DWORD /d 00000001 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v DisableRestrictedAdmin /t REG_DWORD /d 00000000 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v DisableRestrictedAdminOutboundCreds /t REG_DWORD /d 00000001 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest" /v UseLogonCredential /t REG_DWORD /d 0 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest" /v Negotiate /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation" /v AllowProtectedCreds /t REG_DWORD /d 1 /f + +:: Uninstall common extra apps found on a lot of Win10 installs +:: Obviously do a quick review to ensure it isn't removing any apps you or your user need to use. +:: https://docs.microsoft.com/en-us/windows/application-management/apps-in-windows-10 +:: PowerShell command to reinstall all pre-installed apps below +:: Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} +powershell.exe -command "Get-AppxPackage *Microsoft.BingWeather* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.DesktopAppInstaller* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.GetHelp* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.Getstarted* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.Messaging* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.Microsoft3DViewer* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.MicrosoftOfficeHub* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.MicrosoftSolitaireCollection* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.MicrosoftStickyNotes* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.MixedReality.Portal* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.Office.OneNote* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.OneConnect* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.Print3D* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.SkypeApp* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.Wallet* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.WebMediaExtensions* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.WebpImageExtension* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.WindowsAlarms* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.WindowsCamera* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *microsoft.windowscommunicationsapps* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.WindowsFeedbackHub* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.WindowsMaps* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.WindowsSoundRecorder* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.Xbox.TCUI* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.XboxApp* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.XboxGameOverlay* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.XboxGamingOverlay* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.XboxIdentityProvider* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.XboxSpeechToTextOverlay* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.YourPhone* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.ZuneMusic* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.ZuneVideo* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.WindowsFeedback* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Windows.ContactSupport* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *PandoraMedia* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *AdobeSystemIncorporated. AdobePhotoshop* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Duolingo* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.BingNews* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.Office.Sway* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.Advertising.Xaml* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.Services.Store.Engagement* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *ActiproSoftware* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *EclipseManager* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *SpotifyAB.SpotifyMusic* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *king.com.* -AllUsers | Remove-AppxPackage" +powershell.exe -command "Get-AppxPackage *Microsoft.NET.Native.Framework.1.* -AllUsers | Remove-AppxPackage" + diff --git a/skripte/script_onedrive_deinstallieren.cmd b/skripte/script_onedrive_deinstallieren.cmd new file mode 100644 index 0000000..1468a12 --- /dev/null +++ b/skripte/script_onedrive_deinstallieren.cmd @@ -0,0 +1,28 @@ + +set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe" +set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe" + +echo OneDrive beenden +taskkill /f /im OneDrive.exe +ping 127.0.0.1 -n 3 + +echo OneDrive deinstallieren +if exist %x64% ( +%x64% /uninstall +) else ( +%x86% /uninstall +) +ping 127.0.0.1 -n 3 + +echo OneDrive letzte Reste entfernen +rd "%USERPROFILE%\OneDrive" /Q /S +rd "C:\OneDriveTemp" /Q /S +rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S +rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S +del "%appdata%\Microsoft\Windows\Start Menu\programs\OneDrive.lnk" + +echo OneDrive aus Datei Explorer entfernen +REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f +REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f +REG DELETE "HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f +REG DELETE "HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f diff --git a/skripte/script_win10_std_einstellungen.cmd b/skripte/script_win10_std_einstellungen.cmd new file mode 100644 index 0000000..b3861f4 --- /dev/null +++ b/skripte/script_win10_std_einstellungen.cmd @@ -0,0 +1,78 @@ +@echo off +@rem Stand 2022-09-22 +echo -------------------------------------------------------------------------- +echo I Windows Standardeinstellungen laden... I +echo -------------------------------------------------------------------------- + +rem Registry Eintrag: +rem reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WindowsSettings /f /d "c:\temp\WindowsSettings.cmd > c:\temp\%USERNAME%_WindowsSettings.log" +rem GLPI: reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WindowsSettings /f /d "c:\temp\WindowsSettings.cmd > c:\temp\%%USERNAME%%_WindowsSettings.log" +ping 127.0.0.1 > NUL + +rem ---- OneDrive deaktivieren ------------------------------------------------ +taskkill /f /im OneDrive.exe +REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f +REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f +REG DELETE "HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f +REG DELETE "HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f +REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v "OneDrive" /f + +rem ---- Dateinamenerweiterungen einschalten +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t REG_DWORD /d 0 /f + +rem ---- Energieeinstellungen +powercfg /change standby-timeout-ac 0 +powercfg /change standby-timeout-dc 10 +powercfg /change hibernate-timeout-ac 0 +powercfg /change hibernate-timeout-dc 10 +powercfg /change monitor-timeout-ac 30 +powercfg /change monitor-timeout-dc 10 +powercfg /change disk-timeout-ac 0 +powercfg /change disk-timeout-dc 20 + +rem ---- Fensterrahmen einblenden +rem reg add "HKCU\Control Panel\Desktop" /v UserPreferencesMask /t REG_BINARY /d 9032078010000000 /f +rem reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v BorderWidth /t REG_SZ /d "-15" /f +rem reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v PaddedBorderWidth /t REG_SZ /d "-15" /f + +rem ---- FastBoot ausschalten +reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f + +rem ---- Energiesparplan auf Höchstleistung setzen +powercfg /SETACTIVE /SCHEME_MIN + +rem ---- Beim Zuklappen des Bildschirms nichts unternehmen +powercfg /SETDCVALUEINDEX SCHEME_MIN SUB_BUTTONS LIDACTION 0 +powercfg /SETACVALUEINDEX SCHEME_MIN SUB_BUTTONS LIDACTION 0 + +rem ---- Beim drücken des Netzschalters herunterfahren +powercfg /SETDCVALUEINDEX SCHEME_MIN SUB_BUTTONS PBUTTONACTION 3 +powercfg /SETACVALUEINDEX SCHEME_MIN SUB_BUTTONS PBUTTONACTION 3 + +rem ---- Beim drücken der Energiespartaste energie sparen +powercfg /SETDCVALUEINDEX SCHEME_MIN SUB_BUTTONS SleepButtonAction 1 +powercfg /SETACVALUEINDEX SCHEME_MIN SUB_BUTTONS SleepButtonAction 1 + +rem ---- Cortana & Taskansicht ausschalten +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowCortanaButton /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowTaskViewButton /t REG_DWORD /d 0 /f + +rem ---- Schaltet den Newsfeed in der Taskleiste ab +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Feeds" /v ShellFeedsTaskbarViewMode /t REG_DWORD /d 2 /f + +rem ---- Zeige alle Symbole in der Taskleiste +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v EnableAutoTray /t REG_DWORD /d 0 /f + +rem ---- Live Kacheln im Startmenue abschalten +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v NoTileApplicationNotification /t REG_DWORD /d 1 /f + +rem ---- 3D-Objects Ordner im Explorer ausblenden +reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" /v {0DB7E03F-FC29-4DC6-9020-FF41B59E513A} /f + +rem ---- Schalte Newsfeed in der Taskleiste bei Windows 10 21H1 ab +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Feeds" /v ShellFeedsTaskbarViewMode /t REG_DWORD /d 2 /f + +rem ---- Logoff! +rem shutdown -L + diff --git a/skripte/script_win11_std_einstellungen.cmd b/skripte/script_win11_std_einstellungen.cmd new file mode 100644 index 0000000..1d923d7 --- /dev/null +++ b/skripte/script_win11_std_einstellungen.cmd @@ -0,0 +1,86 @@ +@echo off +@rem Stand 2023-12-03 +echo -------------------------------------------------------------------------- +echo I Windows Standardeinstellungen laden... I +echo -------------------------------------------------------------------------- + +rem Registry Eintrag: +rem reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WindowsSettings /f /d "c:\temp\WindowsSettings.cmd > c:\temp\%USERNAME%_WindowsSettings.log" +rem GLPI: reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WindowsSettings /f /d "c:\temp\WindowsSettings.cmd > c:\temp\%%USERNAME%%_WindowsSettings.log" +ping 127.0.0.1 > NUL + +rem ---- Windows 11 Tweaks ---------------------------------------------------- +rem +rem --- Startmenü links +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarAl /t REG_DWORD /d 0 /f +rem --- Wetter-/Newswidget abschalten +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarDa /t REG_DWORD /d 0 /f +rem --- Altes Kontextmenue +reg add "HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /v Standard /t REG_SZ /f +rem --- keine Bing Vorschläge im Startmenü +reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /F +rem --- Telemetrie reduzieren +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 1 /F +rem --- Cortana abschalten +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsSearch" /v AllowCortana /t REG_DWORD /d 0 /F +rem --- Snipping Tool deaktivieren bzw. PrintScr Taste freigeben +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\TabletPC" /v DisableSnippingTool /t REG_DWORD /d 1 /F + +rem --- Bypass TPM-Check +rem reg add "HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup" /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 + +rem ---- OneDrive deaktivieren ------------------------------------------------ +taskkill /f /im OneDrive.exe +REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f +REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f +REG DELETE "HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f +REG DELETE "HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f +REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v "OneDrive" /f + +rem ---- Dateinamenerweiterungen einschalten OK! +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t REG_DWORD /d 0 /f + +rem ---- Energieeinstellungen OK! +powercfg /change standby-timeout-ac 0 +powercfg /change standby-timeout-dc 10 +powercfg /change hibernate-timeout-ac 0 +powercfg /change hibernate-timeout-dc 10 +powercfg /change monitor-timeout-ac 30 +powercfg /change monitor-timeout-dc 10 +powercfg /change disk-timeout-ac 0 +powercfg /change disk-timeout-dc 20 + +rem ---- FastBoot ausschalten OK! +reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f + +rem ---- Energiesparplan auf Höchstleistung setzen OK! +powercfg /SETACTIVE /SCHEME_MIN + +rem ---- Beim Zuklappen des Bildschirms nichts unternehmen OK! +powercfg /SETDCVALUEINDEX SCHEME_MIN SUB_BUTTONS LIDACTION 0 +powercfg /SETACVALUEINDEX SCHEME_MIN SUB_BUTTONS LIDACTION 0 + +rem ---- Beim drücken des Netzschalters herunterfahren OK! +powercfg /SETDCVALUEINDEX SCHEME_MIN SUB_BUTTONS PBUTTONACTION 3 +powercfg /SETACVALUEINDEX SCHEME_MIN SUB_BUTTONS PBUTTONACTION 3 + +rem ---- Cortana & Taskansicht ausschalten OK! +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowCortanaButton /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowTaskViewButton /t REG_DWORD /d 0 /f + +rem ---- Zeige alle Symbole in der Taskleiste OK! +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v EnableAutoTray /t REG_DWORD /d 0 /f + +rem ---- Live Kacheln im Startmenue abschalten OK! +reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v NoTileApplicationNotification /t REG_DWORD /d 1 /f + +rem ---- 3D-Objects Ordner im Explorer ausblenden - REG nicht gefunden +reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace" /v {0DB7E03F-FC29-4DC6-9020-FF41B59E513A} /f + +rem ---- Schalte Newsfeed in der Taskleiste ab OK! +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Feeds" /v ShellFeedsTaskbarViewMode /t REG_DWORD /d 2 /f + +rem ---- Logoff! +rem shutdown -L + diff --git a/source.cmd b/source.cmd new file mode 100644 index 0000000..eeefa7b --- /dev/null +++ b/source.cmd @@ -0,0 +1,5 @@ +:: ------------------------------------------- +:: Make this Project movable +:: ------------------------------------------- + +set GITURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main diff --git a/standardsoftware/README.md b/standardsoftware/README.md new file mode 100644 index 0000000..4d5d8c3 --- /dev/null +++ b/standardsoftware/README.md @@ -0,0 +1,34 @@ +# Standardsoftware- +* install_7zip.cmd - https://7-zip.org/ +* install_audacity.cmd - https://github.com/audacity/audacity/releases +* install_blender.cmd - https://ftp.halifax.rwth-aachen.de/blender/release/ +* install_chromium.cmd - https://github.com/Hibbiki/chromium-win64/releases +* install_double_commander.cmd - +* install_filezilla_client.cmd - +* install_firefox_msi.cmd - https://download-installer.cdn.mozilla.net/pub/firefox/releases/ +* install_firefox.cmd - https://download-installer.cdn.mozilla.net/pub/firefox/releases/latest/ +* install_freecad.cmd - https://github.com/FreeCAD/FreeCAD/releases +* install_gimp.cmd - https://download.gimp.org/gimp/ +* install_glogg.cmd - http://glogg.bonnefon.org/download.html +* install_greenshot.cmd - https://github.com/greenshot/greenshot/releases/ +* install_handbrake.cmd - +* install_inkscape.cmd - https://inkscape.org/release/inkscape-1.4/windows/64-bit/msi/?redirected=1 +* install_keepass.cmd - https://github.com/keepassxreboot/keepassxc/releases +* install_krita.cmd - https://download.kde.org/stable/krita/ +* install_libreoffice_x64.cmd - https://download.documentfoundation.org/libreoffice/stable/ +* install_libreoffice_x86.cmd - https://download.documentfoundation.org/libreoffice/stable/ +* install_librewolf.cmd - https://gitlab.com/librewolf-community/browser/bsys6/-/releases +* install_microsip.cmd - https://www.microsip.org/downloads +* install_mp3tag.cmd - https://www.mp3tag.de/download.html +* install_notepad++.cmd - https://github.com/notepad-plus-plus/notepad-plus-plus/releases +* install_obs.cmd - https://obsproject.com/de/download +* install_pdf24.cmd - https://tools.pdf24.org/de/creator +* install_putty.cmd - https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html +* install_rdc-manager.cmd - +* install_sumatrapdf.cmd - https://www.sumatrapdfreader.org/download-free-pdf-viewer +* install_thunderbird.cmd - https://www.thunderbird.net/de/thunderbird/all/ +* install_vbox.cmd - https://download.virtualbox.org/virtualbox/7.1.4/ +* install_veracrypt.cmd - +* install_vlc.cmd - https://www.videolan.org/ +* install_waterfox.cmd - https://www.waterfox.net/download/ +* install_xournal.cmd - https://github.com/xournalpp/xournalpp/releases \ No newline at end of file diff --git a/standardsoftware/install_7zip.cmd b/standardsoftware/install_7zip.cmd new file mode 100644 index 0000000..01c65bf --- /dev/null +++ b/standardsoftware/install_7zip.cmd @@ -0,0 +1,25 @@ +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 VERS=2408 +set BASEURL=https://7-zip.org/a +set PROG=7z%VERS%-x64.msi + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log + +rem ---- Beispiele --------------------------------------------- +rem %PROG% /S +rem %PROG% /VERYSILENT /NORESTART /ALLUSERS +rem %PROG% /install /quiet /norestart +rem %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log diff --git a/standardsoftware/install_audacity.cmd b/standardsoftware/install_audacity.cmd new file mode 100644 index 0000000..02824a6 --- /dev/null +++ b/standardsoftware/install_audacity.cmd @@ -0,0 +1,31 @@ +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 VER=3.5.1 +set BASEURL=https://github.com/audacity/audacity/releases/download/Audacity-%VER% +set PROG=audacity-win-%VER-64bit.exe + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /VERYSILENT /NORESTART /ALLUSERS + + +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 ---- Beispiele --------------------------------------------- +rem %PROG% /S +rem %PROG% /VERYSILENT /NORESTART /ALLUSERS +rem %PROG% /install /quiet /norestart +rem %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log diff --git a/standardsoftware/install_blender.cmd b/standardsoftware/install_blender.cmd new file mode 100644 index 0000000..20fd22f --- /dev/null +++ b/standardsoftware/install_blender.cmd @@ -0,0 +1,22 @@ +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 --- Major und Minor Version: z.B. MAJ=4.2, MIN=3 ergibt: 4.2.3 +set MAJ=4.2 +set MIN=3 +rem --- Download Basis-URL, Dateiname und TEMP-Verzeichnis +set BASEURL=https://ftp.halifax.rwth-aachen.de/blender/release/Blender%MAJ% +set PROG=blender-%MAJ%.%MIN%-windows-x64.msi + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" ALLUSERS=1 /qn /passive /l %SAVEPATH%\%PROG%.log + diff --git a/standardsoftware/install_chromium.cmd b/standardsoftware/install_chromium.cmd new file mode 100644 index 0000000..56d621b --- /dev/null +++ b/standardsoftware/install_chromium.cmd @@ -0,0 +1,18 @@ +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 BASEURL=https://github.com/Hibbiki/chromium-win64/releases/download/v126.0.6478.62-r1300313 +set PROG=mini_installer.sync.exe + +rem --- Lade Installationsdatei herunter +curl -kL "%BASEURL%/%PROG%" -o %SAVEPATH%\%PROG% + +%PROG% --install --silent --system-level + diff --git a/standardsoftware/install_double_commander.cmd b/standardsoftware/install_double_commander.cmd new file mode 100644 index 0000000..5ee46f9 --- /dev/null +++ b/standardsoftware/install_double_commander.cmd @@ -0,0 +1,30 @@ +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 BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=doublecmd-1.1.16.i386-win32.msi + +rem --- Lade Installationsdatei herunter +curl -kL %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 -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & %PROG% /Q + +rem ---- Beispiele --------------------------------------------- +rem %PROG% /S +rem %PROG% /VERYSILENT /NORESTART /ALLUSERS +rem %PROG% /install /quiet /norestart + diff --git a/standardsoftware/install_filezilla_client.cmd b/standardsoftware/install_filezilla_client.cmd new file mode 100644 index 0000000..9c28455 --- /dev/null +++ b/standardsoftware/install_filezilla_client.cmd @@ -0,0 +1,18 @@ +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 BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=FileZilla_3.66.1_win64-setup.exe + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S /user=all diff --git a/standardsoftware/install_firefox.cmd b/standardsoftware/install_firefox.cmd new file mode 100644 index 0000000..036f34a --- /dev/null +++ b/standardsoftware/install_firefox.cmd @@ -0,0 +1,29 @@ +rem ------------------------------------------------------------ +rem Installationsroutine +rem ------------------------------------------------------------ + +rem https://download-installer.cdn.mozilla.net/pub/firefox/releases/120.0.1/win64/de/Firefox%20Setup%20120.0.1.msi + +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 BASEURL=https://download.mozilla.org/?product=firefox-stub&os=win64&lang=de +set PROG=FirefoxSetup.exe + +rem --- Lade Installationsdatei herunter +curl -kL "%BASEURL%" -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +( +echo [Install] +echo TaskbarShortcut=true +echo DesktopShortcut=true +echo StartMenuShortcuts=true +echo RegisterDefaultAgent=true +) > FirefoxInstaller_setup.ini + +%PROG% /INI=FirefoxInstaller_setup.ini + diff --git a/standardsoftware/install_firefox_msi.cmd b/standardsoftware/install_firefox_msi.cmd new file mode 100644 index 0000000..c55fc10 --- /dev/null +++ b/standardsoftware/install_firefox_msi.cmd @@ -0,0 +1,18 @@ +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 VERSION=132.0 +set BASEURL=https://download-installer.cdn.mozilla.net/pub/firefox/releases/%VERSION%/win64/de +set PROG=Firefox%%20Setup%%20%VERSION%.msi + +rem --- Lade Installationsdatei herunter +curl -kL "%BASEURL%" -o %PROG% + +%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log TASKBAR_SHORTCUT=true DESKTOP_SHORTCUT=false diff --git a/standardsoftware/install_freecad.cmd b/standardsoftware/install_freecad.cmd new file mode 100644 index 0000000..41fe386 --- /dev/null +++ b/standardsoftware/install_freecad.cmd @@ -0,0 +1,19 @@ +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 VERSION=0.21.2 +set BASEURL=https://github.com/FreeCAD/FreeCAD/releases/download/%VERSION% +set PROG=FreeCAD-%VERSION%-WIN-x64-installer-1.exe + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S diff --git a/standardsoftware/install_gimp.cmd b/standardsoftware/install_gimp.cmd new file mode 100644 index 0000000..c0e8dfc --- /dev/null +++ b/standardsoftware/install_gimp.cmd @@ -0,0 +1,21 @@ +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% + +set MAJ=2.99 +set MIN=18 +rem --- Download Basis-URL, Dateiname und TEMP-Verzeichnis +set BASEURL=https://download.gimp.org/gimp/v%MAJ%/windows +set PROG=gimp-%MAJ%.%MIN%%-setup.exe + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S /VERYSILENT /NORESTART /ALLUSERS + diff --git a/standardsoftware/install_glogg.cmd b/standardsoftware/install_glogg.cmd new file mode 100644 index 0000000..b7a805d --- /dev/null +++ b/standardsoftware/install_glogg.cmd @@ -0,0 +1,33 @@ +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 BASEURL=http://glogg.bonnefon.org/files +set PROG=glogg-latest-x86_64-setup.exe + +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S + + +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 +rem %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log diff --git a/standardsoftware/install_greenshot.cmd b/standardsoftware/install_greenshot.cmd new file mode 100644 index 0000000..255a0de --- /dev/null +++ b/standardsoftware/install_greenshot.cmd @@ -0,0 +1,28 @@ +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 VERS=1.2.10.6 +set BASEURL=https://github.com/greenshot/greenshot/releases/download/Greenshot-RELEASE-%VERS% +set PROG=Greenshot-INSTALLER-%VERS%-RELEASE.exe + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +( +echo [Setup] +echo Lang=de +echo Dir= +echo Group=Greenshot +echo NoIcons=0 +echo Tasks= +) > greenshot.inf + +%PROG% /NORESTART /VERYSILENT /SUPPRESSMSGBOXES /SP- /LOADINF=greenshot.inf diff --git a/standardsoftware/install_handbrake.cmd b/standardsoftware/install_handbrake.cmd new file mode 100644 index 0000000..1309bcd --- /dev/null +++ b/standardsoftware/install_handbrake.cmd @@ -0,0 +1,28 @@ +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 --- Installiere .NET Runtime +set BASEURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/essentiell +set PROG=install_windowsdesktop-runtime-6.0.23-x64.cmd +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & call %PROG% + +rem --- Download Basis-URL, Dateiname und TEMP-Verzeichnis +set BASEURL=https://github.com/HandBrake/HandBrake/releases/download/1.7.1 +set PROG=HandBrake-1.7.1-x86_64-Win_GUI.exe +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% +rem --- Silent-Installation des Programms: +%PROG% /S + + + + + + + diff --git a/standardsoftware/install_inkscape.cmd b/standardsoftware/install_inkscape.cmd new file mode 100644 index 0000000..e60b785 --- /dev/null +++ b/standardsoftware/install_inkscape.cmd @@ -0,0 +1,30 @@ +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 BASEURL=https://inkscape.org/gallery/item/53697 +set PROG=inkscape-1.4_2024-10-11_86a8ad7-x64.msi + +rem --- Lade Installationsdatei herunter +curl -kL %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 -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & %PROG% /Q + +rem ---- Beispiele --------------------------------------------- +rem %PROG% /S +rem %PROG% /VERYSILENT /NORESTART /ALLUSERS +rem %PROG% /install /quiet /norestart +rem %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log diff --git a/standardsoftware/install_keepass.cmd b/standardsoftware/install_keepass.cmd new file mode 100644 index 0000000..aadbf7a --- /dev/null +++ b/standardsoftware/install_keepass.cmd @@ -0,0 +1,25 @@ +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 --- Installiere C++ Redistibutable +set BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=VC_redist.x64.exe +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & %PROG% /Q + +rem --- Download Basis-URL, Dateiname und TEMP-Verzeichnis +set VERSION=2.7.9 +set BASEURL=https://github.com/keepassxreboot/keepassxc/releases/download/%VERSION% +set PROG=KeePassXC-%VERSION%-Win64.msi + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log + diff --git a/standardsoftware/install_krita.cmd b/standardsoftware/install_krita.cmd new file mode 100644 index 0000000..18427a6 --- /dev/null +++ b/standardsoftware/install_krita.cmd @@ -0,0 +1,31 @@ +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 VERS=5.2.8 +set BASEURL=https://download.kde.org/stable/krita/%VERS% +set PROG=krita-x64-%VERS%-setup.exe + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S + + +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 -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & %PROG% /Q + +rem ---- Beispiele --------------------------------------------- +rem %PROG% /S +rem %PROG% /VERYSILENT /NORESTART /ALLUSERS +rem %PROG% /install /quiet /norestart +rem %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log diff --git a/standardsoftware/install_libreoffice_x64.cmd b/standardsoftware/install_libreoffice_x64.cmd new file mode 100644 index 0000000..21cdca7 --- /dev/null +++ b/standardsoftware/install_libreoffice_x64.cmd @@ -0,0 +1,24 @@ +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 VERSION=24.8.3 +set ARCH1=x86_64 +set ARCH2=x86-64 +set BASEURL=https://download.documentfoundation.org/libreoffice/stable/%VERSION%/win/%ARCH1% +set PROG=LibreOffice_%VERSION%_Win_%ARCH2%.msi +set HLPR=LibreOffice_%VERSION%_Win_%ARCH2%_helppack_de.msi +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% +rem --- Lade Hilfepack herunter +curl -kL %BASEURL%/%HLPR% -o %SAVEPATH%\%HLPR% + +rem --- Silent-Installation des Programms: +msiexec /i %PROG% /qn /norestart PRODUCTLANGUAGE=1031 LANGUAGE=1031 RebootYesNo=No QUICKSTART=0 UI_LANGS=de ADDLOCAL=ALL /l %SAVEPATH%\%PROG%.log +msiexec /i %HLPR% /qn /norestart \ No newline at end of file diff --git a/standardsoftware/install_libreoffice_x86.cmd b/standardsoftware/install_libreoffice_x86.cmd new file mode 100644 index 0000000..9e89647 --- /dev/null +++ b/standardsoftware/install_libreoffice_x86.cmd @@ -0,0 +1,23 @@ +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 VERSION=24.8.3 +set ARCH=x86 +set BASEURL=https://download.documentfoundation.org/libreoffice/stable/%VERSION%/win/%ARCH% +set PROG=LibreOffice_%VERSION%_Win_%ARCH%.msi +set HLPR=LibreOffice_%VERSION%_Win_%ARCH%_helppack_de.msi +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% +rem --- Lade Hilfepack herunter +curl -kL %BASEURL%/%HLPR% -o %SAVEPATH%\%HLPR% + + +rem --- Silent-Installation des Programms: +msiexec /i %PROG% /qn /norestart PRODUCTLANGUAGE=1031 LANGUAGE=1031 RebootYesNo=No QUICKSTART=0 UI_LANGS=de ADDLOCAL=ALL /l %SAVEPATH%\%PROG%.log diff --git a/standardsoftware/install_librewolf.cmd b/standardsoftware/install_librewolf.cmd new file mode 100644 index 0000000..724e3ff --- /dev/null +++ b/standardsoftware/install_librewolf.cmd @@ -0,0 +1,18 @@ +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% + +set VERS=132.0-1 +set BASEURL=https://gitlab.com/api/v4/projects/44042130/packages/generic/librewolf/%VERS% +set PROG=librewolf-%VERS%-windows-x86_64-setup.exe + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S diff --git a/standardsoftware/install_microsip.cmd b/standardsoftware/install_microsip.cmd new file mode 100644 index 0000000..88ed8f1 --- /dev/null +++ b/standardsoftware/install_microsip.cmd @@ -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 VERS=3.21.5 +set BASEURL=https://www.microsip.org/download/MicroSIP-%VERS%.zip?6 +set PROG=MicroSIP-%VERS%.zip + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL% -o %SAVEPATH%\%PROG% + +rem --- Unzipping.... +powershell.exe "& {Expand-Archive %PROG% -DestinationPath %SAVEPATH%\MSIP}" + +rem --- Silent-Installation des Programms: +MKDIR "%Programfiles(x86)%\MicroSIP" +COPY %SAVEPATH%\MSIP\*.* "%Programfiles(x86)%\MicroSIP\" + +rem --- Verknüpfung +set VBS=link.vbs +echo Set oWS = WScript.CreateObject("WScript.Shell") >%VBS% +echo sLinkFile = "C:\Users\Public\Desktop\MicroSIP.lnk" >>%VBS% +echo Set oLink = oWS.CreateShortcut(sLinkFile) >>%VBS% +echo oLink.TargetPath = "%Programfiles(x86)%\MicroSIP\microsip.exe" >>%VBS% +echo oLink.Save >>%VBS% + +cscript /nologo %VBS% + +rem MKLINK C:\Users\Public\Desktop\MicroSIP "%Programfiles(x86)%\MicroSIP\microsip.exe" \ No newline at end of file diff --git a/standardsoftware/install_mp3tag.cmd b/standardsoftware/install_mp3tag.cmd new file mode 100644 index 0000000..3f14af7 --- /dev/null +++ b/standardsoftware/install_mp3tag.cmd @@ -0,0 +1,34 @@ +rem ------------------------------------------------------------ +rem Installationsroutine +rem ------------------------------------------------------------ + +rem https://download-installer.cdn.mozilla.net/pub/firefox/releases/120.0.1/win64/de/Firefox%20Setup%20120.0.1.msi + +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 VERS=327a +set BASEURL=https://download.mp3tag.de +set PROG=mp3tagv%VERS%-x64-setup.exe + +rem --- Lade Installationsdatei herunter +curl -kL "%BASEURL%/%PROG%" -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +( +echo [shortcuts] +echo startmenu=1 +echo desktop=1 +echo explorer=1 +echo quicklaunch=1 +echo [addons] +echo quickpick=1 +echo [language] +echo language=1031 +) > Mp3tagSetup.ini + +rem %PROG% /INI=mp3tag.ini +%PROG% /S /D=%SYSTEMDRIVE\%ProgramFiles%\Mp3tag \ No newline at end of file diff --git a/standardsoftware/install_notepad++.cmd b/standardsoftware/install_notepad++.cmd new file mode 100644 index 0000000..f4fddf8 --- /dev/null +++ b/standardsoftware/install_notepad++.cmd @@ -0,0 +1,22 @@ +rem ------------------------------------------------------------ +rem Installiere Notepad++ +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% + +set VERS=8.7.1 +set BASEURL=https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v%VERS% +set PROG=npp.%VERS%.Installer.exe + +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Deinstalliere alte Version +if exist "%%programfiles%%\Notepad++\uninstall.exe" "%%programfiles%%\Notepad++\uninstall.exe" /S +if exist "%%programfiles(x86)%%\ Notepad++\uninstall.exe" "%%programfiles(x86)%%\Notepad++\uninstall.exe" /S + +rem --- Installiere Notepad++ +%PROG% /S /noUpdater + diff --git a/standardsoftware/install_obs.cmd b/standardsoftware/install_obs.cmd new file mode 100644 index 0000000..4c2a791 --- /dev/null +++ b/standardsoftware/install_obs.cmd @@ -0,0 +1,24 @@ +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 VERSION=30.2.3 +set BASEURL=https://github.com/obsproject/obs-studio/releases/download/%VERSION% +set PROG=OBS-Studio-%VERSION%-Windows-Installer.exe + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S + +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 -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & %PROG% /Q diff --git a/standardsoftware/install_pdf24.cmd b/standardsoftware/install_pdf24.cmd new file mode 100644 index 0000000..fccb92a --- /dev/null +++ b/standardsoftware/install_pdf24.cmd @@ -0,0 +1,59 @@ +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 VERS=11.20.1 +set BASEURL=https://download.pdf24.org +set PROG=pdf24-creator-%VERS%-x64.msi + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +( +echo Windows Registry Editor Version 5.00 +echo +echo [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PDFPrint] +echo "Language"="German" +echo "assistant.closeAfterSave"=dword:00000001 +echo "assistant.closeAfterEmail"=dword:00000001 +echo "assistant.openPDFAfterSave"=dword:00000000 +echo "assistant.mailNamePrompt"=dword:00000001 +echo "assistant.joinFilesUseFirstName"=dword:00000000 +echo "assistant.fixedSaveDir"="" +echo "EmailInterface"="mapi" +echo "NoTrayIcon"=dword:00000000 +echo "NoOnlineConverter"=dword:00000001 +echo "NoShellContextMenuExtension"=dword:00000000 +echo "NoShellFileContextMenuExtension"=dword:00000000 +echo "NoShellDirectoryContextMenuExtension"=dword:00000000 +echo "NoShellBackgroundContextMenuExtension"=dword:00000000 +echo "NoOnlinePdfTools"=dword:00000001 +echo "NoCloudPrint"=dword:00000001 +echo "NoEmbeddedBrowser"=dword:00000001 +echo "NoPDF24MailInterface"=dword:00000000 +echo "NoTwainImport"=dword:00000000 +echo "NoScreenCapture"=dword:00000000 +echo "NoFax"=dword:00000001 +echo "NoFaxProfile"=dword:00000001 +echo "NoMail"=dword:00000000 +echo "NoDelayedToForegroundOnNewFile"=dword:00000000 +echo "NoOCR"=dword:00000000 +echo "DeletePrintJobsWithError"=dword:00000000 +) > PDF24_stdsettings.reg + +rem --- installiere programm +%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /log c:\temp\pdf-creator24.log REGISTERREADER=No AUTOUPDATE=No FAXPRINTER=No + +rem --- warte 10 sek. +ping -n 3 127.0.0.1 + +rem --- importiere standardeinstellungen +reg import PDF24_stdsettings.reg + diff --git a/standardsoftware/install_putty.cmd b/standardsoftware/install_putty.cmd new file mode 100644 index 0000000..cb6657a --- /dev/null +++ b/standardsoftware/install_putty.cmd @@ -0,0 +1,19 @@ +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 VERSION=0.81 +set BASEURL=https://the.earth.li/~sgtatham/putty/%VERSION%/w64 +set PROG=putty-64bit-%VERSION%-installer.msi + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log diff --git a/standardsoftware/install_rdc-manager.cmd b/standardsoftware/install_rdc-manager.cmd new file mode 100644 index 0000000..b33990c --- /dev/null +++ b/standardsoftware/install_rdc-manager.cmd @@ -0,0 +1,24 @@ +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 BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=RemoteDesktopConnectionManager.msi + +rem --- Lade Installationsdatei herunter +curl -kL %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 -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & %PROG% /Q diff --git a/standardsoftware/install_sumatrapdf.cmd b/standardsoftware/install_sumatrapdf.cmd new file mode 100644 index 0000000..a839399 --- /dev/null +++ b/standardsoftware/install_sumatrapdf.cmd @@ -0,0 +1,20 @@ +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 VERS=3.5.2 +set BASEURL=https://files2.sumatrapdfreader.org/software/sumatrapdf/rel/%VERS% +set PROG=SumatraPDF-%VERS%-64-install.exe + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% -s -all-users + diff --git a/standardsoftware/install_thunderbird.cmd b/standardsoftware/install_thunderbird.cmd new file mode 100644 index 0000000..6e7092e --- /dev/null +++ b/standardsoftware/install_thunderbird.cmd @@ -0,0 +1,19 @@ +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 VERSION=132.0 +set BASEURL=https://download.mozilla.org/?product=thunderbird-%VERSION%-SSL&os=msi&lang=de +set PROG=ThunderbirdSetup%VERSION%.exe +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S + diff --git a/standardsoftware/install_vbox.cmd b/standardsoftware/install_vbox.cmd new file mode 100644 index 0000000..3333706 --- /dev/null +++ b/standardsoftware/install_vbox.cmd @@ -0,0 +1,41 @@ +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 --- Microsoft Redistributable C++ +curl -kLO https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/essentiell/install_vc_redist_runtime.cmd & call install_vc_redist_runtime.cmd + +rem --- VBOX Version +set VBV=7.1.4 +set VBB=165100 + +rem --- VirtualBox Extension Pack +set BASEURL=https://download.virtualbox.org/virtualbox/%VBV% +set EXTN=Oracle_VM_VirtualBox_Extension_Pack-%VBV%.vbox-extpack +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%EXTN% -o %SAVEPATH%\%EXTN% + +rem --- VirtualBox +set BASEURL=https://download.virtualbox.org/virtualbox/%VBV% +set PROG=VirtualBox-%VBV%-%VBB%-Win.exe +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% +rem --- Silent-Installation des Programms: +%PROG% --silent --msiparams "VBOX_START=0" + +rem --- VirtualBox Konfigurieren +set VMPATH=%SYSTEMDRIVE%\VirtuelleMaschinen +set VBOXMGR="%ProgramFiles%\Oracle\Virtualbox\Vboxmanage.exe" +MKDIR %VMPATH% +%VBOXMGR% extpack install %SAVEPATH%\%EXTN% --accept-license=33d7284dc4a0ece381196fda3cfe2ed0e1e8e7ed7f27b9a9ebc4ee22e24bd23c +%VBOXMGR% setproperty machinefolder %VMPATH% +%VBOXMGR% setextradata global GUI/UpdateDate never + +rem --- Handbuch +set BASEURL=https://download.virtualbox.org/virtualbox/%VBV%/UserManual.pdf +curl -kL https://download.virtualbox.org/virtualbox/%VBV%/UserManual.pdf -o %VMPATH%/UserManual.pdf diff --git a/standardsoftware/install_veracrypt.cmd b/standardsoftware/install_veracrypt.cmd new file mode 100644 index 0000000..f0c5e46 --- /dev/null +++ b/standardsoftware/install_veracrypt.cmd @@ -0,0 +1,19 @@ +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 BASEURL=https://support.ostrachhelp.de/OstrachHELP/binaries/raw/branch/main/win +set PROG=VeraCrypt_Setup_x64_1.26.7.msi + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" ACCEPTLICENSE=YES /passive /l %SAVEPATH%\%PROG%.log + diff --git a/standardsoftware/install_vlc.cmd b/standardsoftware/install_vlc.cmd new file mode 100644 index 0000000..272dc47 --- /dev/null +++ b/standardsoftware/install_vlc.cmd @@ -0,0 +1,20 @@ +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 VERSION=3.0.21 +set BASEURL=http://get.videolan.org/vlc/%VERSION%/win64 +set PROG=vlc-%VERSION%-win64.exe + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /language=de /L=1031 /S + diff --git a/standardsoftware/install_waterfox.cmd b/standardsoftware/install_waterfox.cmd new file mode 100644 index 0000000..59f6fb7 --- /dev/null +++ b/standardsoftware/install_waterfox.cmd @@ -0,0 +1,20 @@ +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 VERS=6.5.0 +set BASEURL=https://cdn1.waterfox.net/waterfox/releases/%VERS%/WINNT_x86_64 +set PROG=Waterfox%%20Setup%%20%VERS%.exe + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S + diff --git a/standardsoftware/install_wireguard.cmd b/standardsoftware/install_wireguard.cmd new file mode 100644 index 0000000..3e19adb --- /dev/null +++ b/standardsoftware/install_wireguard.cmd @@ -0,0 +1,33 @@ +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 BASEURL=https://download.wireguard.com/windows-client +set PROG=wireguard-installer.exe + +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Silent-Installation des Programms: +%PROG% /S + + +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 +rem %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log diff --git a/standardsoftware/install_xournal.cmd b/standardsoftware/install_xournal.cmd new file mode 100644 index 0000000..ccb3b9b --- /dev/null +++ b/standardsoftware/install_xournal.cmd @@ -0,0 +1,34 @@ +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 VERS=1.2.4 +set BASEURL=https://github.com/xournalpp/xournalpp/releases/download/v%VERS% +set PROG=xournalpp-%VERS%-windows.zip + +rem --- Lade Installationsdatei herunter +curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Entpacke .ZIP +powershell.exe -command "Expand-Archive -Force -Path %PROG% -DestinationPath . " + +rem --- Silent-Installation des Programms: +xournalpp-%VERS%-windows.exe /S + + +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 -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & %PROG% /Q + +rem ---- Beispiele --------------------------------------------- +rem %PROG% /S +rem %PROG% /VERYSILENT /NORESTART /ALLUSERS +rem %PROG% /install /quiet /norestart +rem %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log diff --git a/wallpaper/horizon-zero-dawn-ps4-1f-1920x1080.jpg b/wallpaper/horizon-zero-dawn-ps4-1f-1920x1080.jpg new file mode 100644 index 0000000..6d02396 Binary files /dev/null and b/wallpaper/horizon-zero-dawn-ps4-1f-1920x1080.jpg differ diff --git a/win10_initial_install.cmd b/win10_initial_install.cmd new file mode 100644 index 0000000..50844e2 --- /dev/null +++ b/win10_initial_install.cmd @@ -0,0 +1,20 @@ +rem ----------------------------------------------------------------------- +rem Standardinstallation für ein frisch installiertes Windows 10 Pro +rem +rem curl -k -L https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/win10_initial_install.cmd -o start.cmd +rem +rem ----------------------------------------------------------------------- + +set SAVEPATH=%SYSTEMDRIVE%\TEMP\install +MKDIR %SAVEPATH% & CD /D %SAVEPATH% + +rem --- Windows Tweaks +set GITURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main +curl -kLO %GITURL%/skripte/script_win10_std_einstellungen.cmd & call script_win10_std_einstellungen.cmd +curl -kLO %GITURL%/skripte/script_onedrive_deinstallieren.cmd & call script_onedrive_deinstallieren.cmd +curl -kLO %GITURL%/skripte/Windows10Debloater.cmd & call Windows10Debloater.cmd + +rem --- Software-Pack: Essentials +curl -kLO %GITURL%/packs/essentials.cmd & call essentials.cmd +curl -kLO %GITURL%/essentiell/install_backuptools.cmd & call install_backuptools.cmd +CD /D %SAVEPATH% diff --git a/win11_initial_install.cmd b/win11_initial_install.cmd new file mode 100644 index 0000000..21ff80b --- /dev/null +++ b/win11_initial_install.cmd @@ -0,0 +1,15 @@ +rem ----------------------------------------------------------------------- +rem Standardinstallation für ein frisch installiertes Windows 11 rem +rem ----------------------------------------------------------------------- + +set SAVEPATH=%SYSTEMDRIVE%\TEMP\install +MKDIR %SAVEPATH% & CD /D %SAVEPATH% + +rem --- Windows Tweaks +set GITURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main +curl -kLO %GITURL%/skripte/script_win11_std_einstellungen.cmd & call script_win11_std_einstellungen.cmd +curl -kLO %GITURL%/skripte/script_onedrive_deinstallieren.cmd & call script_onedrive_deinstallieren.cmd +curl -kLO %GITURL%/skripte/Windows11Debloater.cmd & call Windows11Debloater.cmd + +rem --- Software-Pack: Essentials +curl -kLO %GITURL%/packs/essentials.cmd & call essentials.cmd