27 lines
1.2 KiB
Batchfile
27 lines
1.2 KiB
Batchfile
:: ----------------------------------------------------------------
|
|
:: Installiere Windows 11 Debloater
|
|
:: ----------------------------------------------------------------
|
|
|
|
:: --- Option: Download in ein temporäres Verzeichnis
|
|
:: --- Kann für z.B. für GLPI abgeschaltet werden
|
|
set SAVEPATH=%SYSTEMDRIVE%\TEMP\install
|
|
MKDIR %SAVEPATH% & CD /D %SAVEPATH%
|
|
|
|
set VERS=2025.08.16
|
|
set BASEURL=https://github.com/Raphire/Win11Debloat/archive/refs/tags
|
|
set PROG=%VERS%.zip
|
|
|
|
:: --- Lade Programm herunter
|
|
curl -kLO %BASEURL%/%PROG%
|
|
:: --- entpacke Programm
|
|
powershell.exe "& {Expand-Archive %PROG% -Force -DestinationPath .}"
|
|
:: --- lösche .ZIP Datei
|
|
del %PROG%
|
|
:: --- Starte Win11Debloater
|
|
cd Win11Debloat-%VERS%
|
|
:: --- ...für aktuellen User
|
|
powershell -ExecutionPolicy Bypass -Command "& Start-Process powershell.exe -Wait -PassThru -ArgumentList \"-executionpolicy bypass -File Win11Debloat.ps1 -Silent -RunDefaults\" -Verb RunAs "
|
|
:: --- ..für zukünftige Benutzer
|
|
powershell -ExecutionPolicy Bypass -Command "& Start-Process powershell.exe -Wait -PassThru -ArgumentList \"-executionpolicy bypass -File Win11Debloat.ps1 -Silent -RunDefaults -Sysprep\" -Verb RunAs "
|
|
|