103 lines
5.2 KiB
Batchfile
103 lines
5.2 KiB
Batchfile
@ECHO off
|
|
|
|
:: Start as administrator
|
|
fltmc >nul 2>&1 || (
|
|
echo Vous devez lancer le programme en tant qu'administrateur.
|
|
PowerShell Start -Verb RunAs '%0' 2> nul || (
|
|
echo Clic droit, Executer en tant qu'administrateur
|
|
pause & exit 1
|
|
)
|
|
exit 0
|
|
)
|
|
|
|
:: === Right click of Windows 10 ==
|
|
REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
|
|
|
|
:: === Disabling the gamebar ==
|
|
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 00000000 /f
|
|
REG ADD "HKEY_CURRENT_USER\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 00000000 /f
|
|
|
|
:: === Disabling widgets ==
|
|
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 00000000 /f
|
|
|
|
:: === Disabling hibernation ==
|
|
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 00000000 /f
|
|
powercfg /H off
|
|
|
|
:: === Disabling the SysMain service ==
|
|
sc stop "SysMain" & sc config "SysMain" start=disabled
|
|
|
|
:: === Added confirmation when trashing ==
|
|
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v ConfirmFileDelete /t REG_DWORD /d 00000001 /f
|
|
|
|
:: === Don't create a Zone:Identify ==
|
|
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v SaveZoneInformation /t REG_DWORD /d 00000001 /f
|
|
|
|
:: === Disables memory integrity ==
|
|
:: see https://support.microsoft.com/en-us/windows/options-to-optimize-gaming-performance-in-windows-11-a255f612-2949-4373-a566-ff6f3f474613
|
|
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v Enabled /t REG_DWORD /d 00000000 /f
|
|
|
|
:: === Application downloads ==
|
|
:: Auto accept ToT
|
|
echo Y | winget list >nul
|
|
|
|
winget install -he Mozilla.Firefox
|
|
winget install -he 7zip.7zip
|
|
winget install -he Discord.Discord
|
|
winget install -he Valve.Steam
|
|
winget install -he voidtools.Everything.Lite
|
|
winget install -he VideoLAN.VLC
|
|
winget install -he File-New-Project.EarTrumpet
|
|
winget install -he EclipseAdoptium.Temurin.17.JDK
|
|
winget install -he Microsoft.VisualStudioCode
|
|
winget install -he GIMP.GIMP
|
|
winget install -he DuongDieuPhap.ImageGlass
|
|
winget install -he ONLYOFFICE.DesktopEditors
|
|
winget install -he PrismLauncher.PrismLauncher
|
|
winget install -he RiotGames.LeagueOfLegends.EUW
|
|
winget install -he RiotGames.Valorant.EU
|
|
winget install -he OBSProject.OBSStudio
|
|
winget install -he Parsec.Parsec
|
|
winget install -he Microsoft.PowerToys
|
|
winget install -he OpenWhisperSystems.Signal
|
|
winget install -he HandBrake.HandBrake
|
|
winget install -he Front.scrcpy+
|
|
winget install -he Obsidian.Obsidian
|
|
winget install -he KDE.KDEConnect
|
|
winget install -he HeroicGamesLauncher.HeroicGamesLauncher
|
|
winget install -he Microsoft.PowerShell
|
|
|
|
:: Install WSL
|
|
wsl --install
|
|
|
|
:: Install Spotify
|
|
powershell -Command "&{[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_on -cache_on -block_update_off"""" | Invoke-Expression"
|
|
|
|
:: === Firefox configuration ==
|
|
"%PROGRAMFILES%\Mozilla Firefox\firefox.exe"
|
|
taskkill /im firefox.exe /F
|
|
|
|
for /F %%i in ('dir /B /S ^"%APPDATA%\Mozilla\Firefox\Profiles\*.default-release^"') do set vbc=%%i
|
|
powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -OutFile %vbc%/user.js"
|
|
|
|
powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/Dark-Reader-Settings.json -OutFile %HOMEPATH%\Downloads\Dark-Reader-Settings.json"
|
|
powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/SponsorBlockConfig.json -OutFile %HOMEPATH%\Downloads\SponsorBlockConfig.json"
|
|
echo La configuration des differents Addons de Firefox est presente dans le dossier %HOMEPATH%\Downloads.
|
|
|
|
:: === C++ Libraries ==
|
|
echo Rend toi sur https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/ et installe les bibliotheques C++.
|
|
|
|
:: === User Diag for drivers ==
|
|
:: powershell -Command "Invoke-WebRequest -Uri https://userdiag.com/download -OutFile %HOMEPATH%\Downloads\UserDiag.exe"
|
|
:: echo Installe les pilotes, pour connaitre la liste des pilotes, utilise UserDiag (cf. dossier Telechargements)
|
|
echo Installe les pilotes, pour connaitre la liste des pilotes, utilise UserDiag (cf. https://userdiag.com/download)
|
|
|
|
:: === W10Privacy ==
|
|
powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/W10Privacy.ini -OutFile %HOMEPATH%\Downloads\W10Privacy.ini"
|
|
echo Ensuite, utilise W10Privacy (https://www.w10privacy.de/deutsch-start/download/) avec le fichier present dans %HOMEPATH%\Downloads (version 4.0.0.1).
|
|
|
|
echo Fais un tour des parametres Windows, apres avoir fait toutes les mises a jour disponible sur le PC.
|
|
echo Enfin, redemarre l'ordinateur
|
|
|
|
pause
|
|
exit /b
|