2022-09-30 03:33:13 +02:00
@ 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 || (
2022-10-17 20:50:20 +02:00
echo Clic droit, Executer en tant qu'administrateur
2022-09-30 03:33:13 +02:00
pause & exit 1
)
exit 0
)
2022-10-08 02:14:38 +02:00
: : Right click of Windows 10
2022-09-30 03:33:13 +02:00
REG ADD " HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 " /f /ve
2022-10-08 02:14:38 +02:00
: : Disabling the gamebar
2022-09-30 03:33:13 +02:00
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
2022-10-08 02:14:38 +02:00
: : Disabling widgets
2022-09-30 03:33:13 +02:00
REG ADD " HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Dsh " /v AllowNewsAndInterests /t REG_DWORD /d 00000000 /f
2022-10-08 02:14:38 +02:00
: : Disabling hibernation
2022-09-30 03:33:13 +02:00
REG ADD " HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power " /v HiberbootEnabled /t REG_DWORD /d 00000000 /f
powercfg /H off
2022-10-08 02:14:38 +02:00
: : Disabling the SysMain service
2022-09-30 03:33:13 +02:00
sc stop " SysMain " & sc config " SysMain " start=disabled
2022-10-08 02:14:38 +02:00
: : Added confirmation when trashing
2022-09-30 03:33:13 +02:00
REG ADD " HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer " /v ConfirmFileDelete /t REG_DWORD /d 00000001 /f
2022-10-08 02:14:38 +02:00
: : Don't create a Zone:Identify
2022-09-30 12:43:44 +02:00
REG ADD " HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments " /v SaveZoneInformation /t REG_DWORD /d 00000001 /f
2022-09-30 03:33:13 +02:00
2022-10-08 02:14:38 +02:00
: : 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
2022-10-17 20:17:27 +02:00
echo Y | winget list > nul
2022-09-30 03:33:13 +02:00
winget install -h Mozilla.Firefox
winget install -h 7zip.7zip
winget install -h Discord.Discord
winget install -h Valve.Steam
winget install -h voidtools.Everything.Lite
winget install -h VideoLAN.VLC
winget install -h File-New-Project.EarTrumpet
winget install -h EclipseAdoptium.Temurin.17.JDK
winget install -h Microsoft.VisualStudioCode
winget install -h GIMP.GIMP
winget install -h DuongDieuPhap.ImageGlass
winget install -h ONLYOFFICE.DesktopEditors
winget install -h PolyMC.PolyMC
winget install -h RiotGames.LeagueOfLegends.EUW
winget install -h RiotGames.Valorant.EU
winget install -h OBSProject.OBSStudio
2022-09-30 12:35:24 +02:00
winget install -h Parsec.Parsec
2022-09-30 13:32:21 +02:00
winget install -h Microsoft.PowerToys
2022-10-02 21:19:18 +02:00
winget install -h OpenWhisperSystems.Signal
2022-10-04 01:07:19 +02:00
winget install -h HandBrake.HandBrake
winget install -h Front.scrcpy+
2022-10-05 16:49:45 +02:00
winget install -h Obsidian.Obsidian
2022-10-05 21:21:24 +02:00
winget install -h KDE.KDEConnect
2022-10-16 05:13:47 +02:00
winget install -h HeroicGamesLauncher.HeroicGamesLauncher
2022-10-16 23:57:45 +02:00
winget install -h Microsoft.PowerShell
2022-09-30 03:33:13 +02:00
2022-10-08 02:14:38 +02:00
: : Install WSL
2022-09-30 03:33:13 +02:00
wsl --install
2022-10-08 02:14:38 +02:00
: : Install Spotify
2022-09-30 03:33:13 +02:00
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 -start_spoti " " " " | Invoke-Expression "
2022-09-30 12:45:41 +02:00
2022-10-16 23:57:37 +02:00
: : Firefox configuration
2022-10-17 20:50:20 +02:00
%PROGRAMFILES% \Mozilla Firefox\firefox.exe
taskkill /im firefox.exe /F
2022-10-17 20:50:34 +02:00
2022-10-17 20:50:20 +02:00
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 "
2022-10-17 20:50:34 +02:00
2022-10-16 23:57:37 +02:00
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 "
2022-10-17 20:50:20 +02:00
echo La configuration des differents Addons de Firefox est presente dans le dossier %HOMEPATH% \Downloads.
2022-10-16 23:57:37 +02:00
: : C++ Libraries
2022-10-17 20:50:20 +02:00
echo Rend toi sur https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/ et installe les bibliotheques C++.
2022-10-16 23:57:37 +02:00
: : User Diag for drivers
2022-10-17 20:50:20 +02:00
: : powershell -Command "Invoke-WebRequest -Uri https://userdiag.com/download -OutFile %HOMEPATH%\Downloads\UserDiag.exe"
: : echo Installe les pilotes, pour connaître la liste des pilotes, utilise UserDiag (cf. dossier Telechargements)
echo Installe les pilotes, pour connaître la liste des pilotes, utilise UserDiag (cf. https://userdiag.com/download)
2022-10-16 23:57:37 +02:00
: : W10Privacy
powershell -Command " Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/W10Privacy.ini -OutFile %HOMEPATH% \Downloads\W10Privacy.ini "
2022-10-17 20:50:20 +02:00
echo Ensuite, utilise W10Privacy (https://www.w10privacy.de/deutsch-start/download/) avec le fichier present dans %HOMEPATH% \Downloads (version 4.0.0.1).
2022-10-16 23:57:37 +02:00
2022-10-17 20:50:20 +02:00
echo Fais un tour des parametres Windows, apres avoir fait toutes les mises a jour disponible sur le PC.
echo Enfin, redemarre l'ordinateur
2022-10-08 02:14:38 +02:00
2022-09-30 12:45:41 +02:00
pause
exit /b