├── Changelogs ├── AutomatedApps-Changelog.txt ├── AutomatedVPN-Changelog.txt ├── Luncher-Changelog.txt └── Optimizer-Changelog.txt ├── DaddyMadu-Apps-Installer-Encoded.bat ├── DaddyMadu-VPN-VOIP.bat ├── DaddyMadu-Windows-Optimizer-Encoded.bat ├── DaddyMadu-Windows-Optimizer.bat ├── DaddyMadu-Windows-Optimizer.zip ├── LICENSE ├── README.md └── Updaters ├── AutmatedApps-Updater.txt ├── Automated-VPN-Updater.txt ├── LuncherUpdater.txt └── Optimizer-Updater.txt /Changelogs/AutomatedApps-Changelog.txt: -------------------------------------------------------------------------------- 1 | Changelog! 2 | 3 | Dec 19,2023 4 | - ignoring checksum for more compatibility when updating or installing apps. 5 | 6 | Nov 11,2022 7 | - replaced irfanviewer with imageglass photo viewer! 8 | 9 | Jan 31,2022 10 | -Allowing checksum to check for possible error before installing apps. 11 | 12 | Dec 29,2021 13 | -added DNSCrypt Proxy to support DNS Over HTTPS, ODOH, DNSCRYPT Protocols. 14 | 15 | Dec 2,2021 16 | - fixed bug nvidia driver won't accept dch parameter when auto upgrade pakages. 17 | - fixed bug with nvidia game ready driver was not install using dch para. 18 | 19 | November 05,2021 20 | - Forced Nvidia Driver to DCH only. 21 | 22 | May 07,2021 23 | - Added SyncBackFree to Apps List. 24 | - Added Free Download Manager to Apps List. 25 | 26 | May 04,2021 27 | - Fixed an issue with VirualBox installation. 28 | - Added clear user interaction messages. 29 | 30 | April 27,2021 31 | - Adding Massive Apps library to Autmated Apps Installer. 32 | - removed auto updates enforcing! 33 | - add optional updates question. 34 | - fixing minor issue regarding upgrades. 35 | - Optimizing code for more effcient run. 36 | -------------------------------------------------------------------------------- /Changelogs/AutomatedVPN-Changelog.txt: -------------------------------------------------------------------------------- 1 | Changelog! 2 | 3 | March 14,2025 4 | - adding 1 extra ip range 5 | 6 | Feb 12,2024 7 | - adding one more second for options to prevent skipping options 8 | 9 | Jan 30,2024 10 | - updating website address to new domain. 11 | 12 | Jan 12,2024 13 | - tighter wait times 14 | - improving overall script performance 15 | 16 | Jan 11,2024 17 | - no script is lunching faster due to skippinng premium option 18 | - default value is 0 but you should set it to 1 for faster lunch after first setup 19 | - when having any issue please set vpn mode to 0 to reset the script, you can set it to 1 after relunch 20 | 21 | Dec 20,2023 22 | - Fixing missing package manager import module on windows 11 23 | - fixing typo 24 | 25 | July 9,2023 26 | - Fixed bug when desktop file location is changed from default location. 27 | 28 | Sep 12,2022 29 | - add valorant EU new Voip server route! 30 | enjoy! 31 | 32 | Aug 27,2022 33 | - fixing some issues when "vpn" lowercase found 34 | - forcing the the script to check for "VPN" connection first if avaliable or not 35 | 36 | July 31,2022 37 | - added wider routing ip range. 38 | - fixed running as admin issue! 39 | - fixed error when updated to new version! 40 | - created shortcut standalone useage. 41 | 42 | Feb 14,2022 43 | - fixed some bugs 44 | - added option for premium DaddyMadu VPN subscription 45 | 46 | Feb 10,2022 47 | - fixed shortcut not working after update 48 | - better self update coding 49 | - no script can be used standalone or in bundle! 50 | - Add premium Option for paid VPN 51 | - now automated vpn can be applied for voip or globaly! 52 | 53 | Feb 9,2022 54 | - First Lunch! 55 | - scape confirmition for nuget installation. 56 | -------------------------------------------------------------------------------- /Changelogs/Luncher-Changelog.txt: -------------------------------------------------------------------------------- 1 | Changelog! 2 | Jul 16,2022 3 | - Typo and some fixs. 4 | 5 | Dec 2,2021 6 | - Deconding all the files, so we can edit and maintain them faster. 7 | hopfully for the best and no one rebranding them for thier own benefit! 8 | 9 | May 11,2021 10 | - Script Now can run offline* if you arleady have a previous version avaliable in temp. 11 | *this will only be functional for offline assets like clear temp and game optimization 12 | that requires no active internet connection! 13 | 14 | May 8,2021 15 | - Limiting Changelog to Only Show latest 20 Lines. 16 | - Fixing Typo. 17 | 18 | April 28,2021 19 | - Adding temp folder to Windows Defender Exclusion List. 20 | - New Download Method. 21 | - Showing Changelog In the same window. 22 | -------------------------------------------------------------------------------- /Changelogs/Optimizer-Changelog.txt: -------------------------------------------------------------------------------- 1 | Changelog! 2 | Jan 30,2024 3 | - updating website address to new domain. 4 | 5 | Dec 25,2023 6 | - Updating windows debloater links. 7 | 8 | July 9,2023 9 | - Fixed bug when desktop file location is changed from default location. 10 | 11 | Aug 22,2022 12 | - fixing Wise Registry Cleaner download and update links 13 | - fixing Wise Program Uninstaller download and update links 14 | - fixing some typos 15 | 16 | Aug 19,2022 17 | - !!! MADATORY UPDATE !!! 18 | IF YOU ARE USING OLDER VERSION PLEASE MAKE SURE YOU HAVE INTERNET AND LET THE SCRIPT UPDATE ITSELF 19 | AS GAMELOOP CHANGED FILE LOCATION OF IT'S drv, HENCE WHILE REMOVING GAMELOOP WITH OUR FILE RENDERED THE DEVICE UNUSABLE 20 | IN CURRENT SCRIPT VERSION WE FIXED THAT ISSUE! 21 | YOU CAN USE IT SAFELY NOW. 22 | 23 | Feb 10,2022 24 | - excluding automated vpn script from file cleaner! 25 | 26 | Feb 9,2022 27 | - Adding Automated VPN and VOIP Initial Script 28 | - Various Bug Fixs 29 | 30 | July 6,2021 31 | - Removed Gameloop Force Temp On C Drive as it causes more issues, 32 | and there's already option to move temp to any drive you want! 33 | 34 | May 8,2021 35 | - Re-arranged Main Menu! 36 | - Added New Menu for Games Optimization. 37 | - Moving Gameloop Optimizer to Games Optimization Menu. 38 | - Added Optimization Option for VALORANT game. 39 | - Limiting changelog to show only Latest 20 lines. 40 | - Script will add it's own temp folder to windows defender exclusion list. 41 | 42 | May 4,2021 43 | - Faster Access To Automated Apps instead of redownloading applist each time! 44 | 45 | May 1,2021 46 | - Added better interactive messages. 47 | - Fix issue DNS was set but a false message was showing! 48 | 49 | April 28,2021 50 | - Fixing issues when gameloop trying to remount drives after installation. 51 | - Applying google DNS default answer is now set Accepted. 52 | 53 | April 27,2021 54 | - Adding Ask for applying google DNS if you have download issues. 55 | - Optimizing code for more effcient run. 56 | -------------------------------------------------------------------------------- /DaddyMadu-Apps-Installer-Encoded.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | mode 200 3 | title [ Daddy Madu ] Autmated Apps Installer! 4 | color 1f 5 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v "AutomatedApps" /t REG_SZ /d "3.0.0" /f >nul 2>&1 6 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v AutomatedApps') do @set "CurrentVersion=%%z" 7 | cd /d "%systemdrive%\Windows\System32" 8 | ECHO ============================================================================================= 9 | echo Please Make Sure you DISABLED YOUR ANTIVIRUS and You HAVE INTERNET Avaliable. 10 | echo As some ANTIVIRUS Might Detect This Script As False Positive! 11 | echo Or add This Script to Exclusion List. 12 | ECHO ============================================================================================= 13 | echo Please Press ENTER KEY to Continue! 14 | ECHO ============================================================================================= 15 | Pause>nul 16 | cls 17 | setlocal enableDelayedExpansion 18 | echo Getting Things Ready, Please Wait... 19 | powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))">nul 2>&1 && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" 20 | powershell -NoProfile -ExecutionPolicy Bypass -Command "choco feature enable -n=useRememberedArgumentsForUpgrades" 21 | :AppsUtilityMenu 22 | cls 23 | echo ... Welcome %username% to DaddyMadu Autmated Apps Installer^/Uninstaller ... 24 | echo. 25 | echo. 26 | echo 1. Install Apps 27 | echo 2. Uninstall Apps 28 | echo 3. Manually Update All Installed Apps 29 | echo 4. Save Current Config to Desktop 30 | echo 5. Load and Auto Install Apps from Config 31 | echo 999. Exit 32 | echo. 33 | Echo Saved Config File will be on your Desktop named DaddyMaduApps.config move it to another safe place. 34 | echo To Load Config File, simply copy your previously saved DaddyMaduApps.config to Desktop and relunch the app. 35 | echo. 36 | echo. 37 | Echo v%CurrentVersion% 38 | echo. 39 | echo. 40 | set /p answer=Type the number of your option and press ENTER KEY: 41 | if %answer%==1 goto setLocalsforAppsInstallers 42 | if %answer%==2 goto setLocalsforAppsUninstallers 43 | if %answer%==3 goto DaddyMaduAutoAppUpdater 44 | if %answer%==4 goto SaveDaddyMaduConfig 45 | if %answer%==5 goto LoadDaddyMaduConfig 46 | if %answer%==999 goto Exit 47 | goto AppsUtilityMenu 48 | :Exit 49 | cls 50 | echo Thank you %username% for using DaddyMadu Automated Apps Installer^/Uninstaller^! 51 | echo. 52 | timeout /t 3 53 | Exit 54 | :setLocalsforAppsInstallers 55 | set "TitleName1=Apps Installer" 56 | set "InstallorUninstall=install" 57 | set "CallAppsInstallorUninstall=:AppsInstaller" 58 | goto ChooiseAppsInstallerUninstaller 59 | :setLocalsforAppsUninstallers 60 | set "TitleName1=Apps Uninstaller" 61 | set "InstallorUninstall=uninstall" 62 | set "CallAppsInstallorUninstall=:AppsUninstaller" 63 | goto ChooiseAppsInstallerUninstaller 64 | :ChooiseAppsInstallerUninstaller 65 | cls 66 | echo. 67 | echo please choose the apps you want to %InstallorUninstall% from below. 68 | echo. 69 | echo === Essentials === === Internet Tools === === Communications === 70 | echo. 71 | echo [1] Microsoft Visual C^+^+ 2005-2019 [2] Mozilla Firefox [3] Telegram 72 | echo [4] DirectX [5] Google Chrome [6] WhatsApp Messenger 73 | echo [63] Microsoft .NET Framework 4.8 [7] Brave [8] Skype 74 | echo [9] Opera [10] Zoom Client for Meetings 75 | echo [11] Opera GX [12] Mozilla Thunderbird 76 | echo [13] Microsoft Teams Desktop App 77 | echo [14] Discord 78 | echo. 79 | echo === File Management === === Video^/Audio === === Productivity === 80 | echo. 81 | echo [15] WinRAR [16] K-Lite Codec Pack Full [17] LibreOffice Fresh 82 | echo [18] FileZilla [19] K-Lite Codec Pack Basic [20] PDF Creator 83 | echo [21] Google Drive for desktop [22] Audacity [23] Sumatra PDF 84 | echo [24] Google Backup and Sync [25] ImageGlass [26] OBS Studio 85 | echo [27] teracopy [28] Spotify [29] FormatFactory 86 | echo [30] 7zip [31] VLC 87 | echo [78] SyncBackFree 88 | echo [79] Free Download Manager 89 | echo. 90 | echo === Editing === === Gaming === === Utilitis === 91 | echo. 92 | echo [32] GIMP [33] Epic Games Launcher [34] CPU-Z 93 | echo [35] Inkscape [36] Steam [37] CCleaner 94 | echo [38] Atom [39] GOG Galaxy [40] Teamviewer 95 | echo [41] Lightshot [42] Origin [43] AnyDesk 96 | echo [44] Avidemux [45] Ubisoft Connect [46] CrystalDiskInfo 97 | echo [47] ASIO4ALL [48] Playnite [49] VirtualBox 98 | echo [50] NotePad^+^+ [51] VeraCrypt 99 | echo [52] HWiNFO 100 | echo [53] HandBrake 101 | echo [54] BleachBit 102 | echo [55] CrystalDiskMark Benchmark 103 | echo. 104 | echo === Drivers === === Miscellaneous === === Windows === 105 | echo. 106 | echo [56] AMD Ryzen Chipset Drivers [57] OpenSSL [58] Windows and Office ISO Download Tool 107 | echo [59] NVidia Driver Striped [60] Java SE Runtime Environment [61] Windows 10 Update Assistant 108 | echo [62] NVidia Driver Gforce Experience [77] Java Uninstall Tool [64] Autoruns 109 | echo [65] Snappy Driver Installer Origin [66] qBittorrent [67] Sysinternals 110 | echo [68] Intel Network Adapter Driver W10 [69] Rufus [70] Process Explorer 111 | echo [71] Display Driver Uninstaller [72] Hex Editor and Disk Editor [80] DNSCrypt-Proxy 112 | echo [73] LockHunter 113 | echo [74] uBlock Origin for Chrome 114 | echo [75] Macrium Reflect Free 115 | echo [76] throttlestop 116 | echo. 117 | :getOptions 118 | set "choices=" 119 | set /p "choices=Type your choices without spacing (e.g. 1,2,3,...,77) to go BACK type 999: " 120 | if not defined choices ( 121 | echo Please enter a valid option 122 | goto getOptions 123 | ) 124 | for %%h in (%choices%) do call :option-%%h 125 | goto ASKCheckingForUpdate 126 | :AppsInstaller 127 | findstr /l /x /c:"%Package%" "%userprofile%\DaddyMaduAppsInstaller.config" >nul 2>&1 128 | IF NOT ERRORLEVEL 1 goto :eof 129 | echo installing %Package% Please Wait... 130 | Choco install %Package% -y -r --allowemptychecksum --allowemptychecksumsecure --ignore-checksums 131 | del /f /s /q "%userprofile%\DaddyMaduAppsInstaller.config" >nul 2>&1 132 | choco list -l -r --id-only > "%userprofile%\DaddyMaduAppsInstaller.config" 133 | echo Done. 134 | goto :eof 135 | :AppsUninstaller 136 | findstr /l /x /c:"%Package%" "%userprofile%\DaddyMaduAppsInstaller.config" >nul 2>&1 137 | IF NOT ERRORLEVEL 0 goto :eof 138 | echo uninstalling %Package% Please Wait... 139 | Choco uninstall %Package% -a -y 140 | del /f /s /q "%userprofile%\DaddyMaduAppsInstaller.config" >nul 2>&1 141 | choco list -l -r --id-only > "%userprofile%\DaddyMaduAppsInstaller.config" 142 | echo Done. 143 | goto :eof 144 | :option-999 145 | cls 146 | goto AppsUtilityMenu 147 | :option-1 148 | cls 149 | set "Package=vcredist2005 vcredist2008 vcredist2010 vcredist2012 vcredist2013 vcredist140" 150 | call %CallAppsInstallorUninstall% 151 | goto :eof 152 | :option-2 153 | cls 154 | set "Package=firefox" 155 | call %CallAppsInstallorUninstall% 156 | goto :eof 157 | :option-3 158 | cls 159 | set "Package=telegram.install" 160 | call %CallAppsInstallorUninstall% 161 | goto :eof 162 | :option-4 163 | cls 164 | set "Package=directx" 165 | call %CallAppsInstallorUninstall% 166 | goto :eof 167 | :option-5 168 | cls 169 | set "Package=googlechrome" 170 | call %CallAppsInstallorUninstall% 171 | goto :eof 172 | :option-6 173 | cls 174 | set "Package=whatsapp" 175 | call %CallAppsInstallorUninstall% 176 | goto :eof 177 | :option-7 178 | cls 179 | set "Package=brave" 180 | call %CallAppsInstallorUninstall% 181 | goto :eof 182 | :option-8 183 | cls 184 | set "Package=skype" 185 | call %CallAppsInstallorUninstall% 186 | goto :eof 187 | :option-9 188 | cls 189 | set "Package=opera" 190 | call %CallAppsInstallorUninstall% 191 | goto :eof 192 | :option-10 193 | cls 194 | set "Package=zoom" 195 | call %CallAppsInstallorUninstall% 196 | goto :eof 197 | :option-11 198 | cls 199 | set "Package=opera-gx" 200 | call %CallAppsInstallorUninstall% 201 | goto :eof 202 | :option-12 203 | cls 204 | set "Package=thunderbird" 205 | call %CallAppsInstallorUninstall% 206 | goto :eof 207 | :option-13 208 | cls 209 | set "Package=microsoft-teams" 210 | call %CallAppsInstallorUninstall% 211 | goto :eof 212 | :option-14 213 | cls 214 | set "Package=discord.install" 215 | call %CallAppsInstallorUninstall% 216 | goto :eof 217 | :option-15 218 | cls 219 | set "Package=winrar" 220 | call %CallAppsInstallorUninstall% 221 | goto :eof 222 | :option-16 223 | cls 224 | set "Package=k-litecodecpackfull" 225 | call %CallAppsInstallorUninstall% 226 | goto :eof 227 | :option-17 228 | cls 229 | set "Package=libreoffice-fresh" 230 | call %CallAppsInstallorUninstall% 231 | goto :eof 232 | :option-18 233 | cls 234 | set "Package=filezilla" 235 | call %CallAppsInstallorUninstall% 236 | goto :eof 237 | :option-19 238 | cls 239 | set "Package=k-litecodecpackbasic" 240 | call %CallAppsInstallorUninstall% 241 | goto :eof 242 | :option-20 243 | cls 244 | set "Package=pdfcreator" 245 | call %CallAppsInstallorUninstall% 246 | goto :eof 247 | :option-21 248 | cls 249 | set "Package=google-drive-file-stream" 250 | call %CallAppsInstallorUninstall% 251 | goto :eof 252 | :option-22 253 | cls 254 | set "Package=audacity" 255 | call %CallAppsInstallorUninstall% 256 | goto :eof 257 | :option-23 258 | cls 259 | set "Package=sumatrapdf.install" 260 | call %CallAppsInstallorUninstall% 261 | goto :eof 262 | :option-24 263 | cls 264 | set "Package=google-backup-and-sync" 265 | call %CallAppsInstallorUninstall% 266 | goto :eof 267 | :option-25 268 | cls 269 | set "Package=imageglass" 270 | call %CallAppsInstallorUninstall% 271 | goto :eof 272 | :option-26 273 | cls 274 | set "Package=obs-studio.install" 275 | call %CallAppsInstallorUninstall% 276 | goto :eof 277 | :option-27 278 | cls 279 | set "Package=teracopy" 280 | call %CallAppsInstallorUninstall% 281 | goto :eof 282 | :option-28 283 | cls 284 | set "Package=spotify" 285 | call %CallAppsInstallorUninstall% 286 | goto :eof 287 | :option-29 288 | cls 289 | set "Package=formatfactory" 290 | call %CallAppsInstallorUninstall% 291 | goto :eof 292 | :option-30 293 | cls 294 | set "Package=7zip.install" 295 | call %CallAppsInstallorUninstall% 296 | goto :eof 297 | :option-31 298 | cls 299 | set "Package=vlc" 300 | call %CallAppsInstallorUninstall% 301 | goto :eof 302 | :option-32 303 | cls 304 | set "Package=gimp" 305 | call %CallAppsInstallorUninstall% 306 | goto :eof 307 | :option-33 308 | cls 309 | set "Package=epicgameslauncher" 310 | call %CallAppsInstallorUninstall% 311 | goto :eof 312 | :option-34 313 | cls 314 | set "Package=cpu-z.install" 315 | call %CallAppsInstallorUninstall% 316 | goto :eof 317 | :option-35 318 | cls 319 | set "Package=inkscape" 320 | call %CallAppsInstallorUninstall% 321 | goto :eof 322 | :option-36 323 | cls 324 | set "Package=steam-client" 325 | call %CallAppsInstallorUninstall% 326 | goto :eof 327 | :option-37 328 | cls 329 | set "Package=ccleaner" 330 | call %CallAppsInstallorUninstall% 331 | goto :eof 332 | :option-38 333 | cls 334 | set "Package=atom" 335 | call %CallAppsInstallorUninstall% 336 | goto :eof 337 | :option-39 338 | cls 339 | set "Package=goggalaxy" 340 | call %CallAppsInstallorUninstall% 341 | goto :eof 342 | :option-40 343 | cls 344 | set "Package=teamviewer" 345 | call %CallAppsInstallorUninstall% 346 | goto :eof 347 | :option-41 348 | cls 349 | set "Package=lightshot.install" 350 | call %CallAppsInstallorUninstall% 351 | goto :eof 352 | :option-42 353 | cls 354 | set "Package=origin" 355 | call %CallAppsInstallorUninstall% 356 | goto :eof 357 | :option-43 358 | cls 359 | set "Package=anydesk.install" 360 | call %CallAppsInstallorUninstall% 361 | goto :eof 362 | :option-44 363 | cls 364 | set "Package=avidemux" 365 | call %CallAppsInstallorUninstall% 366 | goto :eof 367 | :option-45 368 | cls 369 | set "Package=ubisoft-connect" 370 | call %CallAppsInstallorUninstall% 371 | goto :eof 372 | :option-46 373 | cls 374 | set "Package=crystaldiskinfo" 375 | call %CallAppsInstallorUninstall% 376 | goto :eof 377 | :option-47 378 | cls 379 | set "Package=asio4all" 380 | call %CallAppsInstallorUninstall% 381 | goto :eof 382 | :option-48 383 | cls 384 | set "Package=playnite" 385 | call %CallAppsInstallorUninstall% 386 | goto :eof 387 | :option-49 388 | cls 389 | set "Package=virtualbox" 390 | call %CallAppsInstallorUninstall% 391 | goto :eof 392 | :option-50 393 | cls 394 | set "Package=notepadplusplus.install" 395 | call %CallAppsInstallorUninstall% 396 | goto :eof 397 | :option-51 398 | cls 399 | set "Package=veracrypt" 400 | call %CallAppsInstallorUninstall% 401 | goto :eof 402 | :option-52 403 | cls 404 | set "Package=hwinfo.install" 405 | call %CallAppsInstallorUninstall% 406 | goto :eof 407 | :option-53 408 | cls 409 | set "Package=handbrake.install" 410 | call %CallAppsInstallorUninstall% 411 | goto :eof 412 | :option-54 413 | cls 414 | set "Package=bleachbit.install" 415 | call %CallAppsInstallorUninstall% 416 | goto :eof 417 | :option-55 418 | cls 419 | set "Package=crystaldiskmark" 420 | call %CallAppsInstallorUninstall% 421 | goto :eof 422 | :option-56 423 | cls 424 | set "Package=amd-ryzen-chipset" 425 | call %CallAppsInstallorUninstall% 426 | goto :eof 427 | :option-57 428 | cls 429 | set "Package=openssl" 430 | call %CallAppsInstallorUninstall% 431 | goto :eof 432 | :option-58 433 | cls 434 | set "Package=windows-iso-downloader" 435 | call %CallAppsInstallorUninstall% 436 | goto :eof 437 | :option-59 438 | cls 439 | set "Package=nvidia-display-driver --params "'/DCH'"" 440 | call %CallAppsInstallorUninstall% 441 | goto :eof 442 | :option-60 443 | cls 444 | set "Package=jre8" 445 | call %CallAppsInstallorUninstall% 446 | goto :eof 447 | :option-61 448 | cls 449 | set "Package=windows-10-update-assistant" 450 | call %CallAppsInstallorUninstall% 451 | goto :eof 452 | :option-62 453 | cls 454 | set "Package=geforce-game-ready-driver --params "'/DCH'"" 455 | call %CallAppsInstallorUninstall% 456 | goto :eof 457 | :option-63 458 | cls 459 | set "Package=dotnetfx" 460 | call %CallAppsInstallorUninstall% 461 | goto :eof 462 | :option-64 463 | cls 464 | set "Package=autoruns" 465 | call %CallAppsInstallorUninstall% 466 | goto :eof 467 | :option-65 468 | cls 469 | set "Package=sdio" 470 | call %CallAppsInstallorUninstall% 471 | goto :eof 472 | :option-66 473 | cls 474 | set "Package=qbittorrent" 475 | call %CallAppsInstallorUninstall% 476 | goto :eof 477 | :option-67 478 | cls 479 | set "Package=sysinternals" 480 | call %CallAppsInstallorUninstall% 481 | goto :eof 482 | :option-68 483 | cls 484 | set "Package=intel-network-drivers-win10" 485 | call %CallAppsInstallorUninstall% 486 | goto :eof 487 | :option-69 488 | cls 489 | set "Package=rufus" 490 | call %CallAppsInstallorUninstall% 491 | goto :eof 492 | :option-70 493 | cls 494 | set "Package=procexp" 495 | call %CallAppsInstallorUninstall% 496 | goto :eof 497 | :option-71 498 | cls 499 | set "Package=ddu" 500 | call %CallAppsInstallorUninstall% 501 | goto :eof 502 | :option-72 503 | cls 504 | set "Package=hxd" 505 | call %CallAppsInstallorUninstall% 506 | goto :eof 507 | :option-73 508 | cls 509 | set "Package=lockhunter" 510 | call %CallAppsInstallorUninstall% 511 | goto :eof 512 | :option-74 513 | cls 514 | set "Package=uBlock" 515 | call %CallAppsInstallorUninstall% 516 | goto :eof 517 | :option-75 518 | cls 519 | set "Package=reflect-free" 520 | call %CallAppsInstallorUninstall% 521 | goto :eof 522 | :option-76 523 | cls 524 | set "Package=throttlestop" 525 | call %CallAppsInstallorUninstall% 526 | goto :eof 527 | :option-77 528 | cls 529 | set "Package=javauninstalltool" 530 | call %CallAppsInstallorUninstall% 531 | goto :eof 532 | :option-78 533 | cls 534 | set "Package=syncbackfree" 535 | call %CallAppsInstallorUninstall% 536 | goto :eof 537 | :option-79 538 | cls 539 | set "Package=freedownloadmanager" 540 | call %CallAppsInstallorUninstall% 541 | goto :eof 542 | :option-80 543 | cls 544 | set "Package=dnscrypt-proxy" 545 | call %CallAppsInstallorUninstall% 546 | goto :eof 547 | :DaddyMaduAutoAppInstallerFromConfig 548 | for /F "tokens=* USEBACKQ" %%i in (%userprofile%\DaddyMaduAppsInstaller.config) do ( 549 | cls 550 | echo Installing %%i Please Wait... 551 | Choco install %%i -y -r --allowemptychecksum --allowemptychecksumsecure --ignore-checksums 552 | echo Done, Installed Successfully. 553 | ) 554 | goto ASKCheckingForUpdate 555 | :DaddyMaduAutoAppUpdater 556 | cls 557 | echo Checking for updates Please Wait, if found it will be installed shortly... 558 | Choco upgrade all -y -r --allowemptychecksum --allowemptychecksumsecure --ignore-checksums 559 | echo Done. 560 | goto EOFAPPInstaller 561 | :SaveDaddyMaduConfig 562 | IF EXIST "%userprofile%\DaddyMaduAppsInstaller.config" ( 563 | cls 564 | echo Grapping Current Config File... 565 | TIMEOUT 1 >nul 566 | cls 567 | echo Copying Current Config File to Desktop.. 568 | choco list -l -r --id-only > "%userprofile%\Desktop\DaddyMaduApps.config" 569 | echo Config Saved Successfully! Press ENTER KEY to continue. 570 | pause>nul 571 | goto AppsUtilityMenu 572 | ) ELSE ( 573 | cls 574 | echo Grapping Current Config File... 575 | TIMEOUT 1 >nul 576 | cls 577 | echo ERROR No Config File was Found! Please Install Some Apps Files, Press ENTER KEY to continue. 578 | pause>nul 579 | goto AppsUtilityMenu 580 | ) 581 | :LoadDaddyMaduConfig 582 | IF EXIST "%userprofile%\Desktop\DaddyMaduApps.config" ( 583 | cls 584 | echo Checking for New Config File... 585 | TIMEOUT 1 >nul 586 | cls 587 | echo Loading New Config File.. 588 | copy "%userprofile%\Desktop\DaddyMaduApps.config" "%userprofile%\DaddyMaduAppsInstaller.config" /-y/v 589 | echo New Config Loaded Successfully. Going to Install NOW^! 590 | TIMEOUT 1 >nul 591 | goto DaddyMaduAutoAppInstallerFromConfig 592 | ) ELSE ( 593 | cls 594 | echo Checking for New Config File... 595 | TIMEOUT 1 >nul 596 | cls 597 | echo ERROR No Config File was Found^ on Desktop! 598 | echo if you want to load Config from Desktop just add one and rename it to "DaddyMaduApps.config" . 599 | echo Press ENTER KEY to continue. 600 | pause>nul 601 | goto AppsUtilityMenu 602 | ) 603 | :ASKCheckingForUpdate 604 | setlocal enableDelayedExpansion 605 | for /l %%N in (30 -1 1) do ( 606 | set /a "min=%%N/60, sec=%%N%%60, n-=1" 607 | if !sec! lss 10 set sec=0!sec! 608 | cls 609 | choice /c:CN1 /n /m "Checking Update ^for installed Apps by Automated Apps in !min!:!sec! - Press N to Check Now, or C to Cancel. " /t:1 /d:1 610 | if not errorlevel 3 goto :break 611 | ) 612 | cls 613 | echo Checking for Updates in 0:00 - Press N to Check Now, or C to Cancel. 614 | :break 615 | if errorlevel 2 (goto DaddyMaduAutoAppUpdater) else goto EOFAPPNoUpgrade 616 | :EOFAPPInstaller 617 | cls 618 | echo All Apps are upToDate, Goodbye! Press ENTER KEY to continue. 619 | Pause>nul 620 | goto AppsUtilityMenu 621 | :EOFAPPNoUpgrade 622 | cls 623 | echo Installed Successfully, Pease don't forget to check for updates at least every week Goodbye! 624 | echo Please Press ENTER KEY to Exit. 625 | Pause>nul 626 | goto AppsUtilityMenu 627 | -------------------------------------------------------------------------------- /DaddyMadu-VPN-VOIP.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | ECHO. 3 | ECHO ============================= 4 | ECHO Running Admin shell 5 | ECHO ============================= 6 | :init 7 | setlocal DisableDelayedExpansion 8 | set cmdInvoke=1 9 | set winSysFolder=System32 10 | set "batchPath=%~0" 11 | for %%k in (%0) do set batchName=%%~nk 12 | set "vbsGetPrivileges=%temp%\OEgetPriv_%batchName%.vbs" 13 | setlocal EnableDelayedExpansion 14 | 15 | :checkPrivileges 16 | NET FILE 1>NUL 2>NUL 17 | if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges ) 18 | 19 | :getPrivileges 20 | if '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges) 21 | ECHO. 22 | ECHO ************************************** 23 | ECHO Invoking UAC for Privilege Escalation 24 | ECHO ************************************** 25 | 26 | ECHO Set UAC = CreateObject^("Shell.Application"^) > "%vbsGetPrivileges%" 27 | ECHO args = "ELEV " >> "%vbsGetPrivileges%" 28 | ECHO For Each strArg in WScript.Arguments >> "%vbsGetPrivileges%" 29 | ECHO args = args ^& strArg ^& " " >> "%vbsGetPrivileges%" 30 | ECHO Next >> "%vbsGetPrivileges%" 31 | 32 | if '%cmdInvoke%'=='1' goto InvokeCmd 33 | 34 | ECHO UAC.ShellExecute "!batchPath!", args, "", "runas", 1 >> "%vbsGetPrivileges%" 35 | goto ExecElevation 36 | 37 | :InvokeCmd 38 | ECHO args = "/c """ + "!batchPath!" + """ " + args >> "%vbsGetPrivileges%" 39 | ECHO UAC.ShellExecute "%SystemRoot%\%winSysFolder%\cmd.exe", args, "", "runas", 1 >> "%vbsGetPrivileges%" 40 | 41 | :ExecElevation 42 | "%SystemRoot%\%winSysFolder%\WScript.exe" "%vbsGetPrivileges%" %* 43 | exit /B 44 | 45 | :gotPrivileges 46 | setlocal & cd /d %~dp0 47 | if '%1'=='ELEV' (del "%vbsGetPrivileges%" 1>nul 2>nul & shift /1) 48 | :::::::::::::::::::::::::::: 49 | ::START 50 | :::::::::::::::::::::::::::: 51 | mode 200 52 | title [ Daddy Madu ] Autmated VPN and VOIP! 53 | color 1f 54 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v "AutomatedVPN" /t REG_SZ /d "4.3.4" /f >nul 2>&1 55 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v AutomatedVPN') do @set "CurrentVersion=%%z" 56 | reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v "Mode" > nul 57 | if %ERRORLEVEL% EQU 1 ( 58 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v "Mode" /t REG_SZ /d "0" /f >nul 2>&1 59 | ) else ( 60 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v Mode') do @set "CurrentMode=%%z" >nul 2>&1 61 | ) 62 | mkdir "%userprofile%\AppData\Local\Temp\dmtmp">nul 2>&1 & attrib +h +s "%userprofile%\AppData\Local\Temp\dmtmp" 63 | set "ScriptsFullPath=%userprofile%\AppData\Local\Temp\dmtmp" 64 | set "CurrentRunningScript=%~dpn0.bat" 65 | set "ScriptsBackupFile=%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIPBK.bat" 66 | set "ScriptMainFile=%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" 67 | powershell -NoProfile -ExecutionPolicy Bypass -c "Add-MpPreference -ExclusionPath '%ScriptsFullPath%'">nul 2>&1 68 | for /f "usebackq delims=" %%a in (` 69 | powershell -NoProfile -ExecutionPolicy Bypass -c "$DesktopGetPath = [Environment]::GetFolderPath([Environment+SpecialFolder]::Desktop); $DesktopGetPath" 70 | `) do set "DesktopPath=%%a" 71 | echo Desktop location is %DesktopPath% 72 | :checkifrunningfromMainorno 73 | IF "%CurrentRunningScript%" EQU "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" ( 74 | powershell -NoProfile -ExecutionPolicy Bypass -c "$WshShell = New-Object -comObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%DesktopPath%\Automated VPN.lnk'); $Shortcut.TargetPath = '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat'; $Shortcut.Save()" 75 | goto ContinueVPNConnection 76 | ) ELSE ( 77 | IF "%CurrentRunningScript%" EQU "%ScriptsBackupFile%" ( 78 | goto ContinueVPNConnection 79 | ) ELSE ( 80 | copy "%CurrentRunningScript%" "%ScriptMainFile%" 81 | timeout /t 2 /nobreak >nul 82 | powershell -NoProfile -ExecutionPolicy Bypass -c "$WshShell = New-Object -comObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%DesktopPath%\Automated VPN.lnk'); $Shortcut.TargetPath = '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat'; $Shortcut.Save()" 83 | start /b powershell -c "Remove-Item -Path '%CurrentRunningScript%' -Force -ea silentlycontinue | Out-Null" & start /b %ScriptMainFile% 84 | ) 85 | ) 86 | :ContinueVPNConnection 87 | for %%i in ("%~0.") do SET "CurrentScriptPath=%%~fi" 88 | echo Currently Running From %CurrentScriptPath% 89 | powershell -NoProfile -ExecutionPolicy Bypass -c "Add-MpPreference -ExclusionPath '%CurrentScriptPath%'">nul 2>&1 90 | for /f "usebackq delims=" %%w in (` 91 | powershell -NoProfile -ExecutionPolicy Bypass -c "$CheckVPNVersion = Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/DaddyMadu/Windows-Optimzier/main/Updaters/Automated-VPN-Updater.txt'; $VPNVersion = ($CheckVPNVersion.Content | Out-String).Trim(); $VPNVersion" 92 | `) do set "OnlineVPNVersion=%%w" 93 | echo checking internet connection 94 | Ping 1.1.1.1 -n 1 -w 1000 95 | cls 96 | if errorlevel 1 ( 97 | echo No Interenet Connection Found!, Lunching Latest Offline Version Avaliable. 98 | timeout /t 1 /nobreak >nul 99 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v AutomatedVPN') do @set "OnlineVPNVersion=%%z" 100 | ) else ( 101 | goto OnlineVPNVersionChecker 102 | ) 103 | :OnlineVPNVersionChecker 104 | IF %OnlineVPNVersion% EQU %CurrentVersion% ( 105 | echo No Update Avaliable! 106 | cls 107 | goto Continueaftervpnupdatecheck 108 | ) ELSE ( 109 | cls 110 | echo Automated VPN Update Found v%OnlineVPNVersion%, Updating NOW! 111 | powershell -NoProfile -ExecutionPolicy Bypass -c "$CheckUpdaterChangelog = Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/DaddyMadu/Windows-Optimzier/main/Changelogs/AutomatedVPN-Changelog.txt'; $AutomatedVPNChangelog = ($CheckUpdaterChangelog.Content | Out-String).Trim(); $AutomatedVPNChangelog.Split([Environment]::NewLine) | Select -First 20" 112 | timeout /t 2 /nobreak >nul 113 | cls 114 | goto checkifrunningfrombackupornot 115 | ) 116 | :checkifrunningfrombackupornot 117 | IF "%CurrentRunningScript%" EQU "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" ( 118 | copy "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" "%ScriptsBackupFile%" 119 | timeout /t 2 120 | echo %ScriptsBackupFile% 121 | echo. 122 | echo. 123 | start /b %ScriptsBackupFile% 124 | exit 125 | ) ELSE ( 126 | goto downloadupdatevpn 127 | ) 128 | :downloadupdatevpn 129 | cls 130 | del /s /f /q "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat">nul 2>&1 131 | bitsadmin /transfer "Downloading Automated VPN Latest Update" /priority FOREGROUND "https://raw.githubusercontent.com/DaddyMadu/Windows-Optimzier/main/DaddyMadu-VPN-VOIP.bat" "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" 132 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" ( 133 | goto Continueaftervpnupdatedownloaded 134 | ) ELSE ( 135 | GOTO alternativedownloadvpn 136 | ) 137 | :alternativedownloadvpn 138 | cls 139 | powershell -c "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/DaddyMadu/Windows-Optimzier/main/DaddyMadu-VPN-VOIP.bat', '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat')" 140 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" ( 141 | goto Continueaftervpnupdatedownloaded 142 | ) ELSE ( 143 | GOTO alternativedownloadvpn2 144 | ) 145 | :alternativedownloadvpn2 146 | cls 147 | powershell -c "Invoke-WebRequest 'https://raw.githubusercontent.com/DaddyMadu/Windows-Optimzier/main/DaddyMadu-VPN-VOIP.bat' -OutFile '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat'" 148 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" ( 149 | goto Continueaftervpnupdatedownloaded 150 | ) ELSE ( 151 | cls 152 | ECHO ============================================================================================= 153 | echo Please Make Sure you DISABLED YOUR ANTIVIRUS and You HAVE INTERNET Avaliable! 154 | echo As something is BLOCKING script from downloading latest Version Avaliable! 155 | ECHO ============================================================================================= 156 | echo Please Press ENTER KEY to try again! 157 | ECHO ============================================================================================= 158 | timeout /t 3 /nobreak >nul 159 | goto downloadupdatevpn 160 | ) 161 | :Continueaftervpnupdatedownloaded 162 | powershell -NoProfile -ExecutionPolicy Bypass -c "$WshShell = New-Object -comObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%DesktopPath%\Automated VPN.lnk'); $Shortcut.TargetPath = '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat'; $Shortcut.Save()" 163 | cls 164 | echo Update Completed Successfully! Trying to Relunch Script Again... 165 | timeout /t 1 /nobreak >nul 166 | start /b powershell -c "Remove-Item -Path %ScriptsBackupFile% -Force -ea silentlycontinue | Out-Null" & start /b %ScriptMainFile% 167 | exit 168 | goto Continueaftervpnupdatecheck 169 | :Continueaftervpnupdatecheck 170 | if %CurrentMode% EQU 0 (goto PremiumsubscriptionChoice 171 | ) else goto SetAndCheckVPNMode 172 | :PremiumsubscriptionChoice 173 | setlocal enableDelayedExpansion 174 | (Set LF=^ 175 | %Null% 176 | ) 177 | for /l %%N in (2 -1 1) do ( 178 | set /a "min=%%N/60, sec=%%N%%60, n-=1" 179 | if !sec! lss 2 set sec=0!sec! 180 | cls 181 | choice /c:CN1 /n /m "Continue in !min!:!sec! - Press N to Continue Now, or C to put your Premium DaddyMadu VPN subscription.!LF!^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=!LF!Make Sure to add This Script to ANTIVIRUS Exclusion List and You HAVE INTERNET Avaliable.!LF!^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^= " /t:1 /d:1 182 | if not errorlevel 3 goto :break 183 | ) 184 | cls 185 | echo Continue in 0:00 - Press N to Continue Now, or C to input your Premium DaddyMadu VPN subscription. 186 | :break 187 | if errorlevel 2 (goto Continueaftervpnupdatecheck) else goto premiumDaddyMaduVPNsubscription 188 | :premiumDaddyMaduVPNsubscription 189 | if exist "%userprofile%\DaddyMaduVPN.config" ( 190 | powershell -c "Remove-Item -Path $env:userprofile\DaddyMaduVPN.config -Force -ea silentlycontinue | Out-Null" 191 | ) 192 | cls 193 | echo. 194 | echo. 195 | echo Please insert your Premium DaddyMadu VPN subscription Username and Password down below. 196 | echo. 197 | echo. 198 | echo. 199 | set /p VPNusername=VPNUserName: 200 | set /p DecodedVPass=VPNPassword: 201 | cls 202 | (echo=$VPNServername ^= "VPN") > %userprofile%\DaddyMaduVPN.config 203 | (echo=$VPNServerAdress ^= "madu.gg:5555") >> %userprofile%\DaddyMaduVPN.config 204 | (echo=$VPNusername ^= "%VPNusername%") >> %userprofile%\DaddyMaduVPN.config 205 | for /f "usebackq delims=" %%b in (` 206 | powershell -NoProfile -ExecutionPolicy Bypass -c "$DecodedVPass=echo %DecodedVPass%; $Bytes = [System.Text.Encoding]::Unicode.GetBytes($DecodedVPass); $EncodedText =[Convert]::ToBase64String($Bytes); $EncodedText" 207 | `) do set "Epassword=%%b" 208 | (echo=$Epassword ^= "%Epassword%") >> %userprofile%\DaddyMaduVPN.config 209 | if "%VPNusername%"=="" (goto :VPNinfoisNULL 210 | ) else if "%DecodedVPass%"=="" (goto :VPNinfoisNULL 211 | ) else goto :VPNinfoNotNulled 212 | :VPNinfoisNULL 213 | powershell -c "Remove-Item -Path $env:userprofile\DaddyMaduVPN.config -Force -ea silentlycontinue | Out-Null" 214 | :VPNinfoNotNulled 215 | setlocal disableDelayedExpansion 216 | goto Continueaftervpnupdatecheck 217 | :Continueaftervpnupdatecheck 218 | cd /d "%systemdrive%\Windows\System32" 219 | goto SetAndCheckVPNMode 220 | :SetAndCheckVPNMode 221 | setlocal enableDelayedExpansion 222 | (Set LF=^ 223 | %Null% 224 | ) 225 | for /l %%N in (2 -1 1) do ( 226 | set /a "min=%%N/60, sec=%%N%%60, n-=1" 227 | if !sec! lss 2 set sec=0!sec! 228 | cls 229 | choice /c:CN1 /n /m "Continue in !min!:!sec! - Press N to Continue with what you set before, or C to put your own default setting." /t:1 /d:1 230 | if not errorlevel 3 goto :break 231 | ) 232 | cls 233 | echo ... current active VPN Mode: %CurrentMode% ... 234 | echo Waiting for user input in 0:00 - Press N to Continue Now, or C to input your own vpn default mode settings. 235 | :break 236 | if errorlevel 2 (goto CheckVPNStatus) else goto Setvpnmodedefaultvalue 237 | :Setvpnmodedefaultvalue 238 | cls 239 | echo. 240 | echo. 241 | echo Please enter your own vpn setting mode as described below. 242 | echo. 243 | echo type 0 for resetting vpn to default behavior whenever you have issues. 244 | echo type 1 for forcing script to always run in VPN for voip Mode. 245 | echo type 2 for forcing script to always run VPN globally on system. 246 | echo. 247 | echo. 248 | set /p VPNMode=VPNMode: 249 | cls 250 | if %VPNMode% GEQ 0 if %VPNMode% LSS 3 ( 251 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v "Mode" /t REG_SZ /d "%VPNMode%" /f >nul 2>&1 252 | ) else (reg ADD "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v "Mode" /t REG_SZ /d "0" /f >nul 2>&1 253 | ) 254 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v Mode') do @set "CurrentMode=%%z" >nul 2>&1 255 | goto CheckVPNStatus 256 | :continuewithdefaultbehavior 257 | cls 258 | echo ... Welcome %username% to DaddyMadu Automated VPN and VOIP ... 259 | echo. 260 | echo ... current active VPN Mode: %CurrentMode% ... 261 | echo. 262 | Echo v%CurrentVersion% 263 | echo Setting up DaddyMadu Auotmated VPN... 264 | echo>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 if (Get-Module -ListAvailable -Name "PackageManagement") { 265 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Import-Module PackageManagement -RequiredVersion 1.0.0.1 266 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } else { 267 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Install-Module -Name "PackageManagement" -Force 268 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Import-Module PackageManagement -RequiredVersion 1.0.0.1 269 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 270 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 if ((Get-PackageProvider -Name "NuGet" -Force).version -lt "2.8.5.208") { 271 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 try { 272 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Write-Host "Checking if Nuget Package is installed..." (Get-PackageProvider -Name "NuGet").version 273 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Write-Host "Installing Nuget packageprovider updates..." 274 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Install-PackageProvider -Name "NuGet" -MinimumVersion "2.8.5.208" -Confirm:$False -Force 275 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 276 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 catch [Exception]{ 277 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $_.message 278 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 exit 279 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 280 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } else { 281 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Write-Host "Version of NuGet installed = " (Get-PackageProvider -Name "NuGet").version 282 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 283 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 if (Get-Module -ListAvailable -Name VPNCredentialsHelper) { 284 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Write-Host "VPNCredentialsHelper Already Installed" 285 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } else { 286 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 try { 287 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Write-Host "VPNCredentialsHelper is not found, trying to install it..." 288 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Install-Module -Name VPNCredentialsHelper -Confirm:$False -Force 289 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 290 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 catch [Exception] { 291 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $_.message 292 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 exit 293 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 294 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 295 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Remove-Item -Path "$env:USERPROFILE\VPNServers.txt" -Force -Recurse -ErrorAction SilentlyContinue 296 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Remove-Item -Path "$env:USERPROFILE\VPNServersSorted.txt" -Force -Recurse -ErrorAction SilentlyContinue 297 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Write-Host "Old VPN Servers list is deleted successfully, Fetching latest avaliable servers..." 298 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 function UpdateVPNwithServer { 299 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 if ((Get-VpnConnection).name -ceq "VPN") { 300 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Write-Host "VPN Connection found! updating it with the latest fetched vpn server..." 301 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 If ((Get-VPNconnection -Name "VPN").ConnectionStatus -eq "Connected") { 302 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 rasdial "VPN" /DISCONNECT ^| Out-Null 303 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Start-Sleep -s 2 304 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 305 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Set-VpnConnection -Name "VPN" -ServerAddress "$VPNServerAdress" -TunnelType "Sstp" -EncryptionLevel "NoEncryption" -AuthenticationMethod "PAP" -RememberCredential:$true -ErrorAction SilentlyContinue ^| Out-Null 306 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Set-VpnConnectionUsernamePassword -connectionname $VPNServername -username $VPNusername -password $VPNpassword -ErrorAction SilentlyContinue ^| Out-Null 307 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } else { 308 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Remove-VpnConnection -Name "vpn", "VPN" -Force -PassThru -ErrorAction SilentlyContinue ^| Out-Null 309 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Start-Sleep -s 3 310 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Write-Host "VPN Connection was not found! adding new one with the latest fetched vpn server..." 311 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Add-VpnConnection -Name $VPNServername -ServerAddress "$VPNServerAdress" -TunnelType "Sstp" -EncryptionLevel "NoEncryption" -AuthenticationMethod "PAP" -RememberCredential:$true -ErrorAction SilentlyContinue ^| Out-Null 312 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Set-VpnConnectionUsernamePassword -connectionname $VPNServername -username $VPNusername -password $VPNpassword -ErrorAction SilentlyContinue ^| Out-Null 313 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 314 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 315 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 function UpdateVPNwithServerEncrypted { 316 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 if ((Get-VpnConnection).name -ceq "VPN") { 317 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Write-Host "VPN Connection found! updating it with the latest fetched vpn server..." 318 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 If ((Get-VPNconnection -Name "VPN").ConnectionStatus -eq "Connected") { 319 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 rasdial "VPN" /DISCONNECT ^| Out-Null 320 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 321 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Set-VpnConnection -Name "VPN" -ServerAddress "$VPNServerAdress" -TunnelType "Sstp" -EncryptionLevel "Required" -AuthenticationMethod "MSChapv2" -RememberCredential:$true -ErrorAction SilentlyContinue ^| Out-Null 322 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Set-VpnConnectionUsernamePassword -connectionname $VPNServername -username $VPNusername -password $VPNpassword -ErrorAction SilentlyContinue ^| Out-Null 323 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } else { 324 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Remove-VpnConnection -Name "vpn", "VPN" -Force -PassThru -ErrorAction SilentlyContinue ^| Out-Null 325 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Start-Sleep -s 3 326 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Write-Host "VPN Connection was not found! adding new one with the latest fetched vpn server..." 327 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Add-VpnConnection -Name $VPNServername -ServerAddress "$VPNServerAdress" -TunnelType "Sstp" -EncryptionLevel "Required" -AuthenticationMethod "MSChapv2" -RememberCredential:$true -ErrorAction SilentlyContinue ^| Out-Null 328 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Set-VpnConnectionUsernamePassword -connectionname $VPNServername -username $VPNusername -password $VPNpassword -ErrorAction SilentlyContinue ^| Out-Null 329 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 330 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 331 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 If (Test-Path -Path "$env:userprofile\DaddyMaduVPN.config") { 332 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Copy-Item -Path "$env:userprofile\DaddyMaduVPN.config" -Destination "$env:userprofile\DaddyMaduVPN.ps1" 333 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 . $env:userprofile\DaddyMaduVPN.ps1 334 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Remove-Item -Path $env:userprofile\DaddyMaduVPN.ps1 -Force -ea silentlycontinue ^| Out-Null 335 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $VPNpassword = [System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String($Epassword)) 336 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 UpdateVPNwithServerEncrypted 337 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } else { 338 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $VPNServerURI = "https://www.vpngate.net/en/" 339 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $VPNServerHTML = Invoke-WebRequest -Uri $VPNServerURI 340 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $VPNServersOut = ($VPNServerHTML.ParsedHtml.getElementsByTagName("td") ^| Where-Object{$_.className -eq "vg_table_row_1"}).innerText ^| select-string -CaseSensitive "SSTP Hostname :" 341 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $VPNServersText = $VPNServersOut -replace 'SSTP Hostname :' -replace 'MS-SSTP' -replace 'Connect guide' ^| ForEach-Object { $_.Trim() } 342 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 foreach ($line in $VPNServersText) { 343 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 if ($line -like "*opengw*") { 344 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $line ^| out-file -FilePath "$env:USERPROFILE\VPNServers.txt" -Append 345 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 346 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 347 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $unsortedservers = Get-Content "$env:USERPROFILE\VPNServers.txt" 348 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 Write-Host "Pinging fetched vpn servers and removing dead ones..." 349 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 @(foreach ($vserver in $unsortedservers){ 350 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 test-connection -ComputerName $vserver -Count 1 -ea silentlycontinue ^| 351 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 measure responsetime -average ^| 352 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 %% {$_.average.tostring() + " $vserver"}}) ^| 353 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 sort ^|%% {$_.split()[1]} ^| out-file -FilePath $env:USERPROFILE\VPNServersSorted.txt -Append 354 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 get-content "$env:USERPROFILE\VPNServersSorted.txt" ^| sort{get-random} ^| select -First 1 ^| Tee-Object -Variable VPNServerAdress ^| Out-Null 355 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $VPNusername = "vpn" 356 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $VPNpassword = "vpn" 357 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 $VPNServername = "VPN" 358 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 UpdateVPNwithServer 359 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 } 360 | powershell -ExecutionPolicy Bypass %userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 361 | echo Setting VPN Connection ready to connect without Confirmation... 362 | echo>%userprofile%\AppData\Local\Temp\dmtmp\DisableAuthConfirmation.ps1 $content = [System.IO.File]::ReadAllText("$env:APPDATA\Microsoft\Network\Connections\Pbk\rasphone.pbk").Replace("PreviewUserPw=1","PreviewUserPw=0") 363 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DisableAuthConfirmation.ps1 [System.IO.File]::WriteAllText("$env:APPDATA\Microsoft\Network\Connections\Pbk\rasphone.pbk", $content) 364 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DisableAuthConfirmation.ps1 $content = [System.IO.File]::ReadAllText("$env:APPDATA\Microsoft\Network\Connections\Pbk\rasphone.pbk").Replace("PreviewDomain=1","PreviewDomain=0") 365 | echo>>%userprofile%\AppData\Local\Temp\dmtmp\DisableAuthConfirmation.ps1 [System.IO.File]::WriteAllText("$env:APPDATA\Microsoft\Network\Connections\Pbk\rasphone.pbk", $content) 366 | powershell -ExecutionPolicy Bypass %userprofile%\AppData\Local\Temp\dmtmp\DisableAuthConfirmation.ps1 367 | powershell Start-Sleep -s 1 368 | powershell -c "Remove-Item -Path %userprofile%\AppData\Local\Temp\dmtmp\DisableAuthConfirmation.ps1 -Force -ea silentlycontinue | Out-Null" 369 | powershell -c "Remove-Item -Path %userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-AutomatedVPN.ps1 -Force -ea silentlycontinue | Out-Null" 370 | echo Setting VPN connection to accept split tunneling or not based on your choise... 371 | goto VPNforVOIP 372 | :CheckVPNStatus 373 | for /f "usebackq delims=" %%w in (` 374 | powershell -NoProfile -ExecutionPolicy Bypass -c "$vpnStatus = If ((rasdial | select-string 'VPN').count -eq 0) {'Disconnected'} else {'Online'}; $vpnStatus" 375 | `) do set "VPNChecker=%%w" 376 | IF %VPNChecker% EQU Disconnected ( 377 | if %CurrentMode% EQU 2 (goto GlobalVPNonSYSTEM 378 | ) else if %CurrentMode% EQU 1 (goto VPNforVOIP 379 | ) else goto continuewithdefaultbehavior 380 | ) ELSE ( 381 | rasphone -h "VPN" 382 | goto CheckVPNStatus 383 | ) 384 | :GlobalVPNonSYSTEM 385 | rasphone -d "VPN" 386 | timeout /t 1 /nobreak >nul 387 | netsh interface ipv4 set interface VPN metric=1 388 | timeout /t 1 /nobreak >nul 389 | Powershell Set-NetIPInterface -InterfaceAlias "VPN" -InterfaceMetric "1" 390 | echo Y | powershell Set-VpnConnection -Name "VPN" -SplitTunneling $False 391 | rasphone -h "VPN" 392 | timeout /t 1 /nobreak >nul 393 | rasphone -d "VPN" 394 | timeout /t 1 /nobreak >nul 395 | goto eof 396 | :VPNforVOIP 397 | rasphone -d "VPN" 398 | Powershell Set-VpnConnection -Name "VPN" -SplitTunneling $True 399 | rasphone -h "VPN" 400 | rasphone -d "VPN" 401 | ECHO Starting Voip Routing... 402 | set ip="IP Address" 403 | rem set ip="IP Address" 404 | for /f "tokens=3 delims=: " %%I in ('netsh interface IPv4 show addresses "VPN" ^| findstr /C:%ip%') do set ip_address=%%I 405 | route add 3.0.0.0 mask 255.0.0.0 %ip_address% 406 | route add 8.0.0.0 mask 255.0.0.0 %ip_address% 407 | route add 18.0.0.0 mask 255.0.0.0 %ip_address% 408 | route add 34.0.0.0 mask 255.0.0.0 %ip_address% 409 | route add 35.0.0.0 mask 255.0.0.0 %ip_address% 410 | route add 50.0.0.0 mask 255.0.0.0 %ip_address% 411 | route add 52.0.0.0 mask 255.0.0.0 %ip_address% 412 | route add 54.0.0.0 mask 255.0.0.0 %ip_address% 413 | route add 216.0.0.0 mask 255.0.0.0 %ip_address% 414 | route add 74.0.0.0 mask 255.0.0.0 %ip_address% 415 | route add 63.0.0.0 mask 255.0.0.0 %ip_address% 416 | route add 144.0.0.0 mask 255.0.0.0 %ip_address% 417 | route add 188.0.0.0 mask 255.0.0.0 %ip_address% 418 | ECHO ***********************DONE*********************** 419 | goto eof 420 | :eof 421 | setlocal DisableDelayedExpansion 422 | exit 423 | -------------------------------------------------------------------------------- /DaddyMadu-Windows-Optimizer-Encoded.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | cd /d "%systemdrive%\Windows\System32" 3 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v "OptimizerVersion" /t REG_SZ /d "5.3.1" /f >nul 2>&1 4 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v OptimizerVersion') do @set "CurrentVersion=%%z" 5 | powershell -NoProfile -ExecutionPolicy Bypass -c "Add-MpPreference -ExclusionPath '%userprofile%\AppData\Local\Temp\dmtmp'" >nul 2>&1 6 | for /f "usebackq delims=" %%a in (` 7 | powershell -NoProfile -ExecutionPolicy Bypass -c "$DesktopGetPath = [Environment]::GetFolderPath([Environment+SpecialFolder]::Desktop); $DesktopGetPath" 8 | `) do set "DesktopPath=%%a" 9 | cls 10 | title [ Daddy Madu ] Windows Optimizer! 11 | color 1f 12 | :Menu 13 | cls 14 | echo ... Welcome %username% to DaddyMadu Windows Optimizer ... 15 | echo. 16 | echo 1. Clear All TEMP folders, logs, chks, Caches and Fix DNS problems 17 | echo 2. Install and scan system with MalwareBytes 18 | echo 3. Scan System + Repair Windows Image 19 | echo 4. Install or Update Wise Programs Uninstaller 20 | echo 5. Automated Apps Installer - Beta 21 | echo 6. Windows 10/^11 Gaming Focus Full Tweaker and Debloater 22 | echo 7. Fix Start Menu issues 23 | echo 8. Fix and Rebuild Icons 24 | echo 9. Games Optimizer 25 | echo 10. DaddyMadu Automated VPN and VOIP 26 | echo 999. Exit 27 | echo. 28 | Echo. 29 | Echo v%CurrentVersion% 30 | echo. 31 | echo. 32 | set /p answer=Type the number of your option and press ENTER KEY: 33 | if %answer%==1 goto cleartemp 34 | if %answer%==2 goto malwarebytes 35 | if %answer%==3 goto Repair 36 | if %answer%==4 goto WiseUninstaller 37 | if %answer%==5 goto DaddyMaduAutomatedAppsInstaller 38 | if %answer%==6 goto Windows10GamingFocus 39 | if %answer%==7 goto fixstartmenu 40 | if %answer%==8 goto rebuildicon 41 | if %answer%==9 goto GamesOptimizer 42 | if %answer%==10 goto AutomatedVPN 43 | if %answer%==999 goto Exit 44 | goto Menu 45 | :Exit 46 | cls 47 | echo Thank you for using Daddy Madu Windows Optimizer! 48 | echo. 49 | TIMEOUT 3 >nul 50 | exit /b 51 | :Repair 52 | cls 53 | sfc /scannow 54 | sfc /scannow 55 | DISM /Online /Cleanup-Image /CheckHealth 56 | DISM /Online /Cleanup-Image /ScanHealth 57 | DISM /Online /Cleanup-Image /RestoreHealth 58 | cls 59 | echo Windows Repaired Successfully! 60 | echo ------------------------------------------------------------------------ 61 | echo Please restart the PC, Press ENTER KEY yo Continue. 62 | echo ------------------------------------------------------------------------ 63 | pause >nul 64 | goto Menu 65 | :WiseUninstaller 66 | cls 67 | echo Getting Things Ready for you, Please Wait... 68 | reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main" /v DisableFirstRunCustomize /t REG_DWORD /d 2 /f >nul 2>&1 69 | for /f "usebackq delims=" %%a in (` 70 | powershell -NoProfile -ExecutionPolicy Bypass -c "$Results = Invoke-WebRequest -Method Get -Uri 'https://www.wisecleaner.com/index.php?r=download-product/latest-version&product=wise-program-uninstaller' -MaximumRedirection 0 -ErrorAction SilentlyContinue; $DownloadwuiLink = $Results.Headers.Location; $DownloadwuiLink" 71 | `) do set "DownloadwuiLink=%%a" 72 | for /f "usebackq delims=" %%b in (` 73 | powershell -NoProfile -ExecutionPolicy Bypass -c "$Results = Invoke-WebRequest -Method Get -Uri 'https://www.wisecleaner.com/index.php?r=download-product/latest-version&product=wise-program-uninstaller' -MaximumRedirection 0 -ErrorAction SilentlyContinue; $DownloadwuiLink = $Results.Headers.Location; $DownloadwuiLink; [System.IO.Path]::GetFileName(("$DownloadwuiLink"))" 74 | `) do set "FilewuiName=%%b" 75 | echo File Name: "%FilewuiName%" 76 | cls 77 | IF EXIST "%systemdrive%\Program Files (x86)\Wise\Wise Program Uninstaller\WiseProgramUninstaller.exe" ( 78 | GOTO ConfirmationwuiDW 79 | ) ELSE ( 80 | GOTO askforwuiinstallation 81 | ) 82 | :askforwuiinstallation 83 | cls 84 | SET /P yesno=Do you want to install with Wise Program Uninstaller? [Y/N]: 85 | IF "%yesno%"=="y" GOTO Confirmationwui 86 | IF "%yesno%"=="Y" GOTO Confirmationwui 87 | IF "%yesno%"=="n" GOTO Endwui 88 | IF "%yesno%"=="N" GOTO Endwui 89 | goto askforwuiinstallation 90 | :ConfirmationwuiDW 91 | Echo Checking for Update... 92 | for /f "usebackq delims=" %%x in (` 93 | powershell -NoProfile -ExecutionPolicy Bypass -c "(get-item '%systemdrive%\Program Files (x86)\Wise\Wise Program Uninstaller\WiseProgramUninstaller.exe').VersionInfo.FileVersion" 94 | `) do set "InstalledWUIVersion=WPUSetup_%%x.exe" 95 | if "%InstalledWUIVersion%"=="%FilewuiName%" ( 96 | echo You Have The Latest Version! 97 | TIMEOUT 2 >nul 98 | goto Menu 99 | ) else ( 100 | Echo New Update %FilewuiName% Found, Updating NOW! 101 | timeout /t 2 /nobreak >nul 102 | goto Confirmationwui 103 | ) 104 | :Confirmationwui 105 | cls 106 | echo Grapping Wise Program Uninstaller Latest Version Link... 107 | echo "%DownloadwuiLink%" 108 | echo Downloading Wise Program Uninstaller... 109 | bitsadmin /transfer "Downloading Wise Program Uninstaller" /priority FOREGROUND "%DownloadwuiLink%" "%systemdrive%\%FilewuiName%" 110 | IF EXIST "%systemdrive%\%FilewuiName%" ( 111 | goto wuicontinue 112 | ) ELSE ( 113 | GOTO alternativewuidownload 114 | ) 115 | :alternativewuidownload 116 | powershell -c "(New-Object Net.WebClient).DownloadFile('%DownloadwuiLink%', '%systemdrive%\%FilewuiName%')" 117 | goto wuicontinue 118 | :wuicontinue 119 | cls 120 | echo Installing Wise Program Uninstaller... 121 | "%systemdrive%\%FilewuiName%" /VERYSILENT 122 | TIMEOUT 10 >nul 123 | GOTO Endwui 124 | :Endwui 125 | start http://madu.gg/ 126 | cls 127 | echo ------------------------------------------------------------------------ 128 | echo Process Completed Successfully. press ENTER KEY to Continue! 129 | echo ------------------------------------------------------------------------ 130 | pause >nul 131 | goto Menu 132 | :DaddyMaduAutomatedAppsInstaller 133 | cls 134 | echo Getting Things Ready for you, Please Wait... 135 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Apps-Installer.bat" ( 136 | goto choiceAppInstallerHQ 137 | ) ELSE ( 138 | GOTO AppInstallerHQ 139 | ) 140 | :choiceAppInstallerHQ 141 | cls 142 | for /f "usebackq delims=" %%w in (` 143 | powershell -NoProfile -ExecutionPolicy Bypass -c "$CheckAutomatedAppsVersion = Invoke-WebRequest -Uri https://git.io/JON1H; $AutomatedAppsVersion = ($CheckAutomatedAppsVersion.Content | Out-String).Trim(); $AutomatedAppsVersion" 144 | `) do set "OnlineAutomatedAppsVersion=%%w" 145 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v AutomatedApps') do @set "AutomatedAppsVersion=%%z" 146 | IF "%OnlineAutomatedAppsVersion%" EQU "%AutomatedAppsVersion%" ( 147 | echo No Update Found, Lunching script! 148 | goto continueAppInstallerHQ 149 | ) ELSE ( 150 | echo Automated Apps Update Found v%OnlineAutomatedAppsVersion%, Script is updating NOW! 151 | powershell -NoProfile -ExecutionPolicy Bypass -c "$CheckAutomatedAppsChangelog = Invoke-WebRequest -Uri https://git.io/JONPi; $AutomatedAppsChangelog = ($CheckAutomatedAppsChangelog.Content | Out-String).Trim(); $AutomatedAppsChangelog.Split([Environment]::NewLine) | Select -First 20" 152 | timeout /t 20 153 | cls 154 | goto AppInstallerHQ 155 | ) 156 | :AppInstallerHQ 157 | cls 158 | bitsadmin /transfer "Downloading Daddy Madu Windows Optimizer Latest Update" /priority FOREGROUND "https://git.io/JO9MJ" "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Apps-Installer.bat" 159 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Apps-Installer.bat" ( 160 | goto continueAppInstallerHQ 161 | ) ELSE ( 162 | GOTO alternativedownloadAppInstallerHQ 163 | ) 164 | :alternativedownloadAppInstallerHQ 165 | cls 166 | powershell -c "(New-Object Net.WebClient).DownloadFile('https://git.io/JO9MJ', '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Apps-Installer.bat')" 167 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Apps-Installer.bat" ( 168 | goto continueAppInstallerHQ 169 | ) ELSE ( 170 | GOTO alternativedownload2AppInstallerHQ 171 | ) 172 | :alternativedownload2AppInstallerHQ 173 | cls 174 | powershell -c "Invoke-WebRequest https://git.io/JO9MJ -OutFile %userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Apps-Installer.bat" 175 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Apps-Installer.bat" ( 176 | goto continueAppInstallerHQ 177 | ) ELSE ( 178 | cls 179 | ECHO ============================================================================================= 180 | echo Please Make Sure you DISABLED YOUR ANTIVIRUS and You HAVE INTERNET Avaliable! 181 | echo As something is BLOCKING script from downloading latest Version Avaliable! 182 | ECHO ============================================================================================= 183 | echo Please Press ENTER KEY to try again! 184 | ECHO ============================================================================================= 185 | pause >nul 186 | goto AppInstallerHQ 187 | ) 188 | :continueAppInstallerHQ 189 | cls 190 | for /f "delims== tokens=2" %%a in ('wmic os get osarchitecture /value') do ( 191 | set arch=%%a 192 | ) 193 | if "%arch%"=="64-bit" ( 194 | goto :x64AppInstallerHQ 195 | ) else ( 196 | goto :x86AppInstallerHQ 197 | ) 198 | :x64AppInstallerHQ 199 | IF EXIST "%SystemRoot%\Sysnative\cmd.exe" ( 200 | start %SystemRoot%\Sysnative\cmd.exe /c "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Apps-Installer.bat" 201 | ) ELSE ( 202 | start %SystemRoot%\System32\cmd.exe /c "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Apps-Installer.bat" 203 | ) 204 | goto ExitDaddyMaduWindowsOptimizer 205 | :x86AppInstallerHQ 206 | start %SystemRoot%\System32\cmd.exe /c "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Apps-Installer.bat" 207 | goto ExitDaddyMaduWindowsOptimizer 208 | :ExitDaddyMaduWindowsOptimizer 209 | Exit 210 | :Windows10GamingFocus 211 | cls 212 | for /f "tokens=1-3" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ReleaseID') do @set "Version=%%~c" 213 | IF %Version% GEQ 2009 ( 214 | goto uptodate 215 | ) ELSE ( 216 | cls 217 | echo ------------------------------------------------------------------------ 218 | echo Your Windows 10 %Version% is OUTDATED! Please update your system to the latest 20H2 AKA 2009 build. 219 | echo TO CONTINUE ANY WAY PRESS ENTER KEY! You may encounter errors during optimization pocess. 220 | echo ------------------------------------------------------------------------ 221 | pause >nul 222 | goto uptodate 223 | ) 224 | :uptodate 225 | cls 226 | del /s /f /q "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.ps1">nul 2>&1 227 | bitsadmin /transfer "Downloading Daddy Madu Windows Optimizer Latest Update" /priority FOREGROUND "http://madu.gg/ps" "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.ps1" 228 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.ps1" ( 229 | goto continuelocalstart 230 | ) ELSE ( 231 | GOTO alternativedownload 232 | ) 233 | :alternativedownload 234 | cls 235 | powershell -c "(New-Object Net.WebClient).DownloadFile('http://madu.gg/ps', '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.ps1')" 236 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.ps1" ( 237 | goto continuelocalstart 238 | ) ELSE ( 239 | GOTO alternativedownload2 240 | ) 241 | :alternativedownload2 242 | cls 243 | powershell -c "Invoke-WebRequest http://madu.gg/ps -OutFile %userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.ps1" 244 | goto continuelocalstart 245 | :continuelocalstart 246 | cls 247 | start /wait powershell -nop -executionpolicy bypass -File "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.ps1" 248 | cls 249 | echo DaddyMadu Windows10GamingFocus Applied Successfully! 250 | echo ------------------------------------------------------------------------ 251 | echo Please restart your PC! 252 | echo ------------------------------------------------------------------------ 253 | :rebootafterWindows10GamingFocus 254 | SET /P yesno=Do you want to Reboot this machine NOW? [Y/N]: 255 | IF "%yesno%"=="y" GOTO Confirmation 256 | IF "%yesno%"=="Y" GOTO Confirmation 257 | IF "%yesno%"=="n" GOTO End 258 | IF "%yesno%"=="N" GOTO End 259 | goto rebootafterWindows10GamingFocus 260 | :Confirmation 261 | ECHO System is going to Reboot now 262 | shutdown /r /f /t 0 263 | GOTO EOF 264 | :End 265 | ECHO System Reboot cancelled... 266 | TIMEOUT 2 >nul 267 | :EOF 268 | cls 269 | echo Please restart your PC. press ENTER KEY to Continue! 270 | TIMEOUT 2 >nul 271 | goto Menu 272 | :fixstartmenu 273 | cls 274 | echo Deleteing registry value for start menu 275 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount" /f >nul 2>&1 276 | echo Starting Component Cleanup 277 | Schtasks.exe /Run /I /TN \Microsoft\Windows\Servicing\StartComponentCleanup 278 | echo Cleaning Component Using DISM 279 | DISM /online /Cleanup-Image /StartComponentCleanup 280 | cls 281 | echo StartMenu Repaired Successfully! 282 | echo ------------------------------------------------------------------------ 283 | echo Please restart the PC, Press ENTER KEY yo Continue. 284 | echo ------------------------------------------------------------------------ 285 | pause >nul 286 | goto Menu 287 | :rebuildicon 288 | cls 289 | set iconcache=%localappdata%\IconCache.db 290 | set iconcache_x=%localappdata%\Microsoft\Windows\Explorer\iconcache* 291 | 292 | echo. 293 | echo The explorer process must be temporarily killed before deleting the IconCache.db file. 294 | echo. 295 | echo Please SAVE ALL OPEN WORK before continuing and Press ENTER KEY yo Continue. 296 | echo. 297 | pause 298 | echo. 299 | If exist "%iconcache%" goto delete 300 | echo. 301 | echo The %localappdata%\IconCache.db file has already been deleted. 302 | echo. 303 | If exist "%iconcache_x%" goto delete 304 | echo. 305 | echo The %localappdata%\Microsoft\Windows\Explorer\IconCache_*.db files have already been deleted. 306 | echo. 307 | gotoMenu 308 | 309 | 310 | :delete 311 | echo. 312 | echo Attempting to delete IconCache.db files... 313 | echo. 314 | ie4uinit.exe -show 315 | taskkill /IM explorer.exe /F 316 | If exist del /A /F /Q "%iconcache%" 317 | If exist del /A /F /Q "%iconcache_x%" 318 | start explorer.exe 319 | echo. 320 | echo IconCache database files have been successfully deleted. 321 | goto restart 322 | 323 | 324 | :restart 325 | cls 326 | echo. 327 | echo. 328 | echo You will need to restart the PC to finish rebuilding your icon cache. 329 | echo. 330 | goto chooserc 331 | :chooserc 332 | CHOICE /C:YN /M "Do you want to restart the PC now?" 333 | IF ERRORLEVEL 2 goto no 334 | IF ERRORLEVEL 1 goto yes 335 | goto chooserc 336 | :yes 337 | shutdown /r /f /t 00 338 | 339 | :no 340 | goto Menu 341 | :malwarebytes 342 | cls 343 | IF EXIST "%ProgramFiles%\Malwarebytes\Anti-Malware\mbam.exe" ( 344 | GOTO scananduninstall 345 | ) ELSE ( 346 | GOTO Downloadmalwarebytes 347 | ) 348 | :Downloadmalwarebytes 349 | cls 350 | echo Downloading MalwareBytes... 351 | bitsadmin /transfer "Downloading MalwareBytes" /priority FOREGROUND "https://data-cdn.mbamupdates.com/web/mb4-setup-consumer/MBSetup.exe" "%systemdrive%\MBSetup.exe" 352 | IF EXIST "%systemdrive%\MBSetup.exe" ( 353 | goto mbcontinue 354 | ) ELSE ( 355 | GOTO alternativembdownload 356 | ) 357 | :alternativembdownload 358 | powershell -c "(New-Object Net.WebClient).DownloadFile('https://data-cdn.mbamupdates.com/web/mb4-setup-consumer/MBSetup.exe', '%systemdrive%\MBSetup.exe')" 359 | goto mbcontinue 360 | :mbcontinue 361 | cls 362 | echo Installing MalwareBytes... 363 | "%systemdrive%\MBSetup.exe" /VERYSILENT /NORESTART 364 | TIMEOUT 10 >nul 365 | GOTO scananduninstall 366 | :scananduninstall 367 | cls 368 | echo Scanning your system with MalwareBytes... 369 | "%ProgramFiles%\Malwarebytes\Anti-Malware\mbam.exe" /scan -full -silent 370 | SET /P yesno=Do you want to Uninstall Malwarebytes? [Y/N]: 371 | IF "%yesno%"=="y" GOTO Confirmation 372 | IF "%yesno%"=="Y" GOTO Confirmation 373 | IF "%yesno%"=="n" GOTO End 374 | IF "%yesno%"=="N" GOTO End 375 | GOTO scananduninstall 376 | :Confirmation 377 | cls 378 | echo Uninstalling MalwareBytes... 379 | "%ProgramFiles%\Malwarebytes\Anti-Malware\mbuns.exe" /VERYSILENT /NORESTART 380 | GOTO EOF 381 | :End 382 | :EOF 383 | GOTO EOF 384 | :End 385 | :EOF 386 | cls 387 | echo Deleting MalwareBytes Source Files... 388 | del /f /s /q "%SystemDrive%\MBSetup.exe" 389 | cls 390 | echo Processed Successfully! press ENTER KEY to Continue! 391 | pause >nul 392 | goto Menu 393 | :cleartemp 394 | cls 395 | del /f /s /q "%systemdrive%\*.tmp" 396 | del /f /s /q "%systemdrive%\*._mp" 397 | del /f /s /q "%systemdrive%\*.log" 398 | del /f /s /q "%systemdrive%\*.gid" 399 | del /f /s /q "%systemdrive%\*.chk" 400 | del /f /s /q "%systemdrive%\*.old" 401 | del /f /s /q "%systemdrive%\recycled\*.*" 402 | del /f /s /q "%windir%\*.bak" 403 | del /f /s /q "%windir%\prefetch\*.*" 404 | rd /s /q %windir%\temp & md %windir%\temp 405 | del /f /q "%userprofile%\cookies\*.*" 406 | del /f /q "%userprofile%\recent\*.*" 407 | del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" 408 | SETLOCAL 409 | SET "sourcedir=%userprofile%\AppData\Local\Temp" 410 | SET "keepfile=DaddyMadu-Windows-Optimizer.bat" 411 | SET "keepfile2=DaddyMadu-Apps-Installer.bat" 412 | SET "keepfile3=DaddyMadu-Windows-Optimizer.ps1" 413 | SET "keepfile4=DaddyMadu-VPN-VOIP.bat" 414 | SET "keepdir=dmtmp" 415 | FOR /d %%a IN ("%sourcedir%\*") DO IF /i NOT "%%~nxa"=="%keepdir%" RD /S /Q "%%a" 416 | FOR %%a IN ("%sourcedir%\*") DO IF /i NOT "%%~nxa"=="%keepfile%" IF /i NOT "%%~nxa"=="%keepfile2%" IF /i NOT "%%~nxa"=="%keepfile3%" IF /i NOT "%%~nxa"=="%keepfile4%" DEL /S /F /Q "%%a" 417 | SETLOCAL 418 | SET "sourcedir=%userprofile%\AppData\Local\Temp\dmtmp" 419 | SET "keepfile=DaddyMadu-Windows-Optimizer.bat" 420 | SET "keepfile2=DaddyMadu-Apps-Installer.bat" 421 | SET "keepfile3=DaddyMadu-Windows-Optimizer.ps1" 422 | SET "keepfile4=DaddyMadu-VPN-VOIP.bat" 423 | SET "keepdir=dmtmp" 424 | FOR /d %%a IN ("%sourcedir%\*") DO IF /i NOT "%%~nxa"=="%keepdir%" RD /S /Q /F "%%a" 425 | FOR %%a IN ("%sourcedir%\*") DO IF /i NOT "%%~nxa"=="%keepfile%" IF /i NOT "%%~nxa"=="%keepfile2%" IF /i NOT "%%~nxa"=="%keepfile3%" IF /i NOT "%%~nxa"=="%keepfile4%" DEL /S /F /Q "%%a" 426 | SETLOCAL 427 | SET "sourcedir=%userprofile%\Local Settings\Temp" 428 | SET "keepfile=DaddyMadu-Windows-Optimizer.bat" 429 | SET "keepfile2=DaddyMadu-Apps-Installer.bat" 430 | SET "keepfile3=DaddyMadu-Windows-Optimizer.ps1" 431 | SET "keepfile4=DaddyMadu-VPN-VOIP.bat" 432 | SET "keepdir=dmtmp" 433 | FOR /d %%a IN ("%sourcedir%\*") DO IF /i NOT "%%~nxa"=="%keepdir%" RD /S /Q "%%a" 434 | FOR %%a IN ("%sourcedir%\*") DO IF /i NOT "%%~nxa"=="%keepfile%" IF /i NOT "%%~nxa"=="%keepfile2%" IF /i NOT "%%~nxa"=="%keepfile3%" IF /i NOT "%%~nxa"=="%keepfile4%" DEL /S /F /Q "%%a" 435 | SETLOCAL 436 | SET "sourcedir=%userprofile%\Local Settings\Temp\dmtmp" 437 | SET "keepfile=DaddyMadu-Windows-Optimizer.bat" 438 | SET "keepfile2=DaddyMadu-Apps-Installer.bat" 439 | SET "keepfile3=DaddyMadu-Windows-Optimizer.ps1" 440 | SET "keepfile4=DaddyMadu-VPN-VOIP.bat" 441 | SET "keepdir=dmtmp" 442 | FOR /d %%a IN ("%sourcedir%\*") DO IF /i NOT "%%~nxa"=="%keepdir%" RD /S /Q /F "%%a" 443 | FOR %%a IN ("%sourcedir%\*") DO IF /i NOT "%%~nxa"=="%keepfile%" IF /i NOT "%%~nxa"=="%keepfile2%" IF /i NOT "%%~nxa"=="%keepfile3%" IF /i NOT "%%~nxa"=="%keepfile4%" DEL /S /F /Q "%%a" 444 | del /f /s /q "%userprofile%\recent\*.*" 445 | del /f /s /q "%windir%\Temp\*.*" 446 | goto googlednschoice 447 | :googlednschoice 448 | setlocal enableDelayedExpansion 449 | for /l %%N in (10 -1 1) do ( 450 | set /a "min=%%N/60, sec=%%N%%60, n-=1" 451 | if !sec! lss 10 set sec=0!sec! 452 | cls 453 | choice /c:CN1 /n /m "Applying Google DNS^/Open DNS in !min!:!sec! - Press N to Apply Now, or C to Cancel. " /t:1 /d:1 454 | if not errorlevel 3 goto :break 455 | ) 456 | cls 457 | echo Checking for Updates in 0:00 - Press N to Check Now, or C to Cancel. 458 | :break 459 | if errorlevel 2 (goto acceptgoogledns) else goto canceldgoogledns 460 | :eof 461 | 462 | :acceptgoogledns 463 | echo Accepted! 464 | powershell -NoProfile -ExecutionPolicy Bypass -c "Get-NetAdapter | set-DnsClientServerAddress -ServerAddresses ('8.8.8.8','1.1.1.1')" >nul 2>&1 465 | goto continuenetworkfixes 466 | :canceldgoogledns 467 | echo Cancelled! 468 | goto continuenetworkfixes 469 | :continuenetworkfixes 470 | setlocal DisableDelayedExpansion 471 | netsh winsock reset 472 | netsh int ip reset 473 | ipconfig /release 474 | ipconfig /renew 475 | ipconfig /flushdns 476 | ipconfig /registerdns 477 | timeout /t 10 /nobreak >nul 478 | goto downloadwrc 479 | :downloadwrc 480 | reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main" /v DisableFirstRunCustomize /t REG_DWORD /d 2 /f >nul 2>&1 481 | for /f "usebackq delims=" %%a in (` 482 | powershell -NoProfile -ExecutionPolicy Bypass -c "$Results = Invoke-WebRequest -Method Get -Uri 'https://www.wisecleaner.com/index.php?r=download-product/latest-version&product=wise-registry-cleaner' -MaximumRedirection 0 -ErrorAction SilentlyContinue; $DownloadwcLink = $Results.Headers.Location; $DownloadwcLink" 483 | `) do set "DownloadwcLink=%%a" 484 | for /f "usebackq delims=" %%b in (` 485 | powershell -NoProfile -ExecutionPolicy Bypass -c "$Results = Invoke-WebRequest -Method Get -Uri 'https://www.wisecleaner.com/index.php?r=download-product/latest-version&product=wise-registry-cleaner' -MaximumRedirection 0 -ErrorAction SilentlyContinue; $DownloadwcLink = $Results.Headers.Location; $DownloadwcLink; [System.IO.Path]::GetFileName(("$DownloadwcLink"))" 486 | `) do set "FilewcName=%%b" 487 | echo File Name: "%FilewcName%" 488 | cls 489 | IF EXIST "%systemdrive%\Program Files (x86)\Wise\Wise Registry Cleaner\WiseRegCleaner.exe" ( 490 | GOTO wrcupdatescanandclean 491 | ) ELSE ( 492 | GOTO askforwrcinstallation 493 | ) 494 | :askforwrcinstallation 495 | cls 496 | SET /P yesno=Do you want to install and clean your PC with Wise Registry Cleaner? [Y/N]: 497 | IF "%yesno%"=="y" GOTO Confirmationwrc 498 | IF "%yesno%"=="Y" GOTO Confirmationwrc 499 | IF "%yesno%"=="n" GOTO Endwrc 500 | IF "%yesno%"=="N" GOTO Endwrc 501 | goto askforwrcinstallation 502 | :Confirmationwrc 503 | cls 504 | echo Grapping Wise Registry Cleaner Latest Version Link... 505 | echo "%DownloadwcLink%" 506 | echo Downloading Wise Registry Cleaner... 507 | bitsadmin /transfer "Downloading Wise Registry Cleaner" /priority FOREGROUND "%DownloadwcLink%" "%systemdrive%\%FilewcName%" 508 | IF EXIST "%systemdrive%\%FilewcName%" ( 509 | goto wrcontinue 510 | ) ELSE ( 511 | GOTO alternativewrdownload 512 | ) 513 | :alternativewrdownload 514 | powershell -c "(New-Object Net.WebClient).DownloadFile('%DownloadwcLink%', '%systemdrive%\%FilewcName%')" 515 | goto wrcontinue 516 | :wrcontinue 517 | cls 518 | echo Installing Wise Registry Cleaner... 519 | "%systemdrive%\%FilewcName%" /VERYSILENT 520 | TIMEOUT 10 >nul 521 | goto wrcscanandclean 522 | :wrcupdatescanandclean 523 | Echo Checking for Update... 524 | for /f "usebackq delims=" %%x in (` 525 | powershell -NoProfile -ExecutionPolicy Bypass -c "(get-item '%systemdrive%\Program Files (x86)\Wise\Wise Registry Cleaner\WiseRegCleaner.exe').VersionInfo.FileVersion" 526 | `) do set "InstalledWCVersion=WRCFree_%%x.exe" 527 | if "%InstalledWCVersion%"=="%FilewcName%" ( 528 | goto wrcscanandclean 529 | ) else ( 530 | Echo New Update "%FilewcName%" Found, Updating NOW! 531 | timeout /t 3 /nobreak >nul 532 | goto Confirmationwrc 533 | ) 534 | :wrcscanandclean 535 | cls 536 | echo Cleaning Registry using Wise Registry Cleaner... 537 | "%systemdrive%\Program Files (x86)\Wise\Wise Registry Cleaner\WiseRegCleaner.exe" -a -safe 538 | start http://madu.gg/ 539 | goto rebootafterRWC 540 | :rebootafterRWC 541 | cls 542 | SET /P yesno=Do you want to Reboot this machine NOW? [Y/N]: 543 | IF "%yesno%"=="y" GOTO RWCConfirmation 544 | IF "%yesno%"=="Y" GOTO RWCConfirmation 545 | IF "%yesno%"=="n" GOTO RWCEnd 546 | IF "%yesno%"=="N" GOTO RWCEnd 547 | goto rebootafterRWC 548 | :RWCConfirmation 549 | ECHO System is going to Reboot NOW... 550 | shutdown /r /f /t 0 551 | :RWCEnd 552 | ECHO System Reboot cancelled! 553 | TIMEOUT 1 >nul 554 | GOTO RWCEOF 555 | :RWCEOF 556 | cls 557 | echo ------------------------------------------------------------------------ 558 | echo Please RESTART your PC. press ENTER KEY to Continue! 559 | echo ------------------------------------------------------------------------ 560 | pause >nul 561 | goto Menu 562 | :GamesOptimizer 563 | cls 564 | echo ... Welcome %username% to DaddyMadu Games Optimizer ... 565 | echo. 566 | echo 1. Gameloop Optimizer 567 | echo 2. Valorant 568 | echo. 569 | echo More is Comming Here, Stay TUNED! 570 | echo. 571 | echo 888. Back 572 | echo 999. Exit 573 | echo. 574 | echo. 575 | set /p answer=Type the number of your option and press ENTER KEY: 576 | if %answer%==1 goto GameloopMenu 577 | if %answer%==2 goto ValorantGame 578 | if %answer%==888 goto Menu 579 | if %answer%==999 goto Exit 580 | goto GamesOptimizer 581 | :GameloopMenu 582 | cls 583 | title [ Daddy Madu ] Gameloop Optimizer! 584 | echo ... Welcome %username% to DaddyMadu Gameloop Optimizer ... 585 | echo. 586 | echo 1. Force Stop All Gameloop Emulator Process 587 | echo 2. Gameloop Emulator Optimization for no FPS Drop 588 | echo TYPE "remove". Compelete Uninstall Gameloop Emulator Leftovers 589 | echo 3. Install Latest Gameloop from Official Link Gameloop.com 590 | echo 4. Gameloop TEMP Mover! 591 | echo 5. Fix for after Gameloop Force Temp C, Drives Not Showing 592 | echo 6. Back 593 | echo 7. Main Menu 594 | echo 8. Exit 595 | echo. 596 | set /p answer=Type the number of your option and press ENTER KEY: 597 | if %answer%==1 goto forcestop 598 | if %answer%==2 goto optimization 599 | if %answer%==remove goto GLuninstaller 600 | if %answer%==3 goto GLinstaller 601 | if %answer%==4 goto TEMPMover 602 | if %answer%==5 goto FixRemountingIssue 603 | if %answer%==6 goto GamesOptimizer 604 | if %answer%==7 goto Menu 605 | if %answer%==8 goto Exit 606 | goto GameloopMenu 607 | :forcestop 608 | cls 609 | taskkill /F /IM "aow_exe.exe" /T 610 | taskkill /F /IM "AndroidEmulatorEn.exe" /T 611 | taskkill /F /IM "AndroidEmulator.exe" /T 612 | taskkill /F /IM "AndroidEmulatorEx.exe" /T 613 | taskkill /F /IM "TBSWebRenderer.exe" /T 614 | taskkill /F /IM "TBSWebRenderer.exe" /T 615 | taskkill /F /IM "syzs_dl_svr.exe" /T 616 | taskkill /F /IM "AppMarket.exe" /T 617 | TaskKill /F /IM "QMEmulatorService.exe" /T 618 | taskkill /f /IM "RuntimeBroker.exe" /T 619 | taskkill /f /IM "adb.exe" /T 620 | taskkill /f /IM "GameLoader.exe" /T 621 | taskkill /f /IM "TSettingCenter.exe" /T 622 | taskkill /F /IM "Auxillary.exe" /T 623 | taskkill /F /IM "TP3Helper.exe" /T 624 | taskkill /F /IM "tp3helper.dat" /T 625 | taskkill /F /IM "GameDownload.exe" /T 626 | cls 627 | echo All Gameloop Process Stopped Successfully. press ENTER KEY to Continue! 628 | pause >nul 629 | goto GameloopMenu 630 | :GLuninstaller 631 | cls 632 | taskkill /F /IM "aow_exe.exe" /T 633 | taskkill /F /IM "AndroidEmulatorEn.exe" /T 634 | taskkill /F /IM "AndroidEmulator.exe" /T 635 | taskkill /F /IM "AndroidEmulatorEx.exe" /T 636 | taskkill /F /IM "TBSWebRenderer.exe" /T 637 | taskkill /F /IM "TBSWebRenderer.exe" /T 638 | taskkill /F /IM "syzs_dl_svr.exe" /T 639 | taskkill /F /IM "AppMarket.exe" /T 640 | TaskKill /F /IM "QMEmulatorService.exe" /T 641 | taskkill /f /IM "RuntimeBroker.exe" /T 642 | taskkill /f /IM "adb.exe" /T 643 | taskkill /f /IM "GameLoader.exe" /T 644 | taskkill /f /IM "TSettingCenter.exe" /T 645 | taskkill /F /IM "Auxillary.exe" /T 646 | taskkill /F /IM "TP3Helper.exe" /T 647 | taskkill /F /IM "tp3helper.dat" /T 648 | taskkill /F /IM "GameDownload.exe" /T 649 | net stop aow_drv 650 | net stop QMEmulatorService 651 | net stop Tensafe 652 | sc delete aow_drv 653 | sc delete QMEmulatorService 654 | sc delete Tensafe 655 | cls 656 | goto REMOVEEXCLUSIONGLRexclusion 657 | :REMOVEEXCLUSIONGLRexclusion 658 | reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Tencent\MobileGamePC\AppMarket" /v "InstallPath" >nul 2>&1 659 | if %ERRORLEVEL% EQU 0 goto gameloopAppMarketpathfoundGLRexclusion 660 | if %ERRORLEVEL% EQU 1 goto gameloopAppMarketpathnotfoundGLRexclusion 661 | :gameloopAppMarketpathfoundGLRexclusion 662 | echo Gameloop AppMarket Found! 663 | setlocal ENABLEEXTENSIONS 664 | set "GameloopAppMarket_Path=HKLM\SOFTWARE\Wow6432Node\Tencent\MobileGamePC\AppMarket" 665 | set "GameloopAppMarket_Key=InstallPath" 666 | FOR /F "tokens=2*" %%A IN ('REG query "%GameloopAppMarket_Path%" /v "%GameloopAppMarket_Key%"') DO (set GameloopAppMarketpath=%%B) 667 | echo %GameloopAppMarketpath% 668 | goto continuegameloopExclutionGLRexclusion 669 | :gameloopAppMarketpathnotfoundGLRexclusion 670 | reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Tencent\MobileGamePC\AppMarket" /v "InstallPath" >nul 2>&1 671 | if %ERRORLEVEL% EQU 0 goto gameloopAppMarketpath2foundGLRexclusion 672 | if %ERRORLEVEL% EQU 1 goto gameloopAppMarketpath2notfoundGLRexclusion 673 | :gameloopAppMarketpath2foundGLRexclusion 674 | echo Gameloop AppMarket Found! 675 | setlocal ENABLEEXTENSIONS 676 | set "GameloopAppMarket_Path2=HKLM\SOFTWARE\Tencent\MobileGamePC\AppMarket" 677 | set "GameloopAppMarket_Key2=InstallPath" 678 | FOR /F "tokens=2*" %%A IN ('REG query "%GameloopAppMarket_Path2%" /v "%GameloopAppMarket_Key2%"') DO (set GameloopAppMarketpath=%%B) 679 | echo %GameloopAppMarketpath% 680 | goto continuegameloopExclutionGLRexclusion 681 | :continuegameloopExclutionGLRexclusion 682 | set "GameloopFullPath=%GameloopAppMarketpath:~0,-10%" 683 | echo Adding Gameloop Folder to Windows Defender Exclusion List... 684 | powershell -NoProfile -ExecutionPolicy Bypass -c "Remove-MpPreference -ExclusionPath '%GameloopFullPath%'" 685 | goto FinishingGameloopInstallGLRexclusion 686 | :gameloopAppMarketpath2notfoundGLRexclusion 687 | echo Gameloop AppMarket Path not Found! 688 | goto FinishingGameloopInstallGLRexclusion 689 | :FinishingGameloopInstallGLRexclusion 690 | goto gamelooppathuninstaller 691 | :gamelooppathuninstaller 692 | reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\MobileGamePC" /v "UninstallString" >nul 2>&1 693 | if %ERRORLEVEL% EQU 0 goto gamelooppathfound 694 | if %ERRORLEVEL% EQU 1 goto gamelooppathnotfound 695 | :gamelooppathfound 696 | echo Gameloop Uninstaller Found! 697 | setlocal ENABLEEXTENSIONS 698 | set "Gameloop_Path=HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\MobileGamePC" 699 | set "Gameloop_Key=UninstallString" 700 | FOR /F "tokens=2*" %%A IN ('REG query "%Gameloop_Path%" /v "%Gameloop_Key%"') DO (set Gameloopuninstalla=%%B) 701 | echo %Gameloopuninstalla% 702 | echo Uninstalling Gameloop Emulator... 703 | "%Gameloopuninstalla%" 704 | goto continuegameloopuninstallation 705 | :gamelooppathnotfound 706 | reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MobileGamePC" /v "UninstallString" >nul 2>&1 707 | if %ERRORLEVEL% EQU 0 goto gamelooppath2found 708 | if %ERRORLEVEL% EQU 1 goto gamelooppath2notfound 709 | :gamelooppath2found 710 | echo Gameloop Uninstaller Found! 711 | setlocal ENABLEEXTENSIONS 712 | set "Gameloop_Path2=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MobileGamePC" 713 | set "Gameloop_Key2=UninstallString" 714 | FOR /F "tokens=2*" %%A IN ('REG query "%Gameloop_Path2%" /v "%Gameloop_Key2%"') DO (set Gameloopuninstallb=%%B) 715 | echo %Gameloopuninstallb% 716 | echo Uninstalling Gameloop Emulator... 717 | "%Gameloopuninstallb%" 718 | goto continuegameloopuninstallation 719 | :continuegameloopuninstallation 720 | cls 721 | echo After uninsatlling Gameloop Please PRESS ENTER to continue... 722 | pause >nul 723 | goto gamelooppath2notfound 724 | :gamelooppath2notfound 725 | echo Gameloop Uninstaller not Found! Continue with Removal Process... 726 | reg delete HKEY_USERS\S-1-5-21-4002759195-144648827-3263099209-1000\SOFTWARE\Tencent /f 727 | reg delete HKEY_CURRENT_USER\SOFTWARE\Tencent /f 728 | reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Tencent /f 729 | del /q "%WINDIR%\SysWOW64\config\systemprofile\AppData\Roaming\Tencent\*" && FOR /D %%p IN ("%WINDIR%\SysWOW64\config\systemprofile\AppData\Roaming\Tencent\*.*") DO rmdir "%%p" /s /q 730 | RMDIR "%WINDIR%\SysWOW64\config\systemprofile\AppData\Roaming\Tencent" /S /Q 731 | del /q "%ProgramData%\Tencent\*" && FOR /D %%p IN ("%ProgramData%\Tencent\*.*") DO rmdir "%%p" /s /q 732 | RMDIR "%ProgramData%\Tencent" /S /Q 733 | del /q "%AppData%\Tencent\*" && FOR /D %%p IN ("%AppData%\Tencent\*.*") DO rmdir "%%p" /s /q 734 | RMDIR "%AppData%\Tencent" /S /Q 735 | del /q "%USERPROFILE%\AppData\Local\Tencent\*" && FOR /D %%p IN ("%USERPROFILE%\AppData\Local\Tencent\*.*") DO rmdir "%%p" /s /q 736 | RMDIR "%USERPROFILE%\AppData\Local\Tencent" /S /Q 737 | del /q "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Tencent Software\*" && FOR /D %%p IN ("%ProgramData%\Microsoft\Windows\Start Menu\Programs\Tencent Software\*.*") DO rmdir "%%p" /s /q 738 | RMDIR "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Tencent Software" /S /Q 739 | setlocal enableDelayedExpansion 740 | cls 741 | FOR /F "tokens=* USEBACKQ" %%F IN (`fsutil fsinfo drives`) DO ( 742 | SET ogdrives=%%F 743 | ) 744 | set drives=!ogdrives! 745 | set drives=!drives:Drives^: =! 746 | set drives=!drives:^:\=1! 747 | set drives=!drives: =+! 748 | set charms=0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 749 | for /L %%N in (10 1 62) do ( 750 | for /F %%C in ("!charms:~%%N,1!") do ( 751 | set drives=!drives:%%C=! 752 | ) 753 | ) 754 | set drives=!drives:~0,-1! 755 | set /a num=!drives! 756 | set drives=!ogdrives! 757 | set drives=!drives:Drives^: =! 758 | set drives=!drives:^:\=! 759 | set drives=!drives: =! 760 | :loop 761 | set /a iter=!iter!+1 762 | set /a pos=!iter!-1 763 | set drive!iter!=!drives:~%pos%,1! 764 | if !iter!==!num! goto oloop 765 | goto loop 766 | :oloop 767 | for /L %%n in (1 1 !num!) do ( 768 | echo drive %%n is !drive%%n! 769 | ) 770 | for /L %%n in (1 1 !num!) do ( 771 | del /q "!drive%%n!:\Temp\*" && FOR /D %%p IN ("!drive%%n!:\Temp\*.*") DO rmdir "%%p" /s /q 772 | RMDIR "!drive%%n!:\Temp" /S /Q 773 | pushd !drive%%n!:\ 774 | for /d /r . %%d in (txgameassistant tencent) do @if exist "%%d" echo "%%d" && rd /s/q "%%d" 775 | popd 776 | ) 777 | ENDLOCAL 778 | SETLOCAL DisableDelayedExpansion 779 | del /f /s /q "%SystemDrive%\aow_drv.log" 780 | del /s /f /q "%SystemDrive%\Windows\SysWOW64\drivers\com.tencent.ig.bin" 781 | del /s /f /q "C:\aow_drv.log" 782 | del /s /f /q "D:\aow_drv.log" 783 | del /s /f /q "E:\aow_drv.log" 784 | del /s /f /q "F:\aow_drv.log" 785 | del /s /f /q "G:\aow_drv.log" 786 | powershell -c "Remove-Item '%DesktopPath%\PUBG Mobile.lnk' -Force" 787 | cls 788 | goto cleartemp 789 | :GLinstaller 790 | cls 791 | start https://www.gameloop.com/en/game/Action/play-pubg-mobile-on-pc/ 792 | echo ------------------------------------------------------------------------ 793 | echo Please Install from the link above Only! 794 | echo ------------------------------------------------------------------------ 795 | pause >nul 796 | goto GameloopMenu 797 | :FixRemountingIssue 798 | cls 799 | IF EXIST "%userprofile%\DrivesUIUDTemp.txt" ( 800 | goto GLFixDrivescontinue 801 | ) ELSE ( 802 | cls 803 | echo ERROR, Sorry Autmatic Remounting Has Failed Please Assign Drives Letters Manually. 804 | echo Please Press ENTER KEY To Continue. 805 | diskmgmt.msc 806 | Pause >nul 807 | GOTO GameloopMenu 808 | ) 809 | :GLFixDrivescontinue 810 | cls 811 | echo Remounting your Drives Back to their Respective Letters... 812 | for /F "tokens=* USEBACKQ" %%b in (%userprofile%\DrivesUIUDTemp.txt) do mountvol %%b 813 | del /f /s /q "%userprofile%\DrivesLettersTemp.txt" >nul 2>&1 814 | del /f /s /q "%userprofile%\DrivesUIUDTemp.txt" >nul 2>&1 815 | echo Done! Drives are Successfully Remounted back again. 816 | echo Press ENTER KEY to Continue. 817 | Pause >nul 818 | goto to GameloopMenu 819 | :optimization 820 | cls 821 | setlocal ENABLEEXTENSIONS 822 | reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Tencent\MobileGamePC\UI" /v "InstallPath" >nul 2>&1 823 | if %ERRORLEVEL% EQU 0 goto gameloopuipathfound 824 | if %ERRORLEVEL% EQU 1 goto gameloopuipathnotfound 825 | :gameloopuipathfound 826 | echo Gameloop UI Found! 827 | setlocal ENABLEEXTENSIONS 828 | set "GameloopUI_Path=HKLM\SOFTWARE\Wow6432Node\Tencent\MobileGamePC\UI" 829 | set "GameloopUI_Key=InstallPath" 830 | FOR /F "tokens=2*" %%A IN ('REG query "%GameloopUI_Path%" /v "%GameloopUI_Key%"') DO (set GameloopUIpath=%%B) 831 | echo %GameloopUIpath% 832 | goto continuegameloopuioptimization 833 | :gameloopuipathnotfound 834 | reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Tencent\MobileGamePC\UI" /v "InstallPath" >nul 2>&1 835 | if %ERRORLEVEL% EQU 0 goto gameloopuipath2found 836 | if %ERRORLEVEL% EQU 1 goto gameloopuipath2notfound 837 | :gameloopuipath2found 838 | echo Gameloop UI Found! 839 | setlocal ENABLEEXTENSIONS 840 | set "GameloopUI_Path2=HKLM\SOFTWARE\Tencent\MobileGamePC\UI" 841 | set "GameloopUI_Key2=InstallPath" 842 | FOR /F "tokens=2*" %%A IN ('REG query "%GameloopUI_Path2%" /v "%GameloopUI_Key2%"') DO (set GameloopUIpath=%%B) 843 | echo %GameloopUIpath% 844 | goto continuegameloopuioptimization 845 | :continuegameloopuioptimization 846 | taskkill /F /IM "aow_exe.exe" /T 847 | taskkill /F /IM "AndroidEmulatorEn.exe" /T 848 | taskkill /F /IM "AndroidEmulator.exe" /T 849 | taskkill /F /IM "AndroidEmulatorEx.exe" /T 850 | taskkill /F /IM "TBSWebRenderer.exe" /T 851 | taskkill /F /IM "TBSWebRenderer.exe" /T 852 | taskkill /F /IM "syzs_dl_svr.exe" /T 853 | taskkill /F /IM "AppMarket.exe" /T 854 | TaskKill /F /IM "QMEmulatorService.exe" /T 855 | taskkill /f /IM "RuntimeBroker.exe" /T 856 | taskkill /f /IM "adb.exe" /T 857 | taskkill /f /IM "GameLoader.exe" /T 858 | taskkill /f /IM "TSettingCenter.exe" /T 859 | taskkill /F /IM "Auxillary.exe" /T 860 | taskkill /F /IM "TP3Helper.exe" /T 861 | taskkill /F /IM "tp3helper.dat" /T 862 | taskkill /F /IM "GameDownload.exe" /T 863 | reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\AndroidEmulator.exe\PerfOptions" /v CpuPriorityClass /t REG_DWORD /d 3 /f 864 | reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\AndroidEmulatorEn.exe\PerfOptions" /v CpuPriorityClass /t REG_DWORD /d 3 /f 865 | reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\AndroidEmulatorEx.exe\PerfOptions" /v CpuPriorityClass /t REG_DWORD /d 3 /f 866 | reg ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%GameloopUIpath%\AndroidEmulator.exe" /t REG_SZ /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE" /f 867 | reg ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%GameloopUIpath%\AndroidEmulatorEn.exe" /t REG_SZ /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE" /f 868 | reg ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%GameloopUIpath%\AndroidEmulatorEx.exe" /t REG_SZ /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE" /f 869 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\DirectX\UserGpuPreferences" /v "%GameloopUIpath%\AndroidEmulator.exe" /t REG_SZ /d "GpuPreference=2;" /f 870 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\DirectX\UserGpuPreferences" /v "%GameloopUIpath%\AndroidEmulatorEn.exe" /t REG_SZ /d "GpuPreference=2;" /f 871 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\DirectX\UserGpuPreferences" /v "%GameloopUIpath%\AndroidEmulatorEx.exe" /t REG_SZ /d "GpuPreference=2;" /f 872 | goto SelectYourHardware 873 | :SelectYourHardware 874 | setlocal 875 | for /f "tokens=4,5 delims=. " %%a in ('ver') do set "version=%%a%%b" 876 | 877 | 878 | if version lss 62 ( 879 | ::set "wmic_query=wmic desktopmonitor get screenheight, screenwidth /format:value" 880 | for /f "tokens=* delims=" %%@ in ('wmic desktopmonitor get screenwidth /format:value') do ( 881 | for /f "tokens=2 delims==" %%# in ("%%@") do set "x=%%#" 882 | ) 883 | for /f "tokens=* delims=" %%@ in ('wmic desktopmonitor get screenheight /format:value') do ( 884 | for /f "tokens=2 delims==" %%# in ("%%@") do set "y=%%#" 885 | ) 886 | 887 | ) else ( 888 | ::wmic path Win32_VideoController get VideoModeDescription,CurrentVerticalResolution,CurrentHorizontalResolution /format:value 889 | for /f "tokens=* delims=" %%@ in ('wmic path Win32_VideoController get CurrentHorizontalResolution /format:value') do ( 890 | for /f "tokens=2 delims==" %%# in ("%%@") do set "x=%%#" 891 | ) 892 | for /f "tokens=* delims=" %%@ in ('wmic path Win32_VideoController get CurrentVerticalResolution /format:value') do ( 893 | for /f "tokens=2 delims==" %%# in ("%%@") do set "y=%%#" 894 | ) 895 | 896 | ) 897 | cls 898 | echo. 899 | echo Please Choose Your Hardware Type 900 | echo. 901 | echo 1. High-End PC 902 | echo 2. Med-End PC 903 | echo 3. Potato PC 904 | echo 4. --Back-- 905 | echo. 906 | set /p answer=Type the number of your option and press ENTER KEY: 907 | if %answer%==1 goto HighEndPC 908 | if %answer%==2 goto MedEndPC 909 | if %answer%==3 goto PotatoPC 910 | if %answer%==4 goto GameloopMenu 911 | goto SelectYourHardware 912 | :HighEndPC 913 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VSyncEnabled" /t REG_DWORD /d "0" /f 914 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMCpuCount" /t REG_DWORD /d "8" /f 915 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "UserLanguage" /t REG_SZ /d "en" /f 916 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "ShaderCacheEnabled" /t REG_DWORD /d "1" /f 917 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "RenderOptimizeEnabled" /t REG_DWORD /d "1" /f 918 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "Region" /t REG_SZ /d "GB" /f 919 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "GraphicsCardEnabled" /t REG_DWORD /d "1" /f 920 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "HideAdvancedWatermark" /t REG_DWORD /d "1" /f 921 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "ForceDirectX" /t REG_DWORD /d "1" /f 922 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "com.tencent.ig_RenderQuality" /t REG_DWORD /d "2" /f 923 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "com.tencent.ig_FPSLevel" /t REG_DWORD /d "7" /f 924 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "com.tencent.ig_ContentScale" /t REG_DWORD /d "2" /f 925 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "LocalShaderCacheEnabled" /t REG_DWORD /d "1" /f 926 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMMemorySizeInMB" /t REG_DWORD /d "8192" /f 927 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "FxaaQuality" /t REG_DWORD /d "2" /f 928 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMResHeight" /t REG_DWORD /d "%y%" /f 929 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMResWidth" /t REG_DWORD /d "%x%" /f 930 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMDPI" /t REG_DWORD /d "480" /f 931 | 932 | goto CREATEPUBGSHORTCUT 933 | :MedEndPC 934 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VSyncEnabled" /t REG_DWORD /d "0" /f 935 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMCpuCount" /t REG_DWORD /d "4" /f 936 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "UserLanguage" /t REG_SZ /d "en" /f 937 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "ShaderCacheEnabled" /t REG_DWORD /d "1" /f 938 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "RenderOptimizeEnabled" /t REG_DWORD /d "1" /f 939 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "Region" /t REG_SZ /d "GB" /f 940 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "GraphicsCardEnabled" /t REG_DWORD /d "1" /f 941 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "HideAdvancedWatermark" /t REG_DWORD /d "1" /f 942 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "ForceDirectX" /t REG_DWORD /d "0" /f 943 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "com.tencent.ig_RenderQuality" /t REG_DWORD /d "1" /f 944 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "com.tencent.ig_FPSLevel" /t REG_DWORD /d "7" /f 945 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "com.tencent.ig_ContentScale" /t REG_DWORD /d "1" /f 946 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "LocalShaderCacheEnabled" /t REG_DWORD /d "1" /f 947 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMMemorySizeInMB" /t REG_DWORD /d "4096" /f 948 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "FxaaQuality" /t REG_DWORD /d "0" /f 949 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMResHeight" /t REG_DWORD /d "%y%" /f 950 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMResWidth" /t REG_DWORD /d "%x%" /f 951 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMDPI" /t REG_DWORD /d "320" /f 952 | goto CREATEPUBGSHORTCUT 953 | :PotatoPC 954 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VSyncEnabled" /t REG_DWORD /d "0" /f 955 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMCpuCount" /t REG_DWORD /d "0" /f 956 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "UserLanguage" /t REG_SZ /d "en" /f 957 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "ShaderCacheEnabled" /t REG_DWORD /d "1" /f 958 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "RenderOptimizeEnabled" /t REG_DWORD /d "1" /f 959 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "Region" /t REG_SZ /d "GB" /f 960 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "GraphicsCardEnabled" /t REG_DWORD /d "1" /f 961 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "HideAdvancedWatermark" /t REG_DWORD /d "1" /f 962 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "ForceDirectX" /t REG_DWORD /d "0" /f 963 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "com.tencent.ig_RenderQuality" /t REG_DWORD /d "0" /f 964 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "com.tencent.ig_FPSLevel" /t REG_DWORD /d "6" /f 965 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "com.tencent.ig_ContentScale" /t REG_DWORD /d "0" /f 966 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "LocalShaderCacheEnabled" /t REG_DWORD /d "1" /f 967 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMMemorySizeInMB" /t REG_DWORD /d "0" /f 968 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "FxaaQuality" /t REG_DWORD /d "0" /f 969 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMResHeight" /t REG_DWORD /d "%y%" /f 970 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMResWidth" /t REG_DWORD /d "%x%" /f 971 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "VMDPI" /t REG_DWORD /d "160" /f 972 | goto CREATEPUBGSHORTCUT 973 | :CREATEPUBGSHORTCUT 974 | reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Tencent\MobileGamePC\AppMarket" /v "InstallPath" >nul 2>&1 975 | if %ERRORLEVEL% EQU 0 goto CREATEPUBGSHORTCUTFOUND 976 | if %ERRORLEVEL% EQU 1 goto CREATEPUBGSHORTCUTNOTFOUND 977 | :CREATEPUBGSHORTCUTFOUND 978 | echo Gameloop AppMarket Found! 979 | setlocal ENABLEEXTENSIONS 980 | set "GameloopAppMarket3_Path=HKLM\SOFTWARE\Wow6432Node\Tencent\MobileGamePC\AppMarket" 981 | set "GameloopAppMarket3_Key=InstallPath" 982 | FOR /F "tokens=2*" %%A IN ('REG query "%GameloopAppMarket3_Path%" /v "%GameloopAppMarket3_Key%"') DO (set GameloopAppMarket3path=%%B) 983 | echo %GameloopAppMarket3path% 984 | goto continueCREATEPUBGSHORTCUT 985 | :CREATEPUBGSHORTCUTNOTFOUND 986 | reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Tencent\MobileGamePC\AppMarket" /v "InstallPath" >nul 2>&1 987 | if %ERRORLEVEL% EQU 0 goto CREATEPUBGSHORTCUTFOUND2 988 | if %ERRORLEVEL% EQU 1 goto CREATEPUBGSHORTCUTNOTFOUND2 989 | :CREATEPUBGSHORTCUTFOUND2 990 | echo Gameloop AppMarket Found! 991 | setlocal ENABLEEXTENSIONS 992 | set "GameloopAppMarket4_Path2=HKLM\SOFTWARE\Tencent\MobileGamePC\AppMarket" 993 | set "GameloopAppMarket4_Key2=InstallPath" 994 | FOR /F "tokens=2*" %%A IN ('REG query "%GameloopAppMarket4_Path2%" /v "%GameloopAppMarket4_Key2%"') DO (set GameloopAppMarket3path=%%B) 995 | echo %GameloopAppMarket3path% 996 | goto continueCREATEPUBGSHORTCUT 997 | :continueCREATEPUBGSHORTCUT 998 | powershell -NoProfile -ExecutionPolicy Bypass -c "$WshShell = New-Object -comObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%DesktopPath%\PUBG Mobile.lnk'); $Shortcut.TargetPath = '%GameloopAppMarket3path%\AppMarket.exe'; $Shortcut.Arguments = '-startpkg com.tencent.ig -from DesktopLink'; $Shortcut.IconLocation = '%GameloopAppMarket3path%\Icons\com.tencent.ig\Game.Ico'; $Shortcut.Save()" 999 | goto FinishingCREATEPUBGSHORTCUT 1000 | :CREATEPUBGSHORTCUTNOTFOUND2 1001 | echo Gameloop AppMarket Path not Found! Please Install The Game First From Official Installer! 1002 | goto FinishingCREATEPUBGSHORTCUT 1003 | :FinishingCREATEPUBGSHORTCUT 1004 | start http://madu.gg/ 1005 | cls 1006 | echo Gameloop Optimization Done Successfully! Press ENTER KEY yo Continue. 1007 | pause >nul 1008 | goto EOGLO 1009 | :gameloopuipath2notfound 1010 | echo Gameloop UI Path not Found! Please Install The Game First From Official Installer! 1011 | echo Press ENTER KEY yo Continue. 1012 | pause >nul 1013 | goto EOGLO 1014 | :EOGLO 1015 | goto GameloopMenu 1016 | :TEMPMover 1017 | cls 1018 | setlocal ENABLEEXTENSIONS 1019 | set "GameloopTEMP_Path=HKCU\SOFTWARE\Tencent\MobileGamePC" 1020 | set "GameloopTEMP_Key=TempPath" 1021 | FOR /F "tokens=2*" %%A IN ('REG query "%GameloopTEMP_Path%" /v "%GameloopTEMP_Key%"') DO (set GameloopTEMPpath=%%B) 1022 | echo %GameloopTEMPpath% 1023 | set "GameloopTEMPfolder=%GameloopTEMPpath:~0,7%" 1024 | echo Killing Gameloop Related Process and Services... 1025 | taskkill /F /IM "aow_exe.exe" /T 1026 | taskkill /F /IM "AndroidEmulatorEn.exe" /T 1027 | taskkill /F /IM "AndroidEmulator.exe" /T 1028 | taskkill /F /IM "AndroidEmulatorEx.exe" /T 1029 | taskkill /F /IM "TBSWebRenderer.exe" /T 1030 | taskkill /F /IM "TBSWebRenderer.exe" /T 1031 | taskkill /F /IM "syzs_dl_svr.exe" /T 1032 | taskkill /F /IM "AppMarket.exe" /T 1033 | TaskKill /F /IM "QMEmulatorService.exe" /T 1034 | taskkill /f /IM "RuntimeBroker.exe" /T 1035 | taskkill /f /IM "adb.exe" /T 1036 | taskkill /f /IM "GameLoader.exe" /T 1037 | taskkill /f /IM "TSettingCenter.exe" /T 1038 | taskkill /F /IM "Auxillary.exe" /T 1039 | taskkill /F /IM "TP3Helper.exe" /T 1040 | taskkill /F /IM "tp3helper.dat" /T 1041 | taskkill /F /IM "GameDownload.exe" /T 1042 | net stop aow_drv 1043 | net stop QMEmulatorService 1044 | net stop Tensafe 1045 | cls 1046 | goto MOVEGlTEMPTEMPDrive 1047 | :MOVEGlTEMPTEMPDrive 1048 | cls 1049 | echo. 1050 | echo Please enter A DRIVE letter where we will MOVE your Gameloop Temp to it Ex"C,D,E,F,....etc" 1051 | echo 1 LETTER Only, No Numbers or Signs! 1052 | echo. 1053 | :SetGlTEMPTEMPDrive 1054 | set /P TEMPDrive=Enter New Drive Letter: %=% 1055 | 1056 | :: REM block quotes 1057 | 1058 | SET TEMPDrive | FIND """" >NUL 1059 | IF NOT ERRORLEVEL 1 SET TEMPDrive= 1060 | 1061 | IF NOT DEFINED TEMPDrive GOTO invTEMPDrive 1062 | 1063 | :: REM Block tilde 1064 | 1065 | SET TEMPDrive | FIND "~" >NUL 1066 | IF NOT ERRORLEVEL 1 SET TEMPDrive= 1067 | 1068 | IF NOT DEFINED TEMPDrive GOTO invTEMPDrive 1069 | 1070 | :: REM Test for Spaces (REM out if not required) 1071 | 1072 | IF NOT "%TEMPDrive%"=="%TEMPDrive: =%" GOTO invTEMPDrive 1073 | 1074 | :: REM Test for all other standard Symbols. (REM out any you wish to permit) 1075 | 1076 | IF NOT "%TEMPDrive%"=="%TEMPDrive:&=%" GOTO invTEMPDrive 1077 | IF NOT "%TEMPDrive%"=="%TEMPDrive:(=%" GOTO invTEMPDrive 1078 | IF NOT "%TEMPDrive%"=="%TEMPDrive:)=%" GOTO invTEMPDrive 1079 | IF NOT "%TEMPDrive%"=="%TEMPDrive:<=%" GOTO invTEMPDrive 1080 | IF NOT "%TEMPDrive%"=="%TEMPDrive:>=%" GOTO invTEMPDrive 1081 | IF NOT "%TEMPDrive%"=="%TEMPDrive:{=%" GOTO invTEMPDrive 1082 | IF NOT "%TEMPDrive%"=="%TEMPDrive:}=%" GOTO invTEMPDrive 1083 | IF NOT "%TEMPDrive%"=="%TEMPDrive:]=%" GOTO invTEMPDrive 1084 | IF NOT "%TEMPDrive%"=="%TEMPDrive:[=%" GOTO invTEMPDrive 1085 | IF NOT "%TEMPDrive%"=="%TEMPDrive:#=%" GOTO invTEMPDrive 1086 | IF NOT "%TEMPDrive%"=="%TEMPDrive:^=%" GOTO invTEMPDrive 1087 | IF NOT "%TEMPDrive%"=="%TEMPDrive:+=%" GOTO invTEMPDrive 1088 | IF NOT "%TEMPDrive%"=="%TEMPDrive:-=%" GOTO invTEMPDrive 1089 | IF NOT "%TEMPDrive%"=="%TEMPDrive:/=%" GOTO invTEMPDrive 1090 | IF NOT "%TEMPDrive%"=="%TEMPDrive:\=%" GOTO invTEMPDrive 1091 | IF NOT "%TEMPDrive%"=="%TEMPDrive:|=%" GOTO invTEMPDrive 1092 | IF NOT "%TEMPDrive%"=="%TEMPDrive:$=%" GOTO invTEMPDrive 1093 | IF NOT "%TEMPDrive%"=="%TEMPDrive:!=%" GOTO invTEMPDrive 1094 | IF NOT "%TEMPDrive%"=="%TEMPDrive:?=%" GOTO invTEMPDrive 1095 | IF NOT "%TEMPDrive%"=="%TEMPDrive:@=%" GOTO invTEMPDrive 1096 | IF NOT "%TEMPDrive%"=="%TEMPDrive:'=%" GOTO invTEMPDrive 1097 | IF NOT "%TEMPDrive%"=="%TEMPDrive:,=%" GOTO invTEMPDrive 1098 | IF NOT "%TEMPDrive%"=="%TEMPDrive:.=%" GOTO invTEMPDrive 1099 | IF NOT "%TEMPDrive%"=="%TEMPDrive:;=%" GOTO invTEMPDrive 1100 | IF NOT "%TEMPDrive%"=="%TEMPDrive:`=%" GOTO invTEMPDrive 1101 | 1102 | :: REM Test length 1103 | 1104 | IF NOT "%TEMPDrive:~1%"=="" GOTO invTEMPDrive 1105 | 1106 | :: REM Block Numbers 1107 | 1108 | Setlocal enableDelayedExpansion 1109 | FOR %%a in (0,1,2,3,4,5,6,7,8,9) DO ( 1110 | IF NOT "%TEMPDrive%"=="!TEMPDrive:%%a=!" GOTO invTEMPDrive 1111 | ) 1112 | ECHO you entered "%TEMPDrive%" to be your Temp Drive, Press ENTER KEY yo Continue. 1113 | pause 1114 | goto CONFIRMGlTEMPTEMPDrive 1115 | 1116 | :: REM rest of your program here. 1117 | 1118 | :invTEMPDrive 1119 | echo "%TEMPDrive%" - ERROR! LETTERS ONLY AND 1 LETTER TO BE ENTERED! 1120 | pause 1121 | goto SetGlTEMPTEMPDrive 1122 | :CONFIRMGlTEMPTEMPDrive 1123 | cls 1124 | SET /P yesno=Are You Sure You Want to Move Gameloop Temp Folder To %TEMPDrive%:\ Drive? [Y/N]: 1125 | IF "%yesno%"=="y" GOTO ConfirmationMoveTemp 1126 | IF "%yesno%"=="Y" GOTO ConfirmationMoveTemp 1127 | IF "%yesno%"=="n" GOTO CancelMoveTemp 1128 | IF "%yesno%"=="N" GOTO CancelMoveTemp 1129 | goto CONFIRMGlTEMPTEMPDrive 1130 | :ConfirmationMoveTemp 1131 | echo Confirmed! Moving Your Temp NOW... 1132 | IF "%GameloopTEMPfolder%"=="%TEMPDrive%:\Temp" GOTO FileMatchedError 1133 | robocopy "%GameloopTEMPfolder%" "%TEMPDrive%:\Temp" /move /E /copyall /zb /w:1 /r:4 /xo 1134 | TIMEOUT 4 >nul 1135 | del /q "%GameloopTEMPfolder%\*" && FOR /D %%p IN (%GameloopTEMPfolder%\*.*) DO rmdir "%%p" /s /q 1136 | RMDIR "%GameloopTEMPfolder%" /S /Q 1137 | Echo Setting Up Registry Path... 1138 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "sf" /t REG_SZ /d "%TEMPDrive%:\Temp\TxGameDownload\MobileGamePCShared" /f 1139 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Tencent\MobileGamePC" /v "TempPath" /t REG_SZ /d %TEMPDrive%:\Temp\TxGameDownload\Component\ /f 1140 | echo Starting Gameloop Services... 1141 | sc start aow_drv 1142 | sc start QMEmulatorService 1143 | sc start Tensafe 1144 | goto GameloopMenu 1145 | :FileMatchedError 1146 | cls 1147 | echo Your Temp Folder already is %TEMPDrive%:\Temp, Cancelled! 1148 | echo Press ENTER KEY yo Continue. 1149 | Pause >nul 1150 | goto CancelMoveTemp 1151 | :CancelMoveTemp 1152 | sc start aow_drv 1153 | sc start QMEmulatorService 1154 | sc start Tensafe 1155 | eco Cancelled! 1156 | goto GameloopMenu 1157 | :ValorantGame 1158 | cls 1159 | reg query "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Riot Game valorant.live" /v "InstallLocation" >nul 2>&1 1160 | if %ERRORLEVEL% EQU 0 goto ValorantGameFound 1161 | if %ERRORLEVEL% EQU 1 goto ValorantGameNotFound 1162 | :ValorantGameFound 1163 | cls 1164 | for /f "usebackq delims=" %%a in (` 1165 | powershell -NoProfile -ExecutionPolicy Bypass -c "$ValorantGetPath = (Get-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Riot Game valorant.live' -Name InstallLocation).InstallLocation; $ValorantSetPath = ($ValorantGetPath | foreach {$_.replace('/','\')}); $ValorantSetPath" 1166 | `) do set "ValorantGamePath=%%a" 1167 | echo %ValorantGamePath% 1168 | 1169 | cls 1170 | echo. 1171 | echo ====== Valorant Game Optimization ====== 1172 | echo. 1173 | echo 1. Apply Optimization 1174 | echo 2. Remove Optimization 1175 | echo 3. Fix Game Freeze when ALT^+TAB 1176 | echo 4. Back 1177 | echo 5. Back to Main Menu 1178 | echo 6. Exit 1179 | echo. 1180 | echo. 1181 | set /p answer=Type the number of your option and press ENTER KEY: 1182 | if %answer%==1 goto ApplyValorantOptimization 1183 | if %answer%==2 goto RemoveValorantOptimization 1184 | if %answer%==3 goto ValorantFixALTandTAB 1185 | if %answer%==4 goto GamesOptimizer 1186 | if %answer%==5 goto Menu 1187 | if %answer%==6 goto Exit 1188 | goto ValorantGameFound 1189 | :ApplyValorantOptimization 1190 | cls 1191 | reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\VALORANT-Win64-Shipping.exe\PerfOptions" /v "CpuPriorityClass" /t REG_DWORD /d 3 /f 1192 | reg ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ValorantGamePath%\ShooterGame\Binaries\Win64\VALORANT-Win64-Shipping.exe" /t REG_SZ /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE" /f 1193 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\DirectX\UserGpuPreferences" /v "%ValorantGamePath%\ShooterGame\Binaries\Win64\VALORANT-Win64-Shipping.exe" /t REG_SZ /d "GpuPreference=2;" /f 1194 | cls 1195 | echo Optimization Applied Successfully! 1196 | pause >nul 1197 | goto GamesOptimizer 1198 | :RemoveValorantOptimization 1199 | cls 1200 | reg DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\VALORANT-Win64-Shipping.exe\PerfOptions" /v "CpuPriorityClass" /f 1201 | reg DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ValorantGamePath%\ShooterGame\Binaries\Win64\VALORANT-Win64-Shipping.exe" /f 1202 | reg DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\DirectX\UserGpuPreferences" /v "%ValorantGamePath%\ShooterGame\Binaries\Win64\VALORANT-Win64-Shipping.exe" /f 1203 | cls 1204 | echo Optimization Removed Successfully! 1205 | pause >nul 1206 | goto GamesOptimizer 1207 | :ValorantFixALTandTAB 1208 | cls 1209 | reg DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ValorantGamePath%\ShooterGame\Binaries\Win64\VALORANT-Win64-Shipping.exe" /f 1210 | cls 1211 | echo Fix Applied Successfully! 1212 | pause >nul 1213 | goto GamesOptimizer 1214 | :ValorantGameNotFound 1215 | cls 1216 | echo Valorant Game is Not Installed! Please Install The Game First From Official Installer! 1217 | pause >nul 1218 | goto GamesOptimizer 1219 | :AutomatedVPN 1220 | cls 1221 | echo Getting Things Ready for you, Please Wait... 1222 | echo Desktop location is %DesktopPath% 1223 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" ( 1224 | goto choiceVPNAppInstaller 1225 | ) ELSE ( 1226 | GOTO VPNAppInstaller 1227 | ) 1228 | :choiceVPNAppInstaller 1229 | cls 1230 | for /f "usebackq delims=" %%w in (` 1231 | powershell -NoProfile -ExecutionPolicy Bypass -c "$CheckAutomatedVPNAppsVersion = Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/DaddyMadu/Windows-Optimzier/main/Updaters/Automated-VPN-Updater.txt'; $AutomatedVPNAppsVersion = ($CheckAutomatedVPNAppsVersion.Content | Out-String).Trim(); $AutomatedVPNAppsVersion" 1232 | `) do set "OnlineAutomatedVPNAppsVersion=%%w" 1233 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v AutomatedApps') do @set "AutomatedVPNAppsVersion=%%z" 1234 | IF "%OnlineAutomatedVPNAppsVersion%" EQU "%AutomatedVPNAppsVersion%" ( 1235 | echo No Update Found, Lunching script! 1236 | goto continueVPNAppInstaller 1237 | ) ELSE ( 1238 | echo Automated Apps Update Found v%OnlineAutomatedVPNAppsVersion%, Script is updating NOW! 1239 | powershell -NoProfile -ExecutionPolicy Bypass -c "$CheckAutomatedVPNAppsChangelog = Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/DaddyMadu/Windows-Optimzier/main/Changelogs/AutomatedVPN-Changelog.txt'; $AutomatedVPNAppsChangelog = ($CheckAutomatedVPNAppsChangelog.Content | Out-String).Trim(); $AutomatedVPNAppsChangelog.Split([Environment]::NewLine) | Select -First 20" 1240 | timeout /t 20 1241 | cls 1242 | goto VPNAppInstaller 1243 | ) 1244 | :VPNAppInstaller 1245 | cls 1246 | bitsadmin /transfer "Downloading Daddy Madu Automated VPN VOIP Latest Update" /priority FOREGROUND "https://raw.githubusercontent.com/DaddyMadu/Windows-Optimzier/main/DaddyMadu-VPN-VOIP.bat" "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" 1247 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" ( 1248 | goto continueVPNAppInstaller 1249 | ) ELSE ( 1250 | GOTO alternativedownloadVPNAppInstaller 1251 | ) 1252 | :alternativedownloadVPNAppInstaller 1253 | cls 1254 | powershell -c "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/DaddyMadu/Windows-Optimzier/main/DaddyMadu-VPN-VOIP.bat', '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat')" 1255 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" ( 1256 | goto continueVPNAppInstaller 1257 | ) ELSE ( 1258 | GOTO alternativedownload2VPNAppInstaller 1259 | ) 1260 | :alternativedownload2VPNAppInstaller 1261 | cls 1262 | powershell -c "Invoke-WebRequest 'https://raw.githubusercontent.com/DaddyMadu/Windows-Optimzier/main/DaddyMadu-VPN-VOIP.bat' -OutFile '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat'" 1263 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" ( 1264 | goto continueVPNAppInstaller 1265 | ) ELSE ( 1266 | cls 1267 | ECHO ============================================================================================= 1268 | echo Please Make Sure you DISABLED YOUR ANTIVIRUS and You HAVE INTERNET Avaliable! 1269 | echo As something is BLOCKING script from downloading latest Version Avaliable! 1270 | ECHO ============================================================================================= 1271 | echo Please Press ENTER KEY to try again! 1272 | ECHO ============================================================================================= 1273 | pause >nul 1274 | goto VPNAppInstaller 1275 | ) 1276 | :continueVPNAppInstaller 1277 | powershell -NoProfile -ExecutionPolicy Bypass -c "$WshShell = New-Object -comObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%DesktopPath%\Automated VPN.lnk'); $Shortcut.TargetPath = '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat'; $Shortcut.Save()" 1278 | cls 1279 | for /f "delims== tokens=2" %%a in ('wmic os get osarchitecture /value') do ( 1280 | set arch=%%a 1281 | ) 1282 | if "%arch%"=="64-bit" ( 1283 | goto :x64VPNAppInstaller 1284 | ) else ( 1285 | goto :x86VPNAppInstaller 1286 | ) 1287 | :x64VPNAppInstaller 1288 | IF EXIST "%SystemRoot%\Sysnative\cmd.exe" ( 1289 | start %SystemRoot%\Sysnative\cmd.exe /c "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" 1290 | ) ELSE ( 1291 | start %SystemRoot%\System32\cmd.exe /c "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" 1292 | ) 1293 | goto ExitDaddyMaduAutomatedVPN 1294 | :x86VPNAppInstaller 1295 | start %SystemRoot%\System32\cmd.exe /c "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-VPN-VOIP.bat" 1296 | goto ExitDaddyMaduAutomatedVPN 1297 | :ExitDaddyMaduAutomatedVPN 1298 | Exit 1299 | -------------------------------------------------------------------------------- /DaddyMadu-Windows-Optimizer.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | ECHO. 3 | ECHO ============================= 4 | ECHO Running Admin shell 5 | ECHO ============================= 6 | :init 7 | setlocal DisableDelayedExpansion 8 | set cmdInvoke=1 9 | set winSysFolder=System32 10 | set "batchPath=%~0" 11 | for %%k in (%0) do set batchName=%%~nk 12 | set "vbsGetPrivileges=%temp%\OEgetPriv_%batchName%.vbs" 13 | setlocal EnableDelayedExpansion 14 | 15 | :checkPrivileges 16 | NET FILE 1>NUL 2>NUL 17 | if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges ) 18 | 19 | :getPrivileges 20 | if '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges) 21 | ECHO. 22 | ECHO ************************************** 23 | ECHO Invoking UAC for Privilege Escalation 24 | ECHO ************************************** 25 | 26 | ECHO Set UAC = CreateObject^("Shell.Application"^) > "%vbsGetPrivileges%" 27 | ECHO args = "ELEV " >> "%vbsGetPrivileges%" 28 | ECHO For Each strArg in WScript.Arguments >> "%vbsGetPrivileges%" 29 | ECHO args = args ^& strArg ^& " " >> "%vbsGetPrivileges%" 30 | ECHO Next >> "%vbsGetPrivileges%" 31 | 32 | if '%cmdInvoke%'=='1' goto InvokeCmd 33 | 34 | ECHO UAC.ShellExecute "!batchPath!", args, "", "runas", 1 >> "%vbsGetPrivileges%" 35 | goto ExecElevation 36 | 37 | :InvokeCmd 38 | ECHO args = "/c """ + "!batchPath!" + """ " + args >> "%vbsGetPrivileges%" 39 | ECHO UAC.ShellExecute "%SystemRoot%\%winSysFolder%\cmd.exe", args, "", "runas", 1 >> "%vbsGetPrivileges%" 40 | 41 | :ExecElevation 42 | "%SystemRoot%\%winSysFolder%\WScript.exe" "%vbsGetPrivileges%" %* 43 | exit /B 44 | 45 | :gotPrivileges 46 | setlocal & cd /d %~dp0 47 | if '%1'=='ELEV' (del "%vbsGetPrivileges%" 1>nul 2>nul & shift /1) 48 | :::::::::::::::::::::::::::: 49 | ::START 50 | :::::::::::::::::::::::::::: 51 | title [ Daddy Madu ] Windows Optimizer! 52 | color 1f 53 | reg ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main" /v "DisableFirstRunCustomize" /t REG_DWORD /d "2" /f >nul 2>&1 54 | reg ADD "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v "LuncherVersion" /t REG_SZ /d "2.2.4" /f >nul 2>&1 55 | mkdir "%userprofile%\AppData\Local\Temp\dmtmp">nul 2>&1 & attrib +h +s "%userprofile%\AppData\Local\Temp\dmtmp" 56 | set "ScriptsFullPath=%userprofile%\AppData\Local\Temp\dmtmp" 57 | powershell -NoProfile -ExecutionPolicy Bypass -c "Add-MpPreference -ExclusionPath '%ScriptsFullPath%'">nul 2>&1 58 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v LuncherVersion') do @set "CurrentVersion=%%z" 59 | for %%i in ("%~0.") do SET "CurrentScriptPath=%%~fi" 60 | echo Currently Running From %CurrentScriptPath% 61 | for /f "usebackq delims=" %%w in (` 62 | powershell -NoProfile -ExecutionPolicy Bypass -c "$CheckLuncherVersion = Invoke-WebRequest -Uri 'https://git.io/JON1C'; $LuncherVersion = ($CheckLuncherVersion.Content | Out-String).Trim(); $LuncherVersion" 63 | `) do set "OnlineLuncherVersion=%%w" 64 | echo checking internet connection 65 | Ping 1.1.1.1 -n 1 -w 1000 66 | cls 67 | if errorlevel 1 ( 68 | echo No Interenet Connection Found!, Lunching Latest Offline Version Avaliable. 69 | timeout /t 2 70 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v LuncherVersion') do @set "OnlineLuncherVersion=%%z" 71 | ) else ( 72 | goto OnlineLuncherVersionChecker 73 | ) 74 | :OnlineLuncherVersionChecker 75 | IF %OnlineLuncherVersion% EQU %CurrentVersion% ( 76 | echo No Update Avaliable! 77 | cls 78 | goto Continueafterluncherupdatecheck 79 | ) ELSE ( 80 | cls 81 | echo Luncher Update Found v%OnlineLuncherVersion%, Updating NOW! 82 | powershell -NoProfile -ExecutionPolicy Bypass -c "$CheckUpdaterChangelog = Invoke-WebRequest -Uri 'https://git.io/JONPD'; $LuncherChangelog = ($CheckUpdaterChangelog.Content | Out-String).Trim(); $LuncherChangelog.Split([Environment]::NewLine) | Select -First 20" 83 | timeout /t 20 84 | cls 85 | goto downloadupdateluncher 86 | ) 87 | :downloadupdateluncher 88 | cls 89 | del /s /f /q "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Luncher.bat">nul 2>&1 90 | bitsadmin /transfer "Downloading Luncher Latest Update" /priority FOREGROUND "https://git.io/JOFPg" "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Luncher.bat" 91 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Luncher.bat" ( 92 | goto Continueafterluncherupdatedownloaded 93 | ) ELSE ( 94 | GOTO alternativedownloadluncher 95 | ) 96 | :alternativedownloadluncher 97 | cls 98 | powershell -c "(New-Object Net.WebClient).DownloadFile('https://git.io/JOFPg', '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Luncher.bat')" 99 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Luncher.bat" ( 100 | goto Continueafterluncherupdatedownloaded 101 | ) ELSE ( 102 | GOTO alternativedownloadluncher2 103 | ) 104 | :alternativedownloadluncher2 105 | cls 106 | powershell -c "Invoke-WebRequest 'https://git.io/JOFPg' -OutFile '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Luncher.bat'" 107 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Luncher.bat" ( 108 | goto Continueafterluncherupdatedownloaded 109 | ) ELSE ( 110 | cls 111 | ECHO ============================================================================================= 112 | echo Please Make Sure you DISABLED YOUR ANTIVIRUS and You HAVE INTERNET Avaliable! 113 | echo As something is BLOCKING script from downloading latest Version Avaliable! 114 | ECHO ============================================================================================= 115 | echo Please Press ENTER KEY to try again! 116 | ECHO ============================================================================================= 117 | pause >nul 118 | goto downloadupdateluncher 119 | ) 120 | :Continueafterluncherupdatedownloaded 121 | powershell -NoProfile -ExecutionPolicy Bypass -c "Copy-Item -Path '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Luncher.bat' -Destination '%CurrentScriptPath%' -Force" 122 | cls 123 | echo Update Completed Successfully! Trying to Relunch Script Again... 124 | timeout /t 2 125 | %CurrentScriptPath% 126 | exit 127 | :Continueafterluncherupdatecheck 128 | cd /d "%systemdrive%\Windows\System32" 129 | cls 130 | echo ... Welcome %username% to DaddyMadu Windows Optimizer ... 131 | echo. 132 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.bat" ( 133 | goto choice 134 | ) ELSE ( 135 | GOTO downloadupdate 136 | ) 137 | :choice 138 | for /f "usebackq delims=" %%w in (` 139 | powershell -NoProfile -ExecutionPolicy Bypass -c "$CheckOptimizerVersion = Invoke-WebRequest -Uri 'https://git.io/JON1p'; $OptimizerVersion = ($CheckOptimizerVersion.Content | Out-String).Trim(); $OptimizerVersion" 140 | `) do set "OnlineOptimizerVersion=%%w" 141 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v OptimizerVersion') do @set "OptimizerVersion=%%z" 142 | echo checking internet connection 143 | Ping 1.1.1.1 -n 1 -w 1000 144 | cls 145 | if errorlevel 1 ( 146 | for /f "tokens=3" %%z in ('reg query "HKEY_CURRENT_USER\SOFTWARE\DM Windows Optimizer\Updater" /v OptimizerVersion') do @set "OnlineOptimizerVersion=%%z" 147 | ) else ( 148 | goto OnlineOptimizerVersionChecker 149 | ) 150 | :OnlineOptimizerVersionChecker 151 | IF "%OnlineOptimizerVersion%" EQU "%OptimizerVersion%" ( 152 | echo No Update Found, Lunching script! 153 | goto continue 154 | ) ELSE ( 155 | cls 156 | echo Windows Optimizer Update Found v%OnlineOptimizerVersion%, Script is updating NOW! 157 | powershell -NoProfile -ExecutionPolicy Bypass -c "$CheckOptimizerChangelog = Invoke-WebRequest -Uri 'https://git.io/JONPH'; $OptimizerChangelog = ($CheckOptimizerChangelog.Content | Out-String).Trim(); $OptimizerChangelog.Split([Environment]::NewLine) | Select -First 20" 158 | timeout /t 20 159 | cls 160 | goto downloadupdate 161 | ) 162 | :downloadupdate 163 | cls 164 | del /s /f /q "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.bat">nul 2>&1 165 | bitsadmin /transfer "Downloading Daddy Madu Windows Optimizer Latest Update" /priority FOREGROUND "https://git.io/JOLBr" "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.bat" 166 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.bat" ( 167 | goto continue 168 | ) ELSE ( 169 | GOTO alternativedownload 170 | ) 171 | :alternativedownload 172 | cls 173 | powershell -c "(New-Object Net.WebClient).DownloadFile('https://git.io/JOLBr', '%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.bat')" 174 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.bat" ( 175 | goto continue 176 | ) ELSE ( 177 | GOTO alternativedownload2 178 | ) 179 | :alternativedownload2 180 | cls 181 | powershell -c "Invoke-WebRequest 'https://git.io/JOLBr' -OutFile %userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.bat" 182 | IF EXIST "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.bat" ( 183 | goto continue 184 | ) ELSE ( 185 | cls 186 | ECHO ============================================================================================= 187 | echo Please Make Sure you DISABLED YOUR ANTIVIRUS and You HAVE INTERNET Avaliable! 188 | echo As something is BLOCKING script from downloading latest Version Avaliable! 189 | ECHO ============================================================================================= 190 | echo Please Press ENTER KEY to try again! 191 | ECHO ============================================================================================= 192 | pause >nul 193 | goto downloadupdate 194 | ) 195 | :continue 196 | cls 197 | for /f "delims== tokens=2" %%a in ('wmic os get osarchitecture /value') do ( 198 | set arch=%%a 199 | ) 200 | if "%arch%"=="64-bit" ( 201 | goto :x64 202 | ) else ( 203 | goto :x86 204 | ) 205 | :x64 206 | IF EXIST "%SystemRoot%\Sysnative\cmd.exe" ( 207 | start %SystemRoot%\Sysnative\cmd.exe /c "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.bat" 208 | ) ELSE ( 209 | start %SystemRoot%\System32\cmd.exe /c "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.bat" 210 | ) 211 | goto :eof 212 | :x86 213 | start %SystemRoot%\System32\cmd.exe /c "%userprofile%\AppData\Local\Temp\dmtmp\DaddyMadu-Windows-Optimizer.bat" 214 | goto :eof 215 | pause 216 | -------------------------------------------------------------------------------- /DaddyMadu-Windows-Optimizer.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaddyMadu/Windows-Optimzier/57e360e2f2f6da858a4ac3b582119296cb3e28dd/DaddyMadu-Windows-Optimizer.zip -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | Copyright (c) 2022 DaddyMadu. 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of my scripts/softwares and associated documentation files (the "Scripts/Softwares"), to deal in the Script/Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5 | 6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Script/Software. 7 | 8 | THE SCRIPT/SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SCRIPT/SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SCRIPT/SOFTWARE. 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **Welcome to AIO Windows 10/11 Optimizer and App Installer Script** 2 | 3 | here's what you will expect when using this tool 4 | 5 | 1. Clear All TEMP folders, logs, chks, Caches and Fix DNS problems 6 | 2. Install and scan system with MalwareBytes 7 | 3. Scan System + Repair Windows Image 8 | 4. Install or Update Wise Programs Uninstaller 9 | 5. Automated Apps Installer - Beta 10 | > 1. Install Apps 11 | > 2. Uninstall Apps 12 | 13 | **Both install and uninstall shares the following** 14 | 15 | >> === Essentials === === Internet Tools === === Communications === 16 | >> 17 | >> [1] Microsoft Visual C++ 2005-2019 [2] Mozilla Firefox [3] Telegram 18 | >> [4] DirectX [5] Google Chrome [6] WhatsApp Messenger 19 | >> [63] Microsoft .NET Framework 4.8 [7] Brave [8] Skype 20 | >> [9] Opera [10] Zoom Client for Meetings 21 | >> [11] Opera GX [12] Mozilla Thunderbird 22 | >> [13] Microsoft Teams Desktop App 23 | >> [14] Discord 24 | >> 25 | >> === File Management === === Video/Audio === === Productivity === 26 | >> 27 | >> [15] WinRAR [16] K-Lite Codec Pack Full [17] LibreOffice Fresh 28 | >> [18] FileZilla [19] K-Lite Codec Pack Basic [20] PDF Creator 29 | >> [21] Google Drive for desktop [22] Audacity [23] Sumatra PDF 30 | >> [24] Google Backup and Sync [25] IrfanView [26] OBS Studio 31 | >> [27] teracopy [28] Spotify [29] FormatFactory 32 | >> [30] 7zip [31] VLC 33 | >> [78] SyncBackFree 34 | >> [79] Free Download Manager 35 | >> 36 | >> === Editing === === Gaming === === Utilitis === 37 | >> 38 | >> [32] GIMP [33] Epic Games Launcher [34] CPU-Z 39 | >> [35] Inkscape [36] Steam [37] CCleaner 40 | >> [38] Atom [39] GOG Galaxy [40] Teamviewer 41 | >> [41] Lightshot [42] Origin [43] AnyDesk 42 | >> [44] Avidemux [45] Ubisoft Connect [46] CrystalDiskInfo 43 | >> [47] ASIO4ALL [48] Playnite [49] VirtualBox 44 | >> [50] NotePad++ [51] VeraCrypt 45 | >> [52] HWiNFO 46 | >> [53] HandBrake 47 | >> [54] BleachBit 48 | >> [55] CrystalDiskMark Benchmark 49 | >> 50 | >> === Drivers === === Miscellaneous === === Windows === 51 | >> 52 | >> [56] AMD Ryzen Chipset Drivers [57] OpenSSL [58] Windows and Office ISO Download Tool 53 | >> [59] NVidia Driver Striped [60] Java SE Runtime Environment [61] Windows 10 Update Assistant 54 | >> [62] NVidia Driver Gforce Experience [77] Java Uninstall Tool [64] Autoruns 55 | >> [65] Snappy Driver Installer Origin [66] qBittorrent [67] Sysinternals 56 | >> [68] Intel Network Adapter Driver W10 [69] Rufus [70] Process Explorer 57 | >> [71] Display Driver Uninstaller [72] Hex Editor and Disk Editor 58 | >> [73] LockHunter 59 | >> [74] uBlock Origin for Chrome 60 | >> [75] Macrium Reflect Free 61 | >> [76] throttlestop 62 | 63 | > 3. Manually Update All Installed Apps 64 | > 4. Save Current Config to Desktop 65 | > 5. Load and Auto Install Apps from Config 66 | 6. Windows 10/11 Gaming Focus Full Tweaker and Debloater 67 | 7. Fix Start Menu issues 68 | 8. Fix and Rebuild Icons 69 | 9. Games Optimizer 70 | > 1. Gameloop Optimizer 71 | >> 1. Force Stop All Gameloop Emulator Process 72 | >> 2. Gameloop Emulator Optimization for no FPS Drop 73 | >> TYPE "remove". Compelete Uninstall Gameloop Emulator Leftovers 74 | >> 3. Install Latest Gameloop from Official Link Gameloop.com 75 | >> 4. Gameloop TEMP Mover! 76 | >> 5. Fix for after Gameloop Force Temp C, Drives Not Showing 77 | > 2. Valorant 78 | >> 1. Apply Optimization 79 | >> 2. Remove Optimization 80 | >> 3. Fix Game Freeze when ALT+TAB 81 | 82 | 83 | 84 | # Luncher Updater 85 | - Shortened URL For Lucher https://git.io/JOFPg 86 | - Shortened URL For Luncher Updater https://git.io/JON1C 87 | - Changelog URL https://git.io/JONPD 88 | 89 | # Windows-Optimzier 90 | - Shortened URL for Encoded code https://git.io/JOLBr 91 | - Shortened URL for updater https://git.io/JON1p 92 | - Changelog URL https://git.io/JONPH 93 | - Link for ZIP https://git.io/JOZDd Pass is:DaddyMadu 94 | 95 | # App Installer 96 | - Shortened URL for Encoded code https://git.io/JO9MJ 97 | - Shortened URL for AppUpdater https://git.io/JON1H 98 | - Changelog URL https://git.io/JONPi 99 | 100 | # Automated VPN 101 | - Shortened URL for 102 | - Shortened URL for Updater 103 | - Changelog URL 104 | -------------------------------------------------------------------------------- /Updaters/AutmatedApps-Updater.txt: -------------------------------------------------------------------------------- 1 | 3.0.0 2 | -------------------------------------------------------------------------------- /Updaters/Automated-VPN-Updater.txt: -------------------------------------------------------------------------------- 1 | 4.3.4 2 | -------------------------------------------------------------------------------- /Updaters/LuncherUpdater.txt: -------------------------------------------------------------------------------- 1 | 2.2.4 2 | -------------------------------------------------------------------------------- /Updaters/Optimizer-Updater.txt: -------------------------------------------------------------------------------- 1 | 5.3.1 2 | --------------------------------------------------------------------------------