├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── Changelog ├── Files ├── GroupPolicy │ ├── LGPO │ │ ├── All_OS_Machine_MDL.pol │ │ ├── All_OS_Machine_MDL.txt │ │ ├── Disable_Store_MDL.pol │ │ ├── Disable_Store_MDL.txt │ │ ├── Firefox.pol │ │ ├── Firefox.txt │ │ ├── Server_Dif.pol │ │ ├── Server_Dif.txt │ │ ├── User_MDL.pol │ │ └── User_MDL.txt │ ├── PolicyDefinitions │ │ ├── CustomPolicies.admx │ │ ├── de-DE │ │ │ ├── firefox.adml │ │ │ └── mozilla.adml │ │ ├── en-US │ │ │ ├── CustomPolicies.adml │ │ │ ├── firefox.adml │ │ │ └── mozilla.adml │ │ ├── es-ES │ │ │ ├── firefox.adml │ │ │ └── mozilla.adml │ │ ├── firefox.admx │ │ ├── fr-FR │ │ │ ├── firefox.adml │ │ │ └── mozilla.adml │ │ ├── it-IT │ │ │ ├── firefox.adml │ │ │ └── mozilla.adml │ │ └── mozilla.admx │ └── securityconfig.cfg ├── Scripts │ ├── GroupPolicy │ │ ├── Reset Group Policy.bat │ │ └── Restore Group Policy Settings from Backup.bat │ ├── PowerManagement │ │ ├── PowerManagementNIC.ps1 │ │ └── PowerManagementUSB.ps1 │ ├── RegistryTweaks │ │ ├── Registry Tweaks.bat │ │ └── Registry Tweaks_Restore.bat │ ├── ScheduledTasks │ │ ├── ScheduledTasks.bat │ │ └── ScheduledTasks_Restore.bat │ ├── Services │ │ ├── Cur_services_startup_config_backup.vbs │ │ ├── Opt_services_startup_config_backup.vbs │ │ └── Services Optimization.bat │ └── WriteCaching │ │ ├── DiskWriteCaching.ps1 │ │ └── Launch_DiskWriteCaching_ps1.bat └── Utilities │ ├── Browser.bat │ ├── DeviceCleanupCmd.exe │ ├── GetKey.exe │ ├── JREPL.bat │ ├── LGPO.exe │ ├── Microsoft.Search.Interop.dll │ ├── NSudoC.exe │ ├── Required_Utilities.txt │ ├── consolesize.exe │ └── dskcache.exe ├── MODES.pdf ├── Optimize_NextGen_v4.1_MDL.bat ├── README.md └── Set_Shortcut_and_Options.bat /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /Changelog: -------------------------------------------------------------------------------- 1 | -06-08-2019 : Optimize NextGen v4.1.0 2 | - Now fully customizable, adding arguments for options, allowing to bypass or add some tasks. 3 | - New Shortcut script that allow to easily create shortcut with options arguments 4 | - Added Help menu. Launch help from main menus or via commandline typing Optimize_NextGen_MDL.exe /? 5 | - New mode: Custom mode, unlike fast mode that runs with pre-set options, it will run only with the options you set. 6 | Use shortcut script to set this mode and options, or read Help. 7 | - You can set as many arguments as you like, but note that some arguments are made inactive by others, or depending on the Mode you choose. 8 | Everything is explained in Help Menu 9 | - Removed all "policies" registry tweaks, Group Policy is manages it all. 10 | - LGPO now also adds registry keys and values before importing policy file. 11 | - Importing Group Policy settings is now made by LGPO, instead of ugly delete/robocopy. 12 | HUGE advantage is LGPO merges/adds Group Policy settings, instead of replacing them. I just realized that. 13 | That means I don't have to create a complete policy file for every configuration as before. 14 | Like one with Store, one with Firefox, one no store no firefox, no store but firefox etc. That was crazy. 15 | Means also the script code for Group Policy task got simplified. 16 | - So, separated .pol files and .txt parsed GP settings, and it's much more easy to maintain: I only need to merge chosen settings. 17 | For example Server .pol has only 2 more settings than Windows 10, no need to make a full policy file for it. 18 | Same applies for Store, Firefox etc. 19 | - Added some tweaks (Thanks to rayleigh_otter@MDL) 20 | - New Task: .NET Framework web applications peformance tuning. It will tweak .NET web application as described here: 21 | http://docs.frozenmountain.com/websync4/index.html#class=websync-performance-tuning 22 | - New Task: Backup Services and/or Group Policy settings. 23 | Services are backed-up as .bat and .reg (reg file allows to save delayed start value). 24 | GPO backup is performed by robocopy as well as LGPO.exe, GP security settings are also backed-up. 25 | - Now shows the options set/chosen when you run services optimization and Group Policy task. 26 | - Now launches about 5 seconds faster. Resizing window buffersize through powershell was slooooow. 27 | Now using a small C++ utility just made for that. 28 | - Overall faster, replaced all duplicate commands by the appropriate for /f loop and syntax. 29 | - Fixed multi_sz reg add commands. 30 | - Fixed some bugs, now all commands are applied. 31 | - New Firefox Policy Template, customized to add more functions: fully disable recommended extensions. 32 | - New screenshots, check here: https://github.com/Thdub/Optimize_NextGen/releases/download/v4.1.0/Optimize.NextGen.Screenshots.html 33 | 34 | -18-07-2019 : Optimize NextGen v3.9.7 35 | - Fixed File and Printer sharing option: only Network Discovery was turned ON when enabling File and Printer Sharing option in services optimization. 36 | - Improved syntax: added some double quotes, always better/safer. 37 | - Updated User Policy file with (forgotten) Office telemetry settings. 38 | 39 | -18-07-2019 : Optimize NextGen v3.9.6 40 | - Fixed services optimization (services with strange characters or space), now it fully works. 41 | - Fixed services startup configuration backup: mirror copy (robocopy /MIR) would delete precedent backups (change introduced in v.3.9.5) 42 | 43 | -17-07-2019 : Optimize NextGen v3.9.5 44 | - Major code improvment (learning every day...) 45 | - Optional Microsoft Store and games settings : 46 | Since some people use the Store, and even add Store to LTSC (still, wanting performances and privacy ?!?) I decided to add this as an option (instead of sending customized versions) 47 | This was not the purpose of the script and I clearly stated for who/what it is targeted, but...yeah (some people won't read anyway) 48 | It will query for Microsoft.StorePurchaseApp, and if detected/installed ask the user if he wants to apply or bypass store and apps settings. 49 | Made it clear : after the prompt, added (Choose NO if you use the store) 50 | Choosing YES will block store, store apps and games, and disable Microsoft Account creation (You can still logon with a previously created Microsoft Account though) 51 | If the user chooses to bypass store settings, it will then ask if he wants to apply or bypass games settings. 52 | Clear also : added (choose NO if you play games) 53 | Choosing NO will keep gamebar, leave xboxsave scheduled task enabled etc. while YES will set all "game related" tweaks. 54 | - Added Game Explorer deactivation (and of course restoration, in restore menu) : gameux.dll injects into games at startup and connects to MS servers. 55 | It just renames .dll as .dll.bak to avoid leaking infos to ms servers. 56 | Note: if you set this option, you will then see an (harmless) error in event viewer log: 57 | Error setting traits on Provider {8444a4fb-d8d3-4f38-84f8-89960a1ef12f}, haven't found better solution for now. 58 | Note2: If you previously chose to bypass games settings, this option is not proposed. 59 | - Added more privacy settings (Thanks to some fellow MDL members and Blackbird dev). 60 | - New services startup configuration backup: Using now a customized vbs script which will save startup configuration as .bat and .reg file. 61 | .reg file provides delayed start detection, and on top of that backup task is (a lot) faster. 62 | (Thanks to Ramesh Srinivasan for the original script) 63 | - Setting indexing options is also faster, and custom path indexing made - I hope - bulletproof (if you hit cancel or enter path twice for example). 64 | - Keyboard improvments: Keyboard speed (enjoy fast keyboard!), and numlock set ON at startup (never understood why it wasn't the case by default). 65 | - Added clear event viewer log option. 66 | - Firefox Policy Template updated to v1.8 (Thanks to Michael Kaply) 67 | https://github.com/mozilla/policy-templates/releases 68 | - Added Scheduled Tasks script (if you want to disable scheduled tasks outside main script) 69 | - Updated Registry Tweak script with latest tweaks. 70 | Note: This is the script provided to (re)apply tweaks outside main script. 71 | Haven't had time yet to update "Restore Tweaks" script, it's a bit long, sorry. 72 | Neither had to update "remove registry tweaks" part in the main script. 73 | But few are missing, since most of the settings are set by GPO. 74 | - TRIM command will only run if system drive is detected as a SSD. 75 | In previous version it would not do anything anyway if choose to run TRIM command while system drive isn't a SSD. 76 | Added command makes the script a bit slower, but didn't seem logical to propose this option for users with HDD. 77 | - Added info in Services configuration/File and Printer Sharing Enable/Disable choice ( Press D if you don't have home network and/or don't use network printer). 78 | - Added infos about defaults settings in Fast Mode. 79 | Note that in fast mode settings are geared towards maximum performances. 80 | - Small edits in backed up powershell scripts: Log path changed to script folder. 81 | Note: These are the scripts provided in backup folder if you want to launch the tasks outside main script. 82 | - Added Launcher for Write Caching script, because it needs to be launched with arguments (for drives and computer). 83 | - Some small cosmetic changes, cursor/colors etc... 84 | - Small bug fixes (found quite a few glitches, but happily all harmless...) 85 | 86 | -08-07-2019 : Optimize NextGen v3.8.6 87 | - Cleared duplicates/redundant settings 88 | - Updated "Disable scheduled tasks" (a lot where added). 89 | 90 | -07-07-2019 : Optimize NextGen v3.8.5 91 | - Added more privacy settings (in miscellaneous section for now). 92 | 93 | -11-06-2019 : Optimize NextGen v3.8.2 94 | - Added event viewer logs clearing to end cleaning task. 95 | 96 | -08-06-2019 : Optimize NextGen v3.8 97 | - Added DeviceCleanup cmdline tool: https://www.uwe-sieber.de/misc_tools_e.html#devicecleanup 98 | Each once attached device leaves an entry in the Windows device management. 99 | By means of the Windows device manager you can delete one by one only. 100 | With this tool you can delete multiple or all non-present devices. 101 | 102 | -08-06-2019 : Optimize NextGen v3.7 103 | - Modified Microsoft account policy (security setting) to: "Users can't add Microsoft accounts", to avoid people using microsoft account being 104 | locked out. 105 | - Added option to set Group Policy again or to reset Group Policy after registry tweak removing (Restore menu): 106 | Some important registry settings are redundantly included as Group Policy settings. If you launched full/fast optimization or Group Policy single task before, the tweaks you just removed are still stored as GPO, which means that while tweaks were removed, a future "GpUpdate" command would re-add them. 107 | In this case (only), it's better to launch Group Policy task again with these only the registry tweaks removed, or to reset Group Policy totally. 108 | So, I made 4 new policy files without those registry settings and added option to set again, reset Group Policy totally, or leave like this. 109 | -Minor cosmetic changes 110 | 111 | -05-06-2019: Optimize NextGen v3.6 112 | - Firefox Template updated to v1.7, changelog here: https://github.com/mozilla/policy-templates/releases 113 | .adml (policy definitions) are now available in different languages (de, en, es, it, sp) and will be imported according to your OS language. 114 | - Removed some Firefox policies (locked values) and few personal settings I had forgotten to remove, like https://google.com/ncr Home Page. 115 | - Added /offline switch for offline scenarios: deployment/post-install script, logon/logoff script... 116 | Usage: Optimize_NextGen_MDL.exe /offline, or Optimize_NextGen_MDL.bat /offline (if you extracted .bat from SFX archive). 117 | You can also use the shortcuts creation script provided, for easier launch. 118 | - Small fixes: 119 | - In Miscellaneous section, UI and keyboard was set to EN-US with French Layout (my own settings, sorry...in a 2000+lines scripts it's hard to think of everything) 120 | - Deleted the whole keyboard part for now, including NUMLOCK at startup ("InitialKeyboardIndicators"= 2), "KeyboardDelay" and "KeyboardSpeed" 121 | - One robocopy command wasn't hidden ( >nul missing) 122 | - Added User Name to "user accounts to be trusted for delegation" (security settings). Just a precaution, Authenticated Users and Administrator already had delegation rights (in previous script versions). Note: This setting is mandatory on Windows Server if you want to be able to change/update User Policy, you need at least Authenticated User or Administrator (without s). 123 | 124 | -20-05-2019: Optimize NextGen v3.5 125 | - Compressed everything in one simple SFX file ("auto extract" .exe), easier to store. 126 | - Now accepting switches. 127 | Switches added: /fast /full /secret 128 | /fast=fast mode (no backup or choices) 129 | /full=full mode (every optimization with choices) 130 | /secret=fast mode with hidden console, except restart countdown and prompt at the end. 131 | Note: If you prefer to run .bat instead, just open/extract .exe with 7zip or winrar. 132 | .bat script also accepts switches, same functionalities, with just a cosmetic difference: shell/console "changes" are apparent. 133 | 134 | - Added a script to quickly create .exe shortcuts with all switches. 135 | - Added (and modified a bit) Indexing options setting, cf here: https://github.com/Thdub/Set_Indexing_Options 136 | 137 | -16-04-2019: Optimize NextGen v3.0 138 | - Compatibility with other Windows 10 editions (services optimization feature not available yet) 139 | - Separate Restore and Optimize menus 140 | - New feature: Enable write caching on all disks. Normally one needs to do it manually in device manager for each drive. 141 | - Now ask if the user wants to enable or disable file and printer sharing required services (disabled by default in Fast mode). 142 | - At the beginning scans if Wlan Service exists, and then if any Wifi is connected, to disable (or ask to disable) Wlan service during later services optimization. 143 | - New "custom policy set", with 2 new policies: Enable or disable storage sense, Remove power button from login screen (hide or force allow/show, which I needed personally) 144 | - Some Group Policy settings added 145 | -16-02-2019: Optimize NextGen v2.6 146 | - Added few "privacy" Group Policy settings 147 | - Fixed bug introduced in v2.5 while running TRIM command (forgot to "escape" parenthesis in the script) 148 | 149 | -21-01-2019 : Optimize Next Gen v2.5 150 | - New Fast option: Full optimization with no prompts nor backups. 151 | Similar to Optimize NextGen v.1 but with the added new functions. 152 | Note: TRIM is excluded from fast optimization (you don't need to trim that often). 153 | - New Separate Options in the Main Menu : Telemetry only, Privacy only, TRIM (cf main menu screenshot) 154 | - Added HID selective suspend setting, to disable/untick "Allow the computer to turn off this device to save power" for HID Devices under Power Management tab in Device Manager: 155 | - Added Memory Compression and PageCombining, only for Windows Server (cf spoiler screenshots). 156 | - Fixed a missing double quote. Not that important, it was just making one of the restore functions exit at the end of the process, instead of pause/going to start menu. 157 | 158 | -17-01-2019 : Optimize Next Gen v2, complete re-write. 159 | - Now includes a Main Menu to apply full optimization or only parts of the script (cf spoiler screenshot in MDL forum thread). 160 | - Merged Server and LTSC in one unique .bat: Windows edition is detected inside the script. 161 | - Added Power Management Settings in "Performances settings task". 162 | - Services backup is now (much) faster. 163 | - Included NSudo to apply complete services optimization. 164 | - Added Trim (as an Option), only for system drive. Note: if your C:\ drive isn't a SSD, command will not proceed. So, don't worry if you pressed yes by mistake, it won't run HDD defrag... 165 | - Firefox Policies and Template are now optional (requested by PsychedelicShaman ). 166 | - Background apps, Camera and Microphone are now set to "User is in control" in Group Policy (thanks to PsychedelicShaman ). 167 | - Few registry tweaks added (like Shutdown Event Tracer and DisableCAD for Server). 168 | - Resetting Group Policy Security Settings is now optional. Note: if you choose to reset, don't worry, Group Policy Security Settings and Security database are also saved (cf spoiler notes). 169 | - Added few security settings (rights delegation and password policy). 170 | Note : Strong password policy is ON by default on Windows Server, not verified yet in LTSC. 171 | - Backup folder with settings and scripts is now saved in script folder (instead of Desktop). 172 | - Rewrote all included scripts, and added some more. Note: "Restore Group Policy from backup" and "Optimize Group Policy" scripts obviously requires to keep the same folder structure. 173 | - Added nice colors and title to tittle bar (cf screenshot). ANSI Escape sequences (supported since Threshold 2 Update) was fun in the beginning, but rapidely ended up a nightmare to have it set perfect in script... 174 | Check MSDN page for reference abour cursor position and colors: 175 | https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences 176 | - Added Powershell command to resize batch window without resizing buffer height. 177 | - Added Ultimate Performance PowerScheme setting in Power Management, to set it/or create Powerscheme if missing (and restore default GUID). 178 | There is a annoying bug in windows, if you ever change Powerscheme through powercfg /S command, Ultimate Performance PowerScheme vanishes. 179 | You can easily recreate it with this command: powercfg -duplicatescheme 9a42b02-d5df-448d-aa00-03f14749eb61, but it then creates a new GUID in registry... 180 | Too ugly! Had to fix that...You'll have Ultimate Performance Powerschem WITH default/original GUID in registry. 181 | 182 | -24-12-2018 : Minor code changes, mostly the NSudo existence/path query (also case insensitive now) for complete services optimization. 183 | 184 | -22-12-2018 : Initial release 185 | -------------------------------------------------------------------------------- /Files/GroupPolicy/LGPO/All_OS_Machine_MDL.pol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Thdub/Optimize_NextGen/5e7d58cd166176f152cadccfc6f83034e069a3f0/Files/GroupPolicy/LGPO/All_OS_Machine_MDL.pol -------------------------------------------------------------------------------- /Files/GroupPolicy/LGPO/Disable_Store_MDL.pol: -------------------------------------------------------------------------------- 1 | PReg[Software\Microsoft\Windows\CurrentVersion\Policies\System;NoConnectedUser;;;][Software\Policies\Microsoft\MicrosoftAccount;DisableUserAuth;;;][Software\Policies\Microsoft\Windows\Explorer;NoUseStoreOpenWith;;;][Software\Policies\Microsoft\WindowsStore;AutoDownload;;;][Software\Policies\Microsoft\WindowsStore;DisableStoreApps;;;][Software\Policies\Microsoft\WindowsStore;RemoveWindowsStore;;;][Software\Policies\Microsoft\WindowsStore;RequirePrivateStoreOnly;;;] -------------------------------------------------------------------------------- /Files/GroupPolicy/LGPO/Disable_Store_MDL.txt: -------------------------------------------------------------------------------- 1 | ; ---------------------------------------------------------------------- 2 | ; PARSING Computer POLICY 3 | ; Source file: Machine\Registry.pol 4 | 5 | Computer 6 | Software\Microsoft\Windows\CurrentVersion\Policies\System 7 | NoConnectedUser 8 | DWORD:1 9 | 10 | Computer 11 | Software\Policies\Microsoft\MicrosoftAccount 12 | DisableUserAuth 13 | DWORD:1 14 | 15 | Computer 16 | Software\Policies\Microsoft\Windows\Explorer 17 | NoUseStoreOpenWith 18 | DWORD:1 19 | 20 | Computer 21 | Software\Policies\Microsoft\WindowsStore 22 | AutoDownload 23 | DWORD:2 24 | 25 | Computer 26 | Software\Policies\Microsoft\WindowsStore 27 | DisableStoreApps 28 | DWORD:1 29 | 30 | Computer 31 | Software\Policies\Microsoft\WindowsStore 32 | RemoveWindowsStore 33 | DWORD:1 34 | 35 | Computer 36 | Software\Policies\Microsoft\WindowsStore 37 | RequirePrivateStoreOnly 38 | DWORD:1 39 | 40 | ; PARSING COMPLETED. 41 | ; ---------------------------------------------------------------------- 42 | 43 | -------------------------------------------------------------------------------- /Files/GroupPolicy/LGPO/Firefox.pol: -------------------------------------------------------------------------------- 1 | PReg[Software\Policies\Mozilla\Firefox;DisableFeedbackCommands;;;][Software\Policies\Mozilla\Firefox;DisableFirefoxStudies;;;][Software\Policies\Mozilla\Firefox;DisableForgetButton;;;][Software\Policies\Mozilla\Firefox;DisableFormHistory;;;][Software\Policies\Mozilla\Firefox;DisableMasterPasswordCreation;;;][Software\Policies\Mozilla\Firefox;DisablePocket;;;][Software\Policies\Mozilla\Firefox;DisableSetDesktopBackground;;;][Software\Policies\Mozilla\Firefox;DisableTelemetry;;;][Software\Policies\Mozilla\Firefox;DisplayBookmarksToolbar;;;][Software\Policies\Mozilla\Firefox;DisplayMenuBar;;;][Software\Policies\Mozilla\Firefox;DontCheckDefaultBrowser;;;][Software\Policies\Mozilla\Firefox;ExtensionUpdate;;;][Software\Policies\Mozilla\Firefox;HardwareAcceleration;;;][Software\Policies\Mozilla\Firefox;NoDefaultBookmarks;;;][Software\Policies\Mozilla\Firefox;OfferToSaveLogins;;;][Software\Policies\Mozilla\Firefox;OverrideFirstRunPage;;;][Software\Policies\Mozilla\Firefox;OverridePostUpdatePage;;;][Software\Policies\Mozilla\Firefox\Cookies;RejectTracker;;;][Software\Policies\Mozilla\Firefox\EnableTrackingProtection;Value;;;][Software\Policies\Mozilla\Firefox\EnableTrackingProtection;Locked;;;][Software\Policies\Mozilla\Firefox\FlashPlugin;Default;;;][Software\Policies\Mozilla\Firefox\Permissions\Location;BlockNewRequests;;;][Software\Policies\Mozilla\Firefox\Permissions\Notifications;BlockNewRequests;;;][Software\Policies\Mozilla\Firefox\Preferences;app.update.auto;;;][Software\Policies\Mozilla\Firefox\Preferences;browser.search.update;;;][Software\Policies\Mozilla\Firefox\Preferences;extensions.getAddons.showPane;;;][Software\Policies\Mozilla\Firefox\Preferences;extensions.htmlaboutaddons.discover.enabled;;;][Software\Policies\Mozilla\Firefox\Preferences;extensions.htmlaboutaddons.recommendations.enabled;;;] -------------------------------------------------------------------------------- /Files/GroupPolicy/LGPO/Firefox.txt: -------------------------------------------------------------------------------- 1 | ; ---------------------------------------------------------------------- 2 | ; PARSING Computer POLICY 3 | ; Source file: Machine\Registry.pol 4 | 5 | Computer 6 | Software\Policies\Mozilla\Firefox 7 | DisableFeedbackCommands 8 | DWORD:1 9 | 10 | Computer 11 | Software\Policies\Mozilla\Firefox 12 | DisableFirefoxStudies 13 | DWORD:1 14 | 15 | Computer 16 | Software\Policies\Mozilla\Firefox 17 | DisableForgetButton 18 | DWORD:1 19 | 20 | Computer 21 | Software\Policies\Mozilla\Firefox 22 | DisableFormHistory 23 | DWORD:1 24 | 25 | Computer 26 | Software\Policies\Mozilla\Firefox 27 | DisableMasterPasswordCreation 28 | DWORD:1 29 | 30 | Computer 31 | Software\Policies\Mozilla\Firefox 32 | DisablePocket 33 | DWORD:1 34 | 35 | Computer 36 | Software\Policies\Mozilla\Firefox 37 | DisableSetDesktopBackground 38 | DWORD:1 39 | 40 | Computer 41 | Software\Policies\Mozilla\Firefox 42 | DisableTelemetry 43 | DWORD:1 44 | 45 | Computer 46 | Software\Policies\Mozilla\Firefox 47 | DisplayBookmarksToolbar 48 | DWORD:1 49 | 50 | Computer 51 | Software\Policies\Mozilla\Firefox 52 | DisplayMenuBar 53 | DWORD:1 54 | 55 | Computer 56 | Software\Policies\Mozilla\Firefox 57 | DontCheckDefaultBrowser 58 | DWORD:1 59 | 60 | Computer 61 | Software\Policies\Mozilla\Firefox 62 | ExtensionUpdate 63 | DWORD:0 64 | 65 | Computer 66 | Software\Policies\Mozilla\Firefox 67 | HardwareAcceleration 68 | DWORD:1 69 | 70 | Computer 71 | Software\Policies\Mozilla\Firefox 72 | NoDefaultBookmarks 73 | DWORD:1 74 | 75 | Computer 76 | Software\Policies\Mozilla\Firefox 77 | OfferToSaveLogins 78 | DWORD:0 79 | 80 | Computer 81 | Software\Policies\Mozilla\Firefox 82 | OverrideFirstRunPage 83 | SZ: 84 | 85 | Computer 86 | Software\Policies\Mozilla\Firefox 87 | OverridePostUpdatePage 88 | SZ: 89 | 90 | Computer 91 | Software\Policies\Mozilla\Firefox\Cookies 92 | RejectTracker 93 | DWORD:1 94 | 95 | Computer 96 | Software\Policies\Mozilla\Firefox\EnableTrackingProtection 97 | Value 98 | DWORD:1 99 | 100 | Computer 101 | Software\Policies\Mozilla\Firefox\EnableTrackingProtection 102 | Locked 103 | DWORD:0 104 | 105 | Computer 106 | Software\Policies\Mozilla\Firefox\FlashPlugin 107 | Default 108 | DWORD:1 109 | 110 | Computer 111 | Software\Policies\Mozilla\Firefox\Permissions\Location 112 | BlockNewRequests 113 | DWORD:1 114 | 115 | Computer 116 | Software\Policies\Mozilla\Firefox\Permissions\Notifications 117 | BlockNewRequests 118 | DWORD:1 119 | 120 | Computer 121 | Software\Policies\Mozilla\Firefox\Preferences 122 | app.update.auto 123 | DWORD:0 124 | 125 | Computer 126 | Software\Policies\Mozilla\Firefox\Preferences 127 | browser.search.update 128 | DWORD:0 129 | 130 | Computer 131 | Software\Policies\Mozilla\Firefox\Preferences 132 | extensions.getAddons.showPane 133 | DWORD:0 134 | 135 | Computer 136 | Software\Policies\Mozilla\Firefox\Preferences 137 | extensions.htmlaboutaddons.discover.enabled 138 | DWORD:0 139 | 140 | Computer 141 | Software\Policies\Mozilla\Firefox\Preferences 142 | extensions.htmlaboutaddons.recommendations.enabled 143 | DWORD:0 144 | 145 | ; PARSING COMPLETED. 146 | ; ---------------------------------------------------------------------- 147 | 148 | -------------------------------------------------------------------------------- /Files/GroupPolicy/LGPO/Server_Dif.pol: -------------------------------------------------------------------------------- 1 | PReg[Software\Microsoft\Windows\CurrentVersion\Policies\System;DisableCAD;;;][Software\Policies\Microsoft\Windows NT\CurrentVersion\MYS;DisableShowAtLogon;;;][Software\Policies\Microsoft\Windows NT\Reliability;ShutdownReasonOn;;;][Software\Policies\Microsoft\Windows NT\Reliability;**del.ShutdownReasonUI;;; ] -------------------------------------------------------------------------------- /Files/GroupPolicy/LGPO/Server_Dif.txt: -------------------------------------------------------------------------------- 1 | ; ---------------------------------------------------------------------- 2 | ; PARSING Computer POLICY 3 | ; Source file: Machine\Registry.pol 4 | 5 | Computer 6 | Software\Microsoft\Windows\CurrentVersion\Policies\System 7 | DisableCAD 8 | DWORD:1 9 | 10 | Computer 11 | Software\Policies\Microsoft\Windows NT\CurrentVersion\MYS 12 | DisableShowAtLogon 13 | DWORD:1 14 | 15 | Computer 16 | Software\Policies\Microsoft\Windows NT\Reliability 17 | ShutdownReasonOn 18 | DWORD:0 19 | 20 | Computer 21 | Software\Policies\Microsoft\Windows NT\Reliability 22 | ShutdownReasonUI 23 | DELETE 24 | 25 | ; PARSING COMPLETED. 26 | ; ---------------------------------------------------------------------- 27 | 28 | -------------------------------------------------------------------------------- /Files/GroupPolicy/LGPO/User_MDL.pol: -------------------------------------------------------------------------------- 1 | PReg[Control Panel\International\User Profile;HttpAcceptLanguageOptOut;;;][Software\Microsoft\Messaging;CloudServiceSyncEnabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings;NOC_GLOBAL_SETTING_ALLOW_TOASTS_ABOVE_LOCK;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings;NOC_GLOBAL_SETTING_ALLOW_CRITICAL_TOASTS_ABOVE_LOCK;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.BingNews_8wekyb3d8bbwe!AppexNews;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.SkyDrive.Desktop;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI;Rank;;;c][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.Windows.Photos_8wekyb3d8bbwe!App;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.calendar;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.WindowsStore_8wekyb3d8bbwe!App;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.System.Continuum;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.AudioTroubleshooter;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.AutoPlay;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.BackgroundAccess;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.BdeUnlock;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.HelloFace;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.RasToastNotifier;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.Suggested;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.WiFiNetworkManager;Enabled;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Attachments;SaveZoneInformation;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Comdlg32;NoFileMru;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;ClearRecentDocsOnExit;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;ClearRecentProgForNewUserInStartMenu;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;DisallowCpl;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;HideSCAHealth;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;NoCDBurning;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;NoRecentDocsMenu;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;**delvals.;;; ][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;1;;2;Manage Wireless Networks][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;2;;6;Microsoft.BackupAndRestore][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;3;;F;Microsoft.BitLockerDriveEncryption][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;4;;:;Microsoft.EaseOfAccessCenter][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;5;;,;Microsoft.FileHistory][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;6;;(;Microsoft.HomeGroup][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;7;;&;Microsoft.Infrared][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;8;;0;Microsoft.PhoneAndModem][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;9;;&;Microsoft.Recovery][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;10;;R;Microsoft.RemoteAppAndDesktopConnections][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;11;;8;Microsoft.SpeechRecognition][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;12;;0;Microsoft.StorageSpaces][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;13;;*;Microsoft.SyncCenter][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;14;;;QuickTime][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl;15;;*;Revo Uninstaller Pro][Software\Microsoft\Windows\CurrentVersion\Policies\Programs;NoWindowsMarketplace;;;][Software\Microsoft\Windows\CurrentVersion\Privacy;TailoredExperiencesWithDiagnosticDataEnabled;;;][Software\Policies\Microsoft\Windows\CloudContent;ConfigureWindowsSpotlight;;;][Software\Policies\Microsoft\Windows\CloudContent;DisableTailoredExperiencesWithDiagnosticData;;;][Software\Policies\Microsoft\Windows\CloudContent;DisableThirdPartySuggestions;;;][Software\Policies\Microsoft\Windows\CloudContent;DisableWindowsSpotlightFeatures;;;][Software\Policies\Microsoft\Windows\CloudContent;DisableWindowsSpotlightOnActionCenter;;;][Software\Policies\Microsoft\Windows\CloudContent;DisableWindowsSpotlightOnSettings;;;][Software\Policies\Microsoft\Windows\CloudContent;DisableWindowsSpotlightWindowsWelcomeExperience;;;][Software\Policies\Microsoft\Windows\CloudContent;IncludeEnterpriseSpotlight;;;][Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications;DisallowNotificationMirroring;;;][Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications;NoCloudApplicationNotification;;;][Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications;NoTileApplicationNotification;;;][Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications;NoToastApplicationNotification;;;][Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications;NoToastApplicationNotificationOnLockScreen;;;][Software\Policies\Microsoft\Windows\EdgeUI;DisableMFUTracking;;;][Software\Policies\Microsoft\Windows\Explorer;ClearTilesOnExit;;;][Software\Policies\Microsoft\Windows\Explorer;DisableNotificationCenter;;;][Software\Policies\Microsoft\Windows\Explorer;EnableLegacyBalloonNotifications;;;][Software\Policies\Microsoft\Windows\Explorer;HidePeopleBar;;;][Software\Policies\Microsoft\Windows\Explorer;NoBalloonFeatureAdvertisements;;;][Software\Policies\Microsoft\Windows\Explorer;NoPinningStoreToTaskbar;;;][Software\Policies\Microsoft\Windows\Explorer;NoSystraySystemPromotion;;;] -------------------------------------------------------------------------------- /Files/GroupPolicy/LGPO/User_MDL.txt: -------------------------------------------------------------------------------- 1 | ; ---------------------------------------------------------------------- 2 | ; PARSING User POLICY 3 | ; Source file: User\registry.pol 4 | 5 | User 6 | Control Panel\International\User Profile 7 | HttpAcceptLanguageOptOut 8 | DWORD:1 9 | 10 | User 11 | Software\Microsoft\Messaging 12 | CloudServiceSyncEnabled 13 | DWORD:0 14 | 15 | User 16 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings 17 | NOC_GLOBAL_SETTING_ALLOW_TOASTS_ABOVE_LOCK 18 | DWORD:0 19 | 20 | User 21 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings 22 | NOC_GLOBAL_SETTING_ALLOW_CRITICAL_TOASTS_ABOVE_LOCK 23 | DWORD:0 24 | 25 | User 26 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.BingNews_8wekyb3d8bbwe!AppexNews 27 | Enabled 28 | DWORD:0 29 | 30 | User 31 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge 32 | Enabled 33 | DWORD:0 34 | 35 | User 36 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.SkyDrive.Desktop 37 | Enabled 38 | DWORD:0 39 | 40 | User 41 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI 42 | Enabled 43 | DWORD:0 44 | 45 | User 46 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI 47 | Rank 48 | DWORD:99 49 | 50 | User 51 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.Windows.Photos_8wekyb3d8bbwe!App 52 | Enabled 53 | DWORD:0 54 | 55 | User 56 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.calendar 57 | Enabled 58 | DWORD:0 59 | 60 | User 61 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail 62 | Enabled 63 | DWORD:0 64 | 65 | User 66 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.WindowsStore_8wekyb3d8bbwe!App 67 | Enabled 68 | DWORD:0 69 | 70 | User 71 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel 72 | Enabled 73 | DWORD:0 74 | 75 | User 76 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.System.Continuum 77 | Enabled 78 | DWORD:0 79 | 80 | User 81 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.AudioTroubleshooter 82 | Enabled 83 | DWORD:0 84 | 85 | User 86 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.AutoPlay 87 | Enabled 88 | DWORD:0 89 | 90 | User 91 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.BackgroundAccess 92 | Enabled 93 | DWORD:0 94 | 95 | User 96 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.BdeUnlock 97 | Enabled 98 | DWORD:0 99 | 100 | User 101 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.HelloFace 102 | Enabled 103 | DWORD:0 104 | 105 | User 106 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.RasToastNotifier 107 | Enabled 108 | DWORD:0 109 | 110 | User 111 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance 112 | Enabled 113 | DWORD:0 114 | 115 | User 116 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.Suggested 117 | Enabled 118 | DWORD:0 119 | 120 | User 121 | Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.WiFiNetworkManager 122 | Enabled 123 | DWORD:0 124 | 125 | User 126 | Software\Microsoft\Windows\CurrentVersion\Policies\Attachments 127 | SaveZoneInformation 128 | DWORD:1 129 | 130 | User 131 | Software\Microsoft\Windows\CurrentVersion\Policies\Comdlg32 132 | NoFileMru 133 | DWORD:1 134 | 135 | User 136 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 137 | ClearRecentDocsOnExit 138 | DWORD:1 139 | 140 | User 141 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 142 | ClearRecentProgForNewUserInStartMenu 143 | DWORD:1 144 | 145 | User 146 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 147 | DisallowCpl 148 | DWORD:1 149 | 150 | User 151 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 152 | HideSCAHealth 153 | DWORD:1 154 | 155 | User 156 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 157 | NoCDBurning 158 | DWORD:1 159 | 160 | User 161 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 162 | NoRecentDocsMenu 163 | DWORD:1 164 | 165 | User 166 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 167 | * 168 | DELETEALLVALUES 169 | 170 | User 171 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 172 | 1 173 | SZ:Manage Wireless Networks 174 | 175 | User 176 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 177 | 2 178 | SZ:Microsoft.BackupAndRestore 179 | 180 | User 181 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 182 | 3 183 | SZ:Microsoft.BitLockerDriveEncryption 184 | 185 | User 186 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 187 | 4 188 | SZ:Microsoft.EaseOfAccessCenter 189 | 190 | User 191 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 192 | 5 193 | SZ:Microsoft.FileHistory 194 | 195 | User 196 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 197 | 6 198 | SZ:Microsoft.HomeGroup 199 | 200 | User 201 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 202 | 7 203 | SZ:Microsoft.Infrared 204 | 205 | User 206 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 207 | 8 208 | SZ:Microsoft.PhoneAndModem 209 | 210 | User 211 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 212 | 9 213 | SZ:Microsoft.Recovery 214 | 215 | User 216 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 217 | 10 218 | SZ:Microsoft.RemoteAppAndDesktopConnections 219 | 220 | User 221 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 222 | 11 223 | SZ:Microsoft.SpeechRecognition 224 | 225 | User 226 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 227 | 12 228 | SZ:Microsoft.StorageSpaces 229 | 230 | User 231 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 232 | 13 233 | SZ:Microsoft.SyncCenter 234 | 235 | User 236 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 237 | 14 238 | SZ:QuickTime 239 | 240 | User 241 | Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl 242 | 15 243 | SZ:Revo Uninstaller Pro 244 | 245 | User 246 | Software\Microsoft\Windows\CurrentVersion\Policies\Programs 247 | NoWindowsMarketplace 248 | DWORD:1 249 | 250 | User 251 | Software\Microsoft\Windows\CurrentVersion\Privacy 252 | TailoredExperiencesWithDiagnosticDataEnabled 253 | DWORD:0 254 | 255 | User 256 | Software\Policies\Microsoft\Windows\CloudContent 257 | ConfigureWindowsSpotlight 258 | DWORD:2 259 | 260 | User 261 | Software\Policies\Microsoft\Windows\CloudContent 262 | DisableTailoredExperiencesWithDiagnosticData 263 | DWORD:1 264 | 265 | User 266 | Software\Policies\Microsoft\Windows\CloudContent 267 | DisableThirdPartySuggestions 268 | DWORD:1 269 | 270 | User 271 | Software\Policies\Microsoft\Windows\CloudContent 272 | DisableWindowsSpotlightFeatures 273 | DWORD:1 274 | 275 | User 276 | Software\Policies\Microsoft\Windows\CloudContent 277 | DisableWindowsSpotlightOnActionCenter 278 | DWORD:1 279 | 280 | User 281 | Software\Policies\Microsoft\Windows\CloudContent 282 | DisableWindowsSpotlightOnSettings 283 | DWORD:1 284 | 285 | User 286 | Software\Policies\Microsoft\Windows\CloudContent 287 | DisableWindowsSpotlightWindowsWelcomeExperience 288 | DWORD:1 289 | 290 | User 291 | Software\Policies\Microsoft\Windows\CloudContent 292 | IncludeEnterpriseSpotlight 293 | DWORD:0 294 | 295 | User 296 | Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications 297 | DisallowNotificationMirroring 298 | DWORD:1 299 | 300 | User 301 | Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications 302 | NoCloudApplicationNotification 303 | DWORD:1 304 | 305 | User 306 | Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications 307 | NoTileApplicationNotification 308 | DWORD:1 309 | 310 | User 311 | Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications 312 | NoToastApplicationNotification 313 | DWORD:1 314 | 315 | User 316 | Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications 317 | NoToastApplicationNotificationOnLockScreen 318 | DWORD:1 319 | 320 | User 321 | Software\Policies\Microsoft\Windows\EdgeUI 322 | DisableMFUTracking 323 | DWORD:1 324 | 325 | User 326 | Software\Policies\Microsoft\Windows\Explorer 327 | ClearTilesOnExit 328 | DWORD:1 329 | 330 | User 331 | Software\Policies\Microsoft\Windows\Explorer 332 | DisableNotificationCenter 333 | DWORD:1 334 | 335 | User 336 | Software\Policies\Microsoft\Windows\Explorer 337 | EnableLegacyBalloonNotifications 338 | DWORD:1 339 | 340 | User 341 | Software\Policies\Microsoft\Windows\Explorer 342 | HidePeopleBar 343 | DWORD:1 344 | 345 | User 346 | Software\Policies\Microsoft\Windows\Explorer 347 | NoBalloonFeatureAdvertisements 348 | DWORD:1 349 | 350 | User 351 | Software\Policies\Microsoft\Windows\Explorer 352 | NoPinningStoreToTaskbar 353 | DWORD:1 354 | 355 | User 356 | Software\Policies\Microsoft\Windows\Explorer 357 | NoSystraySystemPromotion 358 | DWORD:1 359 | 360 | ; PARSING COMPLETED. 361 | ; ---------------------------------------------------------------------- 362 | 363 | -------------------------------------------------------------------------------- /Files/GroupPolicy/PolicyDefinitions/CustomPolicies.admx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | -------------------------------------------------------------------------------- /Files/GroupPolicy/PolicyDefinitions/de-DE/mozilla.adml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Mozilla 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Files/GroupPolicy/PolicyDefinitions/en-US/CustomPolicies.adml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Custom Policies Set 4 | Custom policies set for Windows 10 build 1809 5 | 6 | 7 | Custom Policies Set 8 | Windows 10 notifications 9 | Windows Malicious Software Removal Tool 10 | Give me updates for other Microsoft products when I update Windows 11 | If you enable this policy setting, Windows will search for other Microsoft products updates when you run Windows Update. 12 | 13 | If you do not configure or disable this policy setting, and Configure Windows Update policy is set to disabled, install updates for other Microsoft products will be disabled. 14 | 15 | If you do not configure or disable this policy setting, and Configure Windows Update policy is enabled or not configured, the user can configure windows update to search for other Microsoft products when he updates Windows. 16 | 17 | Do not show lock screen background on sign-in screen 18 | 19 | If you enable this policy setting, the user will not be able to display the lock screen background on sign-in screen, and will see the default solid blue color instead. Furthermore, the user will not be able to change this setting through control panel: Setting is hidden from Personalization/Lock screen. 20 | 21 | If you disable this policy setting, the user can choose to hide or show lock screen background on sign-in screen through control panel under Personalization/Lock screen, and "DisableLogonBackgroundImage" value under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System key is set to 0 (default value) 22 | 23 | If you do not configure this policy setting, user can choose to hide or show lock screen background on sign-in screen through control panel under Personalization/Lock screen, and "DisableLogonBackgroundImage" value is deleted from registry. 24 | 25 | Enable or disable Storage Sense 26 | Enable or disable Storage Sense feature. 27 | 28 | Enabled = Always enabled. 29 | Disabled = Disabled. 30 | If you do not configure this policy setting, user can turn Storage Sense on or off in Settings. 31 | 32 | Remove Power Button from login Screen 33 | Enable this setting to hide Power Button from login screen and locks creen. 34 | 35 | Disable to force Power Button display on login screen and lock screen. 36 | 37 | Do not let websites provide locally relevant content by accessing my language 38 | Enable to prevent websites from accessing your language. 39 | 40 | Show reminders and incoming VoIP calls on the lock screen 41 | Enable or disable reminders and incoming VoIP calls notifications on the lock screen. 42 | 43 | Prevent Windows Malicious Software Removal Tool from installing 44 | Enable this setting to prevent Malicious Software Removal Tool from installing. 45 | 46 | Prevent Windows Malicious Software Removal Tool from phoning home 47 | If you enable this setting, the tool will not report infection information back to Microsoft and the infection-reporting component of the tool will be disabled. 48 | 49 | Messaging cloud synchronization 50 | Enable to turn on Messaging cloud synchronization. 51 | 52 | Disable to turn off Messaging cloud synchronization. 53 | 54 | Inking and Typing data collection 55 | Enable to turn on Inking and Typing data collection. 56 | 57 | Disable to turn off Inking and Typing data collection. 58 | 59 | Enable or disable Tailored Experiences with Diagnostic Data 60 | Enable or disable diagnostic data sending for tailored experiences. 61 | 62 | 63 | Disable Security and Maintenance notifications 64 | If you enable this policy setting, built in security and maintenance notifications will not be displayed in Action Center. 65 | 66 | If you do not configure or disable this policy setting security and maintenance notifications will be enabled in Action Center. 67 | 68 | Disable OneDrive notifications 69 | If you enable this policy setting, OneDrive notifications will not be displayed in Action Center. 70 | 71 | If you do not configure or disable this policy setting OneDrive notifications will be enabled in Action Center. 72 | 73 | Disable Photos notifications 74 | If you enable this policy setting, Photos notifications will not be displayed in Action Center. 75 | 76 | If you do not configure or disable this policy setting Photos notifications will be enabled in Action Center. 77 | 78 | Disable Windows Store notifications 79 | If you enable this policy setting, Windows Store notifications will not be displayed in Action Center. 80 | 81 | If you do not configure or disable this policy setting Windows Store notifications will be enabled in Action Center. 82 | 83 | Disable Windows Suggested notifications 84 | If you enable this policy setting, Windows Suggested notifications will not be displayed in Action Center. 85 | 86 | If you do not configure or disable this policy setting Windows Suggested notifications will be enabled in Action Center. 87 | 88 | Disable Windows Calendar notifications 89 | If you enable this policy setting, Windows Calendar notifications will not be displayed in Action Center. 90 | 91 | If you do not configure or disable this policy setting Windows Calendar notifications will be enabled in Action Center. 92 | 93 | Disable Cortana notifications 94 | If you enable this policy setting, Windows Calendar notifications will not be displayed in Action Center. 95 | 96 | If you do not configure or disable this policy setting Windows Calendar notifications will be enabled in Action Center. 97 | 98 | Disable Windows Mail notifications 99 | If you enable this policy setting, Windows Mail notifications will not be displayed in Action Center. 100 | 101 | If you do not configure or disable this policy setting Windows Mail notifications will be enabled in Action Center. 102 | 103 | Disable Windows Edge notifications 104 | If you enable this policy setting, Windows Edge notifications will not be displayed in Action Center. 105 | 106 | If you do not configure or disable this policy setting Windows Edge notifications will be enabled in Action Center. 107 | 108 | Disable Windows Audio notifications 109 | If you enable this policy setting, Windows Audio notifications will not be displayed in Action Center. 110 | 111 | If you do not configure or disable this policy setting Windows Audio notifications will be enabled in Action Center. 112 | 113 | Disable Windows Autoplay notifications 114 | If you enable this policy setting, Windows Autoplay notifications will not be displayed in Action Center. 115 | 116 | If you do not configure or disable this policy setting Windows Autoplay notifications will be enabled in Action Center. 117 | 118 | Disable Battery Saver notifications 119 | If you enable this policy setting, Battery Saver notifications will not be displayed in Action Center. 120 | 121 | If you do not configure or disable this policy setting Battery Saver notifications will be enabled in Action Center. 122 | 123 | Disable Windows Bitlocker notifications 124 | If you enable this policy setting, Windows Bitlocker notifications will not be displayed in Action Center. 125 | 126 | If you do not configure or disable this policy setting Windows Bitlocker notifications will be enabled in Action Center. 127 | 128 | Disable News notifications 129 | If you enable this policy setting, News notifications will not be displayed in Action Center. 130 | 131 | If you do not configure or disable this policy setting News notifications will be enabled in Action Center. 132 | 133 | Disable Settings notifications 134 | If you enable this policy setting, Settings notifications will not be displayed in Action Center. 135 | 136 | If you do not configure or disable this policy setting Settings notifications will be enabled in Action Center. 137 | 138 | Disable Tablet mode notifications 139 | If you enable this policy setting, Tablet mode notifications will not be displayed in Action Center. 140 | 141 | If you do not configure or disable this policy setting Tablet mode notifications will be enabled in Action Center. 142 | 143 | Disable VPN notifications 144 | If you enable this policy setting, VPN notifications will not be displayed in Action Center. 145 | 146 | If you do not configure or disable this policy setting VPN notifications will be enabled in Action Center. 147 | 148 | Disable Windows Hello notifications 149 | If you enable this policy setting, Windows Hello notifications will not be displayed in Action Center. 150 | 151 | If you do not configure or disable this policy setting Windows Hello notifications will be enabled in Action Center. 152 | 153 | Disable Wireless notifications 154 | If you enable this policy setting, Wireless notifications will not be displayed in Action Center. 155 | 156 | If you do not configure or disable this policy setting Wireless notifications will be enabled in Action Center. 157 | 158 | Custom policy for Windows 10 build 1809. 159 | Action Center notifications 160 | Custom policy for Windows 10 build 1809. 161 | 162 | 163 | -------------------------------------------------------------------------------- /Files/GroupPolicy/PolicyDefinitions/en-US/mozilla.adml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Mozilla 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Files/GroupPolicy/PolicyDefinitions/es-ES/mozilla.adml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Mozilla 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Files/GroupPolicy/PolicyDefinitions/fr-FR/mozilla.adml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Mozilla 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Files/GroupPolicy/PolicyDefinitions/it-IT/mozilla.adml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Mozilla 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Files/GroupPolicy/PolicyDefinitions/mozilla.admx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Files/GroupPolicy/securityconfig.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Thdub/Optimize_NextGen/5e7d58cd166176f152cadccfc6f83034e069a3f0/Files/GroupPolicy/securityconfig.cfg -------------------------------------------------------------------------------- /Files/Scripts/GroupPolicy/Reset Group Policy.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | C:\Windows\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || goto :No_Admin 3 | 4 | :: Set variables 5 | set "colors=blue=,green=,red=,yellow=,white= 6 | set "%colors:,=" & set "%" 7 | set "hide_cursor=[?25l" 8 | set "show_cursor=[?25h" 9 | set "yes=[?25lYes" 10 | set "no=[?25lNo" 11 | set "done=[?25lDone." 12 | set "User_Tmp_Folder=%systemdrive%\Users\%username%\AppData\Local\Temp" 13 | set "windir=C:\Windows" 14 | set "Backup=" 15 | 16 | :: Titlebar 17 | echo %hide_cursor%%white%]0;Reset Group Policy Settings& cls 18 | 19 | :: 1. Change folder attributes 20 | attrib -h -s "%windir%\system32\GroupPolicy" 21 | 22 | :: 2. Backup choice 23 | nul 2>&1 25 | if errorlevel 2 ( 26 | echo %no% 27 | goto :Reset_GPO 28 | ) 29 | echo %yes%&set "Backup=yes" 30 | nul 2>&1 33 | mkdir "%~dp0..\..\..\Backup\GroupPolicy Backup\Local Policy Export" >nul 2>&1 34 | REM Backup in date folder 35 | set "FolderDate=%Date:~0,2%-%Date:~3,2%-%Date:~6,4%" 36 | robocopy "%windir%\system32\GroupPolicy" "%~dp0..\..\..\Backup\GroupPolicy Backup\Current GPO\%FolderDate%\GroupPolicy" *.pol *.bak /is /it /S >nul 2>&1 37 | REM LGPO full backup 38 | "%~dp0..\..\..\Files\Utilities\LGPO.exe" /b "%~dp0..\..\..\Backup\GroupPolicy Backup\Local Policy Export" /n "Local Policy Backup" /q >nul 2>&1 39 | echo %done% 40 | 41 | :: 3. Remove Group Policy files 42 | :Reset_GPO 43 | nul 2>&1 45 | move /y "%windir%\system32\GroupPolicy\User\registry.pol" "%windir%\system32\GroupPolicy\User\registry.bak" >nul 2>&1 46 | echo %done%& echo: 47 | 48 | :: 4. Group Policy Security settings choice 49 | nul 2>&1 51 | if errorlevel 2 ( echo %no%& echo: & goto :GP_Update ) 52 | if errorlevel 1 ( echo %yes% ) 53 | REM Reset Group Policy Security Settings 54 | cd /d "%User_Tmp_Folder%" 55 | secedit /configure /cfg "%windir%\inf\defltbase.inf" /db defltbase.sdb 56 | del /F /Q /S "defltbase.sdb" "defltbase.jfm" >nul 2>&1 57 | echo %yellow%The task has completed.%white% 58 | echo:  59 | 60 | :: 5. Group Policy Update 61 | :GP_Update 62 | nul 2>&1 64 | echo %done% 65 | echo: 66 | 67 | :: 6. Restore folder attributes 68 | attrib +h +r +s "%windir%\system32\GroupPolicy" 69 | 70 | :: 7. Inform user 71 | if "%backup%"=="yes" ( echo %yellow%Your Group Policy settings have been backed-up and reset.) else ( echo %yellow%Your Group Policy settings have been reset.) 72 | echo Note:%white% Initial Group Policy files have been renamed from registry.pol to registry.bak 73 | echo: 74 | echo You might have to restart your computer for all settings to be effective. 75 | 76 | :: 8. Restart choice 77 | nul 2>&1 79 | if errorlevel 2 ( echo %no%& echo: & goto :PAUSE_BEFORE_EXIT ) 80 | if errorlevel 1 ( echo %yes%& goto :Restart_Computer ) 81 | echo: 82 | 83 | :PAUSE_BEFORE_EXIT 84 | nul 2>&1 86 | exit /b 87 | 88 | :Restart_Computer 89 | echo: 90 | setlocal EnableDelayedExpansion 91 | for /F %%a in ('copy /Z "%~f0" nul') do set "CR=%%a" 92 | for /L %%n in (6 -1 1) do ( 93 | nul 95 | ) 96 | "%windir%\System32\cmd.exe" /c shutdown.exe /r /f /t 00 97 | exit /b 98 | 99 | :No_Admin 100 | echo You must have administrator rights to run this script. 101 | nul 103 | goto :eof 104 | -------------------------------------------------------------------------------- /Files/Scripts/GroupPolicy/Restore Group Policy Settings from Backup.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | C:\Windows\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || goto :No_Admin 3 | 4 | :: Set variables 5 | set "colors=blue=,green=,red=,yellow=,white= 6 | set "%colors:,=" & set "%" 7 | set "hide_cursor=[?25l" 8 | set "show_cursor=[?25h" 9 | set "yes=[?25lYes" 10 | set "no=[?25lNo" 11 | set "done=[?25lDone." 12 | set "User_Tmp_Folder=%systemdrive%\Users\%username%\AppData\Local\Temp" 13 | set "windir=C:\Windows" 14 | 15 | :: Titlebar 16 | echo %hide_cursor%%white%]0;Restore Group Policy Settings from Backup& cls 17 | 18 | :: Start when you're ready. 19 | nul 2>&1 21 | cls 22 | 23 | :: 1. Change folder attributes 24 | attrib -h -s "%windir%\system32\GroupPolicy" 25 | 26 | :: 2. Backup choice 27 | nul 2>&1 29 | if errorlevel 2 ( 30 | echo %no% 31 | goto :Rename_GPO_Files 32 | ) 33 | echo %yes% 34 | nul 2>&1 37 | mkdir "%~dp0..\..\..\Backup\GroupPolicy Backup\Local Policy Export" >nul 2>&1 38 | REM Backup in date folder 39 | set "FolderDate=%Date:~0,2%-%Date:~3,2%-%Date:~6,4%" 40 | robocopy "%windir%\system32\GroupPolicy" "%~dp0..\..\..\Backup\GroupPolicy Backup\Current GPO\%FolderDate%\GroupPolicy" *.pol *.bak /is /it /S >nul 2>&1 41 | REM LGPO full backup 42 | "%~dp0..\..\..\Files\Utilities\LGPO.exe" /b "%~dp0..\..\..\Backup\GroupPolicy Backup\Local Policy Export" /n "Local Policy Backup" /q >nul 2>&1 43 | echo %done% 44 | 45 | :: 3. Remove Group Policy files 46 | :Rename_GPO_Files 47 | nul 2>&1 ) 50 | if exist "%windir%\system32\GroupPolicy\User\registry.bak" ( move /y "%windir%\system32\GroupPolicy\User\registry.bak" "%windir%\system32\GroupPolicy\User\registry.bak_bak" >nul 2>&1 ) 51 | cd /d "%windir%\system32\GroupPolicy" 52 | for /r %%a in (*.pol) do ( move /y "%%a" "%%~dpna.bak" >nul 2>&1 ) 53 | echo %done%& echo: 54 | 55 | :: 4. Restore backup 56 | REM Restore from backup folder 57 | nul 2>&1 61 | for /r %%a in (*.bak_bak) do ( del /F /Q /S "%%a" >nul 2>&1 ) 62 | echo %done% 63 | echo %yellow%Group Policy settings restored from backup folder.%white%& echo: 64 | goto :Task_Success 65 | ) 66 | REM Restore from .bak 67 | if exist "%windir%\system32\GroupPolicy\Machine\registry.bak_bak" ( 68 | cd "%windir%\system32\GroupPolicy" 69 | for /r %%a in (*.bak_bak) do ( move /y "%%a" "%%~dpna.pol" >nul 2>&1 ) 70 | echo %done% 71 | echo Backup folder not found: %yellow%Group Policy settings restored from registry.bak files.%white%& echo: 72 | goto :Task_Success 73 | ) 74 | REM Restore failed 75 | goto :Task_Failed 76 | 77 | :: 5. Inform user 78 | :Task_Failed 79 | echo %red%Group Policy backup not found.%white% 80 | echo %yellow%Restore operation failed.%white%& echo: 81 | cd "%windir%\system32\GroupPolicy" 82 | for /r %%a in (*.bak) do ( move /y "%%a" "%%~dpna.pol" >nul 2>&1 ) 83 | for /r %%a in (*.bak_bak) do ( del /F /Q /S "%%a" >nul 2>&1 ) 84 | nul 2>&1 86 | if errorlevel 2 ( echo %no%& echo: & call :GP_Update & goto :PAUSE_BEFORE_EXIT ) 87 | if errorlevel 1 ( echo %yes%& call :Reset_GPO ) 88 | exit /b 89 | ) 90 | 91 | :Task_Success 92 | call :GP_Update 93 | echo %yellow%Your Group Policy settings have been restored. 94 | echo Note:%white% Initial Group Policy files have been renamed from registry.pol to registry.bak 95 | echo: 96 | echo You might have to restart your computer for all settings to be effective. 97 | 98 | :: 6. Restart choice 99 | nul 2>&1 101 | if errorlevel 2 ( echo %no%& echo: & goto :PAUSE_BEFORE_EXIT ) 102 | if errorlevel 1 ( echo %yes%& goto :Restart_Computer ) 103 | echo: 104 | 105 | :PAUSE_BEFORE_EXIT 106 | nul 2>&1 108 | exit /b 109 | 110 | :Restart_Computer 111 | echo: 112 | setlocal EnableDelayedExpansion 113 | for /F %%a in ('copy /Z "%~f0" nul') do set "CR=%%a" 114 | for /L %%n in (6 -1 1) do ( 115 | nul 117 | ) 118 | "%windir%\System32\cmd.exe" /c shutdown.exe /r /f /t 00 119 | exit /b 120 | 121 | :GP_Update 122 | nul 124 | echo %done% 125 | REM Restore folder attributes 126 | attrib +h +r +s "%windir%\system32\GroupPolicy" 127 | echo: 128 | goto :eof 129 | 130 | :Reset_GPO 131 | :: Titlebar 132 | echo %hide_cursor%%white%]0;Reset Group Policy Settings& cls 133 | REM Trick to call second batch at :Reset_GPO label, taking advantage of strange goto behavior and so not using call here. 134 | "%~dp0Reset Group Policy.bat" 135 | exit /b 136 | 137 | :No_Admin 138 | echo You must have administrator rights to run this script. 139 | nul 141 | goto :eof 142 | -------------------------------------------------------------------------------- /Files/Scripts/PowerManagement/PowerManagementNIC.ps1: -------------------------------------------------------------------------------- 1 | Param( 2 | [parameter(Mandatory=$false)] 3 | [string]$Script_Version 4 | ) 5 | 6 | # Custom Title 7 | $host.ui.RawUI.WindowTitle = "Optimize NextGen $Script_Version | Powershell Script" 8 | 9 | # Start log 10 | Start-Transcript -Path "$env:TEMP\SettingsBackup\Logs\PowerManagementNIC.log" -Append | out-null 11 | 12 | $intNICid=0; do 13 | { 14 | # Read network adapter properties 15 | $objNICproperties = (Get-ItemProperty -Path ("HKLM:\SYSTEM\CurrentControlSet\Control\Class\{0}\{1}" -f "{4D36E972-E325-11CE-BFC1-08002BE10318}", ( "{0:D4}" -f $intNICid)) -ErrorAction SilentlyContinue) 16 | 17 | # Determine if the Network adapter index exists 18 | If ($objNICproperties) 19 | { 20 | # Filter network adapters 21 | If (($objNICproperties."*ifType" -eq 6 -or $objNICproperties."*ifType" -eq 71 -or $objNICproperties."*ifType" -eq 243 -or $objNICproperties."*ifType" -eq 244) -and 22 | ($objNICproperties.DeviceInstanceID -notlike "ROOT\*") -and 23 | ($objNICproperties.DeviceInstanceID -notlike "SW\*") -and 24 | ($objNICproperties.DeviceInstanceID -notlike "*vwifimp_wfd*") 25 | ) 26 | { 27 | 28 | # Read hardware properties 29 | $objHardwareProperties = (Get-ItemProperty -Path ("HKLM:\SYSTEM\CurrentControlSet\Enum\{0}" -f $objNICproperties.DeviceInstanceID) -ErrorAction SilentlyContinue) 30 | If ($objHardwareProperties.FriendlyName) 31 | { $strNICDisplayName = $objHardwareProperties.FriendlyName } 32 | else 33 | { $strNICDisplayName = $objNICproperties.DriverDesc } 34 | 35 | # Read Network properties 36 | $objNetworkProperties = (Get-ItemProperty -Path ("HKLM:\SYSTEM\CurrentControlSet\Control\Network\{0}\{1}\Connection" -f "{4D36E972-E325-11CE-BFC1-08002BE10318}", $objNICproperties.NetCfgInstanceId) -ErrorAction SilentlyContinue) 37 | 38 | # Inform user 39 | Write-Host -n -f White " ID : "; Write-Host -f Yellow ("{0:D4}" -f $intNICid) 40 | Write-Host -n -f White " Network: "; Write-Host $objNetworkProperties.Name 41 | Write-Host -n -f White " NIC : "; Write-Host $strNICDisplayName 42 | 43 | # Report action 44 | Write-Host -n -f White " Actions: "; Write-Host -f Green ("- Power saving disabled") 45 | 46 | #Disable power saving 47 | Set-ItemProperty -Path ("HKLM:\SYSTEM\CurrentControlSet\Control\Class\{0}\{1}" -f "{4D36E972-E325-11CE-BFC1-08002BE10318}", ( "{0:D4}" -f $intNICid)) -Name "PnPCapabilities" -Value "24" -Type DWord 48 | } 49 | } 50 | # Next NIC ID 51 | $intNICid+=1 52 | } while ($intNICid -lt 255) 53 | 54 | # Stop log 55 | Stop-Transcript | out-null 56 | -------------------------------------------------------------------------------- /Files/Scripts/PowerManagement/PowerManagementUSB.ps1: -------------------------------------------------------------------------------- 1 | Param( 2 | [parameter(Mandatory=$false)] 3 | [string]$Script_Version 4 | ) 5 | 6 | # Custom Title 7 | $host.ui.RawUI.WindowTitle = "Optimize NextGen $Script_Version | Powershell Script" 8 | 9 | # Start log 10 | Start-Transcript -Path "$env:TEMP\SettingsBackup\Logs\PowerManagementUSB.log" -Append | out-null 11 | 12 | # Start process for usbhubs 13 | $hubs = Get-WmiObject Win32_USBHub 14 | $powerMgmt = Get-WmiObject MSPower_DeviceEnable -Namespace root\wmi 15 | foreach ($p in $powerMgmt) 16 | { 17 | $IN = $p.InstanceName.ToUpper() 18 | foreach ($h in $hubs) 19 | { 20 | $PNPDI = $h.PNPDeviceID 21 | if ($IN -like "*$PNPDI*") 22 | { 23 | $p.enable = $False 24 | $p.psbase.put() 25 | } 26 | } 27 | } 28 | 29 | # Stop log 30 | Stop-Transcript | out-null 31 | -------------------------------------------------------------------------------- /Files/Scripts/RegistryTweaks/Registry Tweaks_Restore.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | C:\Windows\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || goto :No_Admin 3 | 4 | :: Set variables 5 | set "colors=blue=,green=,red=,yellow=,white= 6 | set "%colors:,=" & set "%" 7 | set "hide_cursor=[?25l" 8 | set "show_cursor=[?25h" 9 | set "yes=[?25lYes" 10 | set "no=[?25lNo" 11 | set "done=[?25lDone." 12 | 13 | :: Titlebar 14 | echo %hide_cursor%%white%]0;Restore Registry Tweaks to Default Value& cls 15 | 16 | :: Start when you're ready. 17 | nul 2>&1 19 | 20 | :: Start Process 21 | cls 22 | REM PRIVACY TWEAKS 23 | nul 2>&1 26 | REM Send Do Not Track requests 27 | reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main" /v "DoNotTrack" /t REG_DWORD /d "0" /f >nul 2>&1 28 | REM Optimize taskbar web search results for screen readers 29 | reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main" /v "OptimizeWindowsSearchResultsForScreenReaders" /t REG_DWORD /d "1" /f >nul 2>&1 30 | REM show search and sites suggestions as I type 31 | reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main" /v "ShowSearchSuggestionsGlobal" /t REG_DWORD /d "1" /f >nul 2>&1 32 | REM Save form entries 33 | reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main" /v "Use FormSuggest" /t REG_SZ /d "yes" /f >nul 2>&1 34 | REM Help protect me from malicious sites and downloads with Windows Defender SmartScreen 35 | reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d "1" /f >nul 2>&1 36 | REM Let sites save protected media licenses on my device 37 | reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Privacy" /v "EnableEncryptedMediaExtensions" /t REG_DWORD /d "1" /f >nul 2>&1 38 | REM Have Cortana assist me in Microsoft Edge 39 | reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ServiceUI" /v "EnableCortana" /t REG_DWORD /d "1" /f >nul 2>&1 40 | REM Show search history 41 | reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ServiceUI\ShowSearchHistory" /ve /t REG_DWORD /d "1" /f >nul 2>&1 42 | REM Patch NVIDIA telemetry leaks ( I don't restore default on purpose, go to hell NVIDIA ) 43 | reg query "HKCU\Software" | findstr /i "NVIDIA" >nul && ( reg add "HKCU\Software\NVIDIA Corporation\NVControlPanel2\Client" /v "OptInOrOutPreference" /t REG_DWORD /d "0" /f >nul 2>&1 ) 44 | REM Enable Game Mode 45 | reg add "HKCU\Software\Microsoft\GameBar" /v "AllowAutoGameMode" /t REG_DWORD /d "1" /f >nul 2>&1 46 | reg add "HKCU\Software\Microsoft\GameBar" /v "UseNexusForGameBarEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 47 | REM Turn on Game Bar Tips 48 | reg add "HKCU\Software\Microsoft\GameBar" /v "ShowStartupPanel" /t REG_DWORD /d "1" /f >nul 2>&1 49 | REM Turn on "Getting to know you" for inking and typing personalization 50 | reg add "HKCU\Software\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d "0" /f >nul 2>&1 51 | reg add "HKCU\Software\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /t REG_DWORD /d "0" /f >nul 2>&1 52 | reg add "HKCU\Software\Microsoft\InputPersonalization\TrainedDataStore" /v "HarvestContacts" /t REG_DWORD /d "1" /f >nul 2>&1 53 | reg add "HKCU\Software\Microsoft\Personalization\Settings" /v "AcceptedPrivacyPolicy" /t REG_DWORD /d "1" /f >nul 2>&1 54 | REM Send Microsoft info about how I write to help us improving typing and writing in the future 55 | reg add "HKCU\Software\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d "1" /f >nul 2>&1 56 | REM Enable Windows Feedback 57 | reg delete "HKCU\Software\Microsoft\Siuf\Rules" /v "NumberOfSIUFInPeriod" /f >nul 2>&1 58 | reg delete "HKCU\Software\Microsoft\Siuf\Rules" /v "PeriodInNanoSeconds" /f >nul 2>&1 59 | REM Turn on Location Service permission 60 | reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Sensor\Permissions\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v "SensorPermissionState" /t REG_DWORD /d "1" /f >nul 2>&1 61 | REM Enable unique ad-tracking ID token for relevant ads 62 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /t REG_DWORD /d "1" /f >nul 2>&1 63 | REM Set SmartScreen for Store apps 64 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d "1" /f >nul 2>&1 65 | REM Turn on share apps across devices 66 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /v "EnableRemoteLaunchToast" /t REG_DWORD /d "1" /f >nul 2>&1 67 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /v "RomeSdkChannelUserAuthzPolicy" /t REG_DWORD /d "1" /f >nul 2>&1 68 | REM ContentDeliveryManager settings (default value else causing crash) 69 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d "1" /f >nul 2>&1 70 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "FeatureManagementEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 71 | REM Disable Live Tiles 72 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "NoTileApplicationNotification" /t REG_DWORD /d "0" /f >nul 2>&1 73 | REM Enable OEM pre-installed apps 74 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OemPreInstalledAppsEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 75 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 76 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEverEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 77 | REM Lockscreen settings 78 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "RotatingLockScreenEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 79 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "RotatingLockScreenOverlayEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 80 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "RotatingLockScreenOverlayVisible" /t REG_DWORD /d "1" /f >nul 2>&1 81 | REM Enable automatically installating suggested apps 82 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 83 | REM Turn on "Get tips, tricks and suggestions as you use Windows" 84 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 85 | REM Enable automatic download of content, ads and suggestions 86 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "NoTileApplicationNotification" /f >nul 2>&1 87 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "RotatingLockScreenOverlayVisible" /f >nul 2>&1 88 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-202914Enabled" /f >nul 2>&1 89 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-280810Enabled" /f >nul 2>&1 90 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-280811Enabled" /f >nul 2>&1 91 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-280813Enabled" /f >nul 2>&1 92 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-280815Enabled" /f >nul 2>&1 93 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310091Enabled" /f >nul 2>&1 94 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310092Enabled" /f >nul 2>&1 95 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310093Enabled" /f >nul 2>&1 96 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-314559Enabled" /f >nul 2>&1 97 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-314563Enabled" /f >nul 2>&1 98 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338380Enabled" /f >nul 2>&1 99 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338381Enabled" /f >nul 2>&1 100 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338387Enabled" /f >nul 2>&1 101 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /f >nul 2>&1 102 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /f >nul 2>&1 103 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /f >nul 2>&1 104 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353694Enabled" /f >nul 2>&1 105 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353696Enabled" /f >nul 2>&1 106 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353698Enabled" /f >nul 2>&1 107 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /f >nul 2>&1 108 | REM Turn on Start Menu suggestions 109 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 110 | REM Allow dynamic ads 111 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\Subscriptions\314559" /v "AvailabilityForAllContentIds" /t REG_DWORD /d "1" /f >nul 2>&1 112 | REM Delivery Optimization settings: Act as a peercaching client for Windows Update 113 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization" /v "SystemSettingsDownloadMode" /t REG_DWORD /d "1" /f >nul 2>&1 114 | REM Sync with Devices 115 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\LooselyCoupled" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 116 | REM Let apps access diagnostic information 117 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{2297E4E2-5DBE-466D-A12B-0F8286F0D9CA}" /v "Value" /f >nul 2>&1 118 | REM Let apps access my notifications 119 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{52079E78-A92B-413F-B213-E8FE35712E72}" /v "Value" /f >nul 2>&1 120 | REM Let apps control radios 121 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{A8804298-2D5F-42E3-9531-9C8C39EB29CE}" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 122 | REM Enable Location 123 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 124 | REM Patch Explorer leaks 125 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSyncProviderNotifications" /t REG_DWORD /d "1" /f >nul 2>&1 126 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d "1" /f >nul 2>&1 127 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /t REG_DWORD /d "1" /f >nul 2>&1 128 | REM Add People icon on taskbar 129 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" /v "PeopleBand" /t REG_DWORD /d "1" /f >nul 2>&1 130 | REM Games settings 131 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v "AppCaptureEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 132 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v "AudioCaptureEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 133 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v "CursorCaptureEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 134 | REM Enable Windows Ink Workspace app suggestions 135 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\PenWorkspace" /v "PenWorkspaceAppSuggestionsEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 136 | REM Turn on notifications from apps and other senders 137 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v "ToastEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 138 | REM Enable Cortana and websearch 139 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 140 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "CanCortanaBeEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 141 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "DeviceHistoryEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 142 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "HasAboveLockTips" /t REG_DWORD /d "1" /f >nul 2>&1 143 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "HistoryViewEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 144 | REM Enable Sync 145 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync" /v "SyncPolicy" /t REG_DWORD /d "0" /f >nul 2>&1 146 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Accessibility" /v "Enabled" /t REG_DWORD /d "1" /f >nul 2>&1 147 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\BrowserSettings" /v "Enabled" /t REG_DWORD /d "1" /f >nul 2>&1 148 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Credentials" /v "Enabled" /t REG_DWORD /d "1" /f >nul 2>&1 149 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language" /v "Enabled" /t REG_DWORD /d "1" /f >nul 2>&1 150 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Personalization" /v "Enabled" /t REG_DWORD /d "1" /f >nul 2>&1 151 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Windows" /v "Enabled" /t REG_DWORD /d "1" /f >nul 2>&1 152 | REM Enable websearch in cortana 153 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Windows Search" /v "CortanaConsent" /t REG_DWORD /d "1" /f >nul 2>&1 154 | REM Games settings 155 | reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d "1" /f >nul 2>&1 156 | REM Patch Contacts leaks from personalization 157 | reg add "HKLM\SOFTWARE\Microsoft\Input\Settings" /v "HarvestContacts" /t REG_DWORD /d "1" /f >nul 2>&1 158 | REM Enable Bluetooth ads 159 | reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Bluetooth" /v "AllowAdvertising" /t REG_DWORD /d "1" /f >nul 2>&1 160 | reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Browser" /v "AllowAddressBarDropdown" /t REG_DWORD /d "1" /f >nul 2>&1 161 | REM Enable Experiments 162 | reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\System" /v "AllowExperimentation" /t REG_DWORD /d "1" /f >nul 2>&1 163 | REM Restore Windows Malware Removal Tool settings 164 | reg add "HKLM\SOFTWARE\Microsoft\RemovalTools\MpGears" /v "HeartbeatTrackingIndex" /t REG_DWORD /d "1" /f >nul 2>&1 165 | reg add "HKLM\SOFTWARE\Microsoft\RemovalTools\MpGears" /v "SpyNetReportingLocation" /t REG_SZ /d "1" /f >nul 2>&1 166 | REM Enable Speech models download 167 | reg add "HKLM\SOFTWARE\Microsoft\Speech_OneCore\Preferences" /v "ModelDownloadAllowed" /t REG_DWORD /d "1" /f >nul 2>&1 168 | REM Sensor permission 169 | reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v "SensorPermissionState" /t REG_DWORD /d "1" /f >nul 2>&1 170 | REM Enable and clear unique ad-tracking ID token 171 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /t REG_DWORD /d "1" /f >nul 2>&1 172 | reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Id" /f >nul 2>&1 173 | REM Allow App access 174 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appointments" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 175 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\broadFileSystemAccess" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 176 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\chat" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 177 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\contacts" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 178 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\documentsLibrary" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 179 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\email" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 180 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 181 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\phoneCallHistory" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 182 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\picturesLibrary" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 183 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 184 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userDataTasks" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 185 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\videosLibrary" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 186 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam" /v "Value" /t REG_SZ /d "Allow" /f >nul 2>&1 187 | REM Delivery Optimization settings, act as a peercaching client for Windows Update 188 | reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v "DODownloadMode" /f >nul 2>&1 189 | REM Allow device meta-data collection 190 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v "DeviceMetadataServiceURL" /t REG_SZ /d "1" /f >nul 2>&1 191 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /t REG_DWORD /d "0" /f >nul 2>&1 192 | REM Restore Smartscreen Admin requirement (Smartscreen is turned off by Group Policy) 193 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "RequireAdmin" /f >nul 2>&1 194 | REM Enable telemetry uploading (registry keys differ from Group Policy ones) 195 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d "1" /f >nul 2>&1 196 | reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d "1" /f >nul 2>&1 197 | REM More settings 198 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SecureAssessment" /v "AllowScreenMonitoring" /t REG_DWORD /d "1" /f >nul 2>&1 199 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SecureAssessment" /v "AllowTextSuggestions" /t REG_DWORD /d "1" /f >nul 2>&1 200 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SecureAssessment" /v "RequirePrinting" /t REG_DWORD /d "1" /f >nul 2>&1 201 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SmartGlass" /v "UserAuthPolicy" /t REG_DWORD /d "1" /f >nul 2>&1 202 | REM Enable Store automatic updates download 203 | reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /v "AutoDownload" /f >nul 2>&1 204 | REM Enable telemetry log events 205 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Application-Experience/Program-Telemetry" /v "Enabled" /t REG_DWORD /d "1" /f >nul 2>&1 206 | REM Enable remote Scripted Diagnostics Provider query 207 | reg add "HKLM\SOFTWARE\Microsoft\Windows\ScriptedDiagnosticsProvider\Policy" /v "EnableQueryRemoteServer" /t REG_DWORD /d "1" /f >nul 2>&1 208 | REM Enable remote Scheduled Diagnostics execution 209 | reg add "HKLM\SOFTWARE\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecution" /t REG_DWORD /d "1" /f >nul 2>&1 210 | REM Enable Windows Error Reporting 211 | reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d "0" /f >nul 2>&1 212 | reg delete "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v "DontSendAdditionalData" /f >nul 2>&1 213 | reg delete "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v "DontShowUI" /f >nul 2>&1 214 | reg delete "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v "LoggingDisabled" /f >nul 2>&1 215 | reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v "MachineID" /t REG_SZ /d "1" /f >nul 2>&1 216 | reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\WMR" /v "Disable" /t REG_DWORD /d "0" /f >nul 2>&1 217 | reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d "1" /f >nul 2>&1 218 | reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\Consent" /v "NewUserDefaultConsent" /t REG_DWORD /d "1" /f >nul 2>&1 219 | REM Allow Windows Defender data leaks 220 | reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Spynet" /v "SpyNetReporting" /t REG_DWORD /d "1" /f >nul 2>&1 221 | reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Spynet" /v "SpyNetReportingLocation" /t REG_MULTI_SZ /d "SOAP:https://wdcp.microsoft.com/WdCpSrvc.asmx\0SOAP:https://wdcpalt.microsoft.com/WdCpSrvc.asmx\0REST:https://wdcp.microsoft.com/wdcp.svc/submitReport\0REST:https://wdcpalt.microsoft.com/wdcp.svc/submitReport\0BOND:https://wdcp.microsoft.com/wdcp.svc/bond/submitreport\0BOND:https://wdcpalt.microsoft.com/wdcp.svc/bond/submitreport" /f >nul 2>&1 222 | reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d "1" /f >nul 2>&1 223 | REM Patch Windows SMB data leaks 224 | reg add "HKLM\SYSTEM\ControlSet001\Control\Lsa\MSV1_0" /v "RestrictReceivingNTLMTraffic" /t REG_DWORD /d "1" /f >nul 2>&1 225 | reg add "HKLM\SYSTEM\ControlSet002\Control\Lsa\MSV1_0" /v "RestrictReceivingNTLMTraffic" /t REG_DWORD /d "1" /f >nul 2>&1 226 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0" /v "RestrictReceivingNTLMTraffic" /t REG_DWORD /d "1" /f >nul 2>&1 227 | reg add "HKLM\SYSTEM\ControlSet001\Control\Lsa\MSV1_0" /v "RestrictSendingNTLMTraffic" /t REG_DWORD /d "1" /f >nul 2>&1 228 | reg add "HKLM\SYSTEM\ControlSet002\Control\Lsa\MSV1_0" /v "RestrictSendingNTLMTraffic" /t REG_DWORD /d "1" /f >nul 2>&1 229 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0" /v "RestrictSendingNTLMTraffic" /t REG_DWORD /d "1" /f >nul 2>&1 230 | reg add "HKLM\SYSTEM\ControlSet001\Services\LanmanServer\Parameters" /v "SMB1" /t REG_DWORD /d "1" /f >nul 2>&1 231 | reg add "HKLM\SYSTEM\ControlSet002\Services\LanmanServer\Parameters" /v "SMB1" /t REG_DWORD /d "1" /f >nul 2>&1 232 | reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "SMB1" /t REG_DWORD /d "1" /f >nul 2>&1 233 | REM Disable Remote Assistance 234 | reg add "HKLM\SYSTEM\ControlSet001\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d "1" /f >nul 2>&1 235 | reg add "HKLM\SYSTEM\ControlSet002\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d "1" /f >nul 2>&1 236 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v "fAllowToGetHelp" /t REG_DWORD /d "1" /f >nul 2>&1 237 | reg add "HKLM\SYSTEM\ControlSet001\Control\Remote Assistance" /v "fAllowFullControl" /t REG_DWORD /d "1" /f >nul 2>&1 238 | reg add "HKLM\SYSTEM\ControlSet002\Control\Remote Assistance" /v "fAllowFullControl" /t REG_DWORD /d "1" /f >nul 2>&1 239 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v "fAllowFullControl" /t REG_DWORD /d "1" /f >nul 2>&1 240 | REM Enable BluetoothSession AutoLogger 241 | reg add "HKLM\SYSTEM\ControlSet001\Control\WMI\Autologger\BluetoothSession" /v Start /t REG_DWORD /d "1" /f >nul 2>&1 242 | reg add "HKLM\SYSTEM\ControlSet002\Control\WMI\Autologger\BluetoothSession" /v Start /t REG_DWORD /d "1" /f >nul 2>&1 243 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\Autologger\BluetoothSession" /v Start /t REG_DWORD /d "1" /f >nul 2>&1 244 | REM Patch Link-local Multicast Name Resolution 245 | reg add "HKLM\SYSTEM\ControlSet001\Services\Dnscache\Parameters" /v "DisableParallelAandAAAA" /t REG_DWORD /d "0" /f >nul 2>&1 246 | reg add "HKLM\SYSTEM\ControlSet002\Services\Dnscache\Parameters" /v "DisableParallelAandAAAA" /t REG_DWORD /d "0" /f >nul 2>&1 247 | reg add "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" /v "DisableParallelAandAAAA" /t REG_DWORD /d "0" /f >nul 2>&1 248 | REM Enable Geolocation service 249 | reg add "HKLM\SYSTEM\ControlSet001\Services\lfsvc\Service\Configuration" /v "Status" /t REG_DWORD /d "1" /f >nul 2>&1 250 | reg add "HKLM\SYSTEM\ControlSet002\Services\lfsvc\Service\Configuration" /v "Status" /t REG_DWORD /d "1" /f >nul 2>&1 251 | reg add "HKLM\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration" /v "Status" /t REG_DWORD /d "1" /f >nul 2>&1 252 | REM Fully participate in IGMP 253 | reg add "HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters" /v "IGMPLevel" /t REG_DWORD /d "2" /f >nul 2>&1 254 | reg add "HKLM\SYSTEM\ControlSet002\Services\Tcpip\Parameters" /v "IGMPLevel" /t REG_DWORD /d "2" /f >nul 2>&1 255 | reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "IGMPLevel" /t REG_DWORD /d "2" /f >nul 2>&1 256 | REM Patch Web Proxy Auto Discovery 257 | netsh winhttp reset proxy >nul 2>&1 258 | reg add "HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters" /v "UseDomainNameDevolution" /t REG_DWORD /d "1" /f >nul 2>&1 259 | reg add "HKLM\SYSTEM\ControlSet002\Services\Tcpip\Parameters" /v "UseDomainNameDevolution" /t REG_DWORD /d "1" /f >nul 2>&1 260 | reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "UseDomainNameDevolution" /t REG_DWORD /d "1" /f >nul 2>&1 261 | REM Enable Teredo/IPv6 tunneling 262 | netsh int teredo set state enabled >nul 2>&1 263 | REM Turn on Tailored Experiences for current user 264 | reg add "HKU\%User_SID%\Software\Microsoft\Windows\CurrentVersion\Privacy" /v "TailoredExperiencesWithDiagnosticDataEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 265 | REM Prevent OneDrive to run at startup, again (preventive) 266 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "OneDrive" /f >nul 2>&1 267 | reg delete "HKU\%User_SID%\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "OneDrive" /f >nul 2>&1 268 | echo %done% 269 | echo %yellow%Privacy registry settings have been removed.%white% 270 | echo: 271 | REM PERFORMANCES TWEAKS 272 | nul 2>&1 275 | reg add "HKLM\SYSTEM\ControlSet002\Services\Netlogon\Parameters" /v "requiresignorseal" /t REG_DWORD /d "1" /f >nul 2>&1 276 | reg add "HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters" /v "requiresignorseal" /t REG_DWORD /d "1" /f >nul 2>&1 277 | reg add "HKLM\SYSTEM\ControlSet001\Services\Netlogon\Parameters" /v "requirestrongkey" /t REG_DWORD /d "1" /f >nul 2>&1 278 | reg add "HKLM\SYSTEM\ControlSet002\Services\Netlogon\Parameters" /v "requirestrongkey" /t REG_DWORD /d "1" /f >nul 2>&1 279 | reg add "HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters" /v "requirestrongkey" /t REG_DWORD /d "1" /f >nul 2>&1 280 | REM Wallpaper compression 281 | reg delete "HKCU\Control Panel\Desktop" /v "JPEGImportQuality" /f >nul 2>&1 282 | REM MenuShowDelay default delay value 283 | reg add "HKCU\Control Panel\Desktop" /v "MenuShowDelay" /t REG_SZ /d "400" /f >nul 2>&1 284 | REM Max 15 items allowed to Open with 285 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "MultipleInvokePromptMinimum" /f >nul 2>&1 286 | REM Add "-shortcut" to shortcut name at creation 287 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "link" /f >nul 2>&1 288 | REM Show advertising banner in Snipping Tool 289 | reg delete "HKCU\Software\Microsoft\Windows\TabletPC\Snipping Tool" /v "IsScreenSketchBannerExpanded" /f >nul 2>&1 290 | REM Default icons cache size 291 | reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "Max Cached Icons" /f >nul 2>&1 292 | REM Default programs startup delay 293 | reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v "StartupDelayInMSec" /f >nul 2>&1 294 | REM Show Insider page 295 | reg delete "HKLM\SOFTWARE\Microsoft\WindowsSelfHost\UI\Visibility" /v "HideInsiderPage" /f >nul 2>&1 296 | REM Disable long paths 297 | reg add "HKLM\SYSTEM\ControlSet001\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 298 | reg add "HKLM\SYSTEM\ControlSet002\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 299 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d "0" /f >nul 2>&1 300 | REM Memory Management (default value is set to 1 on Windows Sezver, to allow more cache for files servers: better to leave it to 0 if OS used as a workstation) 301 | if "%Win_Edition%"=="Windows Server 2019" ( 302 | reg add "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d "1" /f >nul 2>&1 303 | reg add "HKLM\SYSTEM\ControlSet002\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d "1" /f >nul 2>&1 304 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d "1" /f >nul 2>&1 305 | ) 306 | REM Prefetch parameters (Superfetch feature has been removed since v1809 anyway) 307 | reg delete "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableBootTrace" /f >nul 2>&1 308 | reg delete "HKLM\SYSTEM\ControlSet002\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableBootTrace" /f >nul 2>&1 309 | reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableBootTrace" /f >nul 2>&1 310 | reg delete "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /f >nul 2>&1 311 | reg delete "HKLM\SYSTEM\ControlSet002\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /f >nul 2>&1 312 | reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /f >nul 2>&1 313 | reg delete "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /f >nul 2>&1 314 | reg delete "HKLM\SYSTEM\ControlSet002\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /f >nul 2>&1 315 | reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /f >nul 2>&1 316 | REM Startup options 317 | REM Enable boot files defragmentation at startup 318 | reg add "HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction" /v "Enable" /t REG_SZ /d "Y" /f >nul 2>&1 319 | REM Enable updating Group Policy at startup 320 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "SynchronousMachineGroupPolicy" /t REG_DWORD /d "1" /f >nul 2>&1 321 | reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "SynchronousUserGroupPolicy" /t REG_DWORD /d "1" /f >nul 2>&1 322 | REM Enable creation of last known good configuration at startup 323 | reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "ReportBootOk" /t REG_SZ /d "1" /f >nul 2>&1 324 | REM Enable Windows logging system crash 325 | reg add "HKLM\SYSTEM\ControlSet001\Control\CrashControl" /v "LogEvent" /t REG_DWORD /d "1" /f >nul 2>&1 326 | reg add "HKLM\SYSTEM\ControlSet002\Control\CrashControl" /v "LogEvent" /t REG_DWORD /d "1" /f >nul 2>&1 327 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v "LogEvent" /t REG_DWORD /d "1" /f >nul 2>&1 328 | REM Enable the Disk Check when Windows starts 329 | reg add "HKLM\SYSTEM\ControlSet001\Control\Session Manager" /v "BootExecute" /t REG_MULTI_SZ /d "autocheck autochk *" /f >nul 2>&1 330 | reg add "HKLM\SYSTEM\ControlSet002\Control\Session Manager" /v "BootExecute" /t REG_MULTI_SZ /d "autocheck autochk *" /f >nul 2>&1 331 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "BootExecute" /t REG_MULTI_SZ /d "autocheck autochk *" /f >nul 2>&1 332 | REM Place Windows Kernel into RAM (default settings normally, not changed) 333 | reg add "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /t REG_DWORD /d "1" /f >nul 2>&1 334 | reg add "HKLM\SYSTEM\ControlSet002\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /t REG_DWORD /d "1" /f >nul 2>&1 335 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /t REG_DWORD /d "1" /f >nul 2>&1 336 | REM Shutdown options 337 | REM Default waiting time for processes to end after shutdown request 338 | reg add "HKCU\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "5000" /f >nul 2>&1 339 | REM Default waiting time for services to stop after shutdown request 340 | reg add "HKLM\SYSTEM\ControlSet001\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "5000" /f >nul 2>&1 341 | reg add "HKLM\SYSTEM\ControlSet002\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "5000" /f >nul 2>&1 342 | reg add "HKLM\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "5000" /f >nul 2>&1 343 | REM Additional Power Settings 344 | REM Enable hibernation and fast start 345 | reg add "HKLM\SYSTEM\ControlSet001\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 346 | reg add "HKLM\SYSTEM\ControlSet002\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 347 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 348 | reg add "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Power" /v "HiberbootEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 349 | reg add "HKLM\SYSTEM\ControlSet002\Control\Session Manager\Power" /v "HiberbootEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 350 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v "HiberbootEnabled" /t REG_DWORD /d "1" /f >nul 2>&1 351 | echo %done% 352 | echo %yellow%Performances registry settings have been restored to default value.%white% 353 | echo: 354 | nul 2>&1 356 | exit /b 357 | 358 | :No_Admin 359 | echo You must have administrator rights to run this script. 360 | nul 362 | goto :eof 363 | -------------------------------------------------------------------------------- /Files/Scripts/ScheduledTasks/ScheduledTasks.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | C:\Windows\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || goto :No_Admin 3 | 4 | :: Set variables 5 | set "colors=blue=,green=,red=,yellow=,white= 6 | set "%colors:,=" & set "%" 7 | set "hide_cursor=[?25l" 8 | set "show_cursor=[?25h" 9 | set "yes=[?25lYes" 10 | set "no=[?25lNo" 11 | set "done=[?25lDone." 12 | 13 | :: Titlebar 14 | echo %hide_cursor%%white%]0;Scheduled Tasks Optimization& cls 15 | 16 | :: Start when you're ready. 17 | nul 2>&1 19 | 20 | :: Start Process 21 | cls 22 | echo Setting tasks... 23 | nul 2>&1 25 | schtasks /Change /TN "Microsoft\Windows\AppID\VerifiedPublisherCertStoreCheck" /Disable >nul 2>&1 26 | schtasks /Change /TN "Microsoft\Windows\Application Experience\AitAgent" /Disable >nul 2>&1 27 | schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable >nul 2>&1 28 | schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable >nul 2>&1 29 | schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Disable >nul 2>&1 30 | schtasks /Change /TN "Microsoft\Windows\ApplicationData\AppUriVerifierDaily" /Disable >nul 2>&1 31 | schtasks /Change /TN "Microsoft\Windows\ApplicationData\AppUriVerifierInstall" /Disable >nul 2>&1 32 | schtasks /Change /TN "Microsoft\Windows\ApplicationData\DsSvcCleanup" /Disable >nul 2>&1 33 | schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable >nul 2>&1 34 | schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable >nul 2>&1 35 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\BthSQM" /Disable >nul 2>&1 36 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable >nul 2>&1 37 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\HypervisorFlightingTask" /Disable >nul 2>&1 38 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable >nul 2>&1 39 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader" /Disable >nul 2>&1 40 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable >nul 2>&1 41 | schtasks /Change /TN "Microsoft\Windows\Device information\Device" /Disable >nul 2>&1 42 | schtasks /Change /TN "Microsoft\Windows\Device Setup\Metadata Refresh" /Disable >nul 2>&1 43 | schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable >nul 2>&1 44 | schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver" /Disable >nul 2>&1 45 | schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /Disable >nul 2>&1 46 | schtasks /Change /TN "Microsoft\Windows\End Of Support\Notify1" /Disable >nul 2>&1 47 | schtasks /Change /TN "Microsoft\Windows\End Of Support\Notify2" /Disable >nul 2>&1 48 | schtasks /Change /TN "Microsoft\Windows\ErrorDetails\EnableErrorDetailsUpdate" /Disable >nul 2>&1 49 | schtasks /Change /TN "Microsoft\Windows\ErrorDetails\ErrorDetailsUpdate" /Disable >nul 2>&1 50 | schtasks /Change /TN "Microsoft\Windows\Feedback\Siuf\DmClient" /Disable >nul 2>&1 51 | schtasks /Change /TN "Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" /Disable >nul 2>&1 52 | schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Disable >nul 2>&1 53 | schtasks /Change /TN "Microsoft\Windows\Flighting\OneSettings\RefreshCache" /Disable >nul 2>&1 54 | schtasks /Change /TN "Microsoft\Windows\LanguageComponentsInstaller\Installation" /Disable >nul 2>&1 55 | schtasks /Change /TN "Microsoft\Windows\LanguageComponentsInstaller\ReconcileLanguageResources" /Disable >nul 2>&1 56 | schtasks /Change /TN "Microsoft\Windows\Location\Notifications" /Disable >nul 2>&1 57 | schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable >nul 2>&1 58 | schtasks /Change /TN "Microsoft\Windows\Media Center\ActivateWindowsSearch" /Disable >nul 2>&1 59 | schtasks /Change /TN "Microsoft\Windows\Media Center\ConfigureInternetTimeService" /Disable >nul 2>&1 60 | schtasks /Change /TN "Microsoft\Windows\Media Center\DispatchRecoveryTasks" /Disable >nul 2>&1 61 | schtasks /Change /TN "Microsoft\Windows\Media Center\ehDRMInit" /Disable >nul 2>&1 62 | schtasks /Change /TN "Microsoft\Windows\Media Center\InstallPlayReady" /Disable >nul 2>&1 63 | schtasks /Change /TN "Microsoft\Windows\Media Center\mcupdate" /Disable >nul 2>&1 64 | schtasks /Change /TN "Microsoft\Windows\Media Center\MediaCenterRecoveryTask" /Disable >nul 2>&1 65 | schtasks /Change /TN "Microsoft\Windows\Media Center\ObjectStoreRecoveryTask" /Disable >nul 2>&1 66 | schtasks /Change /TN "Microsoft\Windows\Media Center\OCURActivate" /Disable >nul 2>&1" /Disable >nul 2>&1 67 | schtasks /Change /TN "Microsoft\Windows\Media Center\OCURDiscovery" /Disable >nul 2>&1 68 | schtasks /Change /TN "Microsoft\Windows\Media Center\PBDADiscovery" /Disable >nul 2>&1 69 | schtasks /Change /TN "Microsoft\Windows\Media Center\PBDADiscoveryW1" /Disable >nul 2>&1 70 | schtasks /Change /TN "Microsoft\Windows\Media Center\PBDADiscoveryW2" /Disable >nul 2>&1 71 | schtasks /Change /TN "Microsoft\Windows\Media Center\PvrRecoveryTask" /Disable >nul 2>&1 72 | schtasks /Change /TN "Microsoft\Windows\Media Center\PvrScheduleTask" /Disable >nul 2>&1 73 | schtasks /Change /TN "Microsoft\Windows\Media Center\RegisterSearch" /Disable >nul 2>&1 74 | schtasks /Change /TN "Microsoft\Windows\Media Center\ReindexSearchRoot" /Disable >nul 2>&1 75 | schtasks /Change /TN "Microsoft\Windows\Media Center\SqlLiteRecoveryTask" /Disable >nul 2>&1 76 | schtasks /Change /TN "Microsoft\Windows\Media Center\UpdateRecordPath" /Disable >nul 2>&1 77 | schtasks /Change /TN "Microsoft\Windows\Mobile Broadband Accounts\MNO Metadata Parser" /Disable >nul 2>&1 78 | schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable >nul 2>&1 79 | schtasks /Change /TN "Microsoft\Windows\NlaSvc\WiFiTask" /Disable >nul 2>&1 80 | schtasks /Change /TN "Microsoft\Windows\PerfTrack\BackgroundConfigSurveyor" /Disable >nul 2>&1 81 | schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable >nul 2>&1 82 | schtasks /Change /TN "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /Disable >nul 2>&1 83 | schtasks /Change /TN "Microsoft\Windows\PushToInstall\LoginCheck" /Disable >nul 2>&1 84 | schtasks /Change /TN "Microsoft\Windows\PushToInstall\Registration" /Disable >nul 2>&1 85 | schtasks /Change /TN "Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask" /Disable >nul 2>&1 86 | schtasks /Change /TN "Microsoft\Windows\RemovalTools\MRT_ERROR_HB" /Disable >nul 2>&1 87 | schtasks /Change /TN "Microsoft\Windows\SettingSync\BackgroundUploadTask" /Disable >nul 2>&1 88 | schtasks /Change /TN "Microsoft\Windows\SettingSync\BackupTask" /Disable >nul 2>&1 89 | schtasks /Change /TN "Microsoft\Windows\SettingSync\NetworkStateChangeTask" /Disable >nul 2>&1 90 | schtasks /Change /TN "Microsoft\Windows\Setup\gwx\launchtrayprocess" /Disable >nul 2>&1 91 | schtasks /Change /TN "Microsoft\Windows\Setup\gwx\refreshgwxconfig" /Disable >nul 2>&1 92 | schtasks /Change /TN "Microsoft\Windows\Setup\gwx\refreshgwxconfigandcontent" /Disable >nul 2>&1 93 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\Logon-10s" /Disable >nul 2>&1 94 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\Logon-5d" /Disable >nul 2>&1 95 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\MachineUnlock-10s" /Disable >nul 2>&1 96 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\MachineUnlock-5d" /Disable >nul 2>&1 97 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\OutOfIdle-10s" /Disable >nul 2>&1 98 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\OutOfIdle-5d" /Disable >nul 2>&1 99 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\OutOfSleep-10s" /Disable >nul 2>&1 100 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\OutOfSleep-5d" /Disable >nul 2>&1 101 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\refreshgwxconfig-B" /Disable >nul 2>&1 102 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\Telemetry-4xd" /Disable >nul 2>&1 103 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\Time-10s" /Disable >nul 2>&1 104 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\Time-5d" /Disable >nul 2>&1 105 | schtasks /Change /TN "Microsoft\Windows\Shell\CreateObjectTask" /Disable >nul 2>&1 106 | schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitor" /Disable >nul 2>&1 107 | schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitorToastTask" /Disable >nul 2>&1 108 | schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefresh" /Disable >nul 2>&1 109 | schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefreshTask" /Disable >nul 2>&1 110 | schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /Disable >nul 2>&1 111 | schtasks /Change /TN "Microsoft\Windows\SideShow\SessionAgent" /Disable >nul 2>&1 112 | schtasks /Change /TN "Microsoft\Windows\SideShow\SystemDataProviders" /Disable >nul 2>&1 113 | schtasks /Change /TN "Microsoft\Windows\Speech\SpeechModelDownloadTask" /Disable >nul 2>&1 114 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\Reboot" /Disable >nul 2>&1 115 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\Schedule Scan" /Disable >nul 2>&1 116 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\Schedule Scan Static Task" /Disable >nul 2>&1 117 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_Broker_Display" /Disable >nul 2>&1 118 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_RebootDisplay" /Disable >nul 2>&1 119 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_UxBroker" /Disable >nul 2>&1 120 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_UxBroker_Display" /Disable >nul 2>&1 121 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_UxBroker_ReadyToReboot" /Disable >nul 2>&1 122 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_UxBroker_WnfDisplay" /Disable >nul 2>&1 123 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_WnfDisplay" /Disable >nul 2>&1 124 | schtasks /Change /TN "Microsoft\Windows\UPnP\UPnPHostConfig" /Disable >nul 2>&1 125 | schtasks /Change /TN "Microsoft\Windows\User Profile Service\HiveUploadTask" /Disable >nul 2>&1 126 | schtasks /Change /TN "Microsoft\Windows\WaaSMedic\PerformRemediation" /Disable >nul 2>&1 127 | schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable >nul 2>&1 128 | schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable >nul 2>&1 129 | schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /Disable >nul 2>&1 130 | schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\sih" /Disable >nul 2>&1 131 | schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTask" /Disable >nul 2>&1 132 | schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTaskLogon" /Disable >nul 2>&1 133 | schtasks /Change /TN "NvTmMon_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Disable >nul 2>&1 134 | schtasks /Change /TN "NvTmRep" /Disable >nul 2>&1 135 | schtasks /Change /TN "NvTmRep_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Disable >nul 2>&1 136 | schtasks /Change /TN "NvTmRepCR1_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Disable >nul 2>&1 137 | schtasks /Change /TN "NvTmRepCR2_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Disable >nul 2>&1 138 | schtasks /Change /TN "NvTmRepCR3_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Disable >nul 2>&1 139 | schtasks /Change /TN "NvTmRepOnLogon_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Disable >nul 2>&1 140 | for /f "tokens=1,2 delims==" %%s IN ('wmic path win32_useraccount where name^='%username%' get sid /value ^| find /i "SID"') do set "UserSID=%%t" 141 | schtasks /Change /TN "\OneDrive Standalone Update Task-%UserSID%" /Disable >nul 2>&1 142 | :: Delete Tasks 143 | schtasks /Delete /F /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" >nul 2>&1 144 | schtasks /Delete /F /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" >nul 2>&1 145 | schtasks /Delete /F /TN "Microsoft\Windows\Application Experience\AitAgent" >nul 2>&1 146 | schtasks /Delete /F /TN "Microsoft\Windows\PerfTrack\BackgroundConfigSurveyor" >nul 2>&1 147 | echo %done% 148 | nul 2>&1 150 | schtasks /Change /TN "Microsoft\Office\Office Automatic Updates" /Disable >nul 2>&1 151 | schtasks /Change /TN "Microsoft\Office\Office Automatic Updates 2.0" /Disable >nul 2>&1 152 | schtasks /Change /TN "Microsoft\Office\Office ClickToRun Service Monitor" /Disable >nul 2>&1 153 | schtasks /Change /TN "Microsoft\Office\Office Feature Updates" /Disable >nul 2>&1 154 | schtasks /Change /TN "Microsoft\Office\Office Feature Updates Logon" /Disable >nul 2>&1 155 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetry\AgentLogOn2016" /Disable >nul 2>&1 156 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetry\OfficeTelemetryAgentLogOn2016" /Disable >nul 2>&1 157 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack" /Disable >nul 2>&1 158 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetry\AgentFallBack2016" /Disable >nul 2>&1 159 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn" /Disable >nul 2>&1 160 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn2016" /Disable >nul 2>&1 161 | echo %done% 162 | nul 2>&1 165 | :: Disable System Restore Scheduled Task 166 | schtasks /Change /TN "Microsoft\Windows\SystemRestore\SR" /Disable >nul 2>&1 167 | :: Kill CreateExplorerShellUnelevatedTask 168 | schtasks /Delete /F /TN "CreateExplorerShellUnelevatedTask" >nul 2>&1 169 | echo %done% 170 | :: Success 171 | echo %yellow%Scheduled tasks optimization has completed successfully.%white%& echo: 172 | nul 2>&1 174 | exit /b 175 | 176 | :No_Admin 177 | echo You must have administrator rights to run this script. 178 | nul 180 | goto :eof 181 | -------------------------------------------------------------------------------- /Files/Scripts/ScheduledTasks/ScheduledTasks_Restore.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | C:\Windows\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || goto :No_Admin 3 | 4 | :: Set variables 5 | set "colors=blue=,green=,red=,yellow=,white= 6 | set "%colors:,=" & set "%" 7 | set "hide_cursor=[?25l" 8 | set "show_cursor=[?25h" 9 | set "yes=[?25lYes" 10 | set "no=[?25lNo" 11 | set "done=[?25lDone." 12 | 13 | :: Titlebar 14 | echo %hide_cursor%%white%]0;Scheduled Tasks Enabler& cls 15 | 16 | :: Start when you're ready. 17 | echo Restoring Telemetry tasks is a bad idea, but ok, 18 | nul 2>&1 20 | 21 | :: Start Process 22 | cls 23 | echo Setting tasks... 24 | nul 2>&1 26 | schtasks /Change /TN "Microsoft\Windows\AppID\VerifiedPublisherCertStoreCheck" /Enable >nul 2>&1 27 | schtasks /Change /TN "Microsoft\Windows\Application Experience\AitAgent" /Enable >nul 2>&1 28 | schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Enable >nul 2>&1 29 | schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Enable >nul 2>&1 30 | schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Enable >nul 2>&1 31 | schtasks /Change /TN "Microsoft\Windows\ApplicationData\AppUriVerifierDaily" /Enable >nul 2>&1 32 | schtasks /Change /TN "Microsoft\Windows\ApplicationData\AppUriVerifierInstall" /Enable >nul 2>&1 33 | schtasks /Change /TN "Microsoft\Windows\ApplicationData\DsSvcCleanup" /Enable >nul 2>&1 34 | schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Enable >nul 2>&1 35 | schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Enable >nul 2>&1 36 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\BthSQM" /Enable >nul 2>&1 37 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Enable >nul 2>&1 38 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\HypervisorFlightingTask" /Enable >nul 2>&1 39 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Enable >nul 2>&1 40 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader" /Enable >nul 2>&1 41 | schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Enable >nul 2>&1 42 | schtasks /Change /TN "Microsoft\Windows\Device information\Device" /Enable >nul 2>&1 43 | schtasks /Change /TN "Microsoft\Windows\Device Setup\Metadata Refresh" /Enable >nul 2>&1 44 | schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Enable >nul 2>&1 45 | schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver" /Enable >nul 2>&1 46 | schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /Enable >nul 2>&1 47 | schtasks /Change /TN "Microsoft\Windows\End Of Support\Notify1" /Enable >nul 2>&1 48 | schtasks /Change /TN "Microsoft\Windows\End Of Support\Notify2" /Enable >nul 2>&1 49 | schtasks /Change /TN "Microsoft\Windows\ErrorDetails\EnableErrorDetailsUpdate" /Enable >nul 2>&1 50 | schtasks /Change /TN "Microsoft\Windows\ErrorDetails\ErrorDetailsUpdate" /Enable >nul 2>&1 51 | schtasks /Change /TN "Microsoft\Windows\Feedback\Siuf\DmClient" /Enable >nul 2>&1 52 | schtasks /Change /TN "Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" /Enable >nul 2>&1 53 | schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Enable >nul 2>&1 54 | schtasks /Change /TN "Microsoft\Windows\Flighting\OneSettings\RefreshCache" /Enable >nul 2>&1 55 | schtasks /Change /TN "Microsoft\Windows\LanguageComponentsInstaller\Installation" /Enable >nul 2>&1 56 | schtasks /Change /TN "Microsoft\Windows\LanguageComponentsInstaller\ReconcileLanguageResources" /Enable >nul 2>&1 57 | schtasks /Change /TN "Microsoft\Windows\Location\Notifications" /Enable >nul 2>&1 58 | schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Enable >nul 2>&1 59 | schtasks /Change /TN "Microsoft\Windows\Media Center\ActivateWindowsSearch" /Enable >nul 2>&1 60 | schtasks /Change /TN "Microsoft\Windows\Media Center\ConfigureInternetTimeService" /Enable >nul 2>&1 61 | schtasks /Change /TN "Microsoft\Windows\Media Center\DispatchRecoveryTasks" /Enable >nul 2>&1 62 | schtasks /Change /TN "Microsoft\Windows\Media Center\ehDRMInit" /Enable >nul 2>&1 63 | schtasks /Change /TN "Microsoft\Windows\Media Center\InstallPlayReady" /Enable >nul 2>&1 64 | schtasks /Change /TN "Microsoft\Windows\Media Center\mcupdate" /Enable >nul 2>&1 65 | schtasks /Change /TN "Microsoft\Windows\Media Center\MediaCenterRecoveryTask" /Enable >nul 2>&1 66 | schtasks /Change /TN "Microsoft\Windows\Media Center\ObjectStoreRecoveryTask" /Enable >nul 2>&1 67 | schtasks /Change /TN "Microsoft\Windows\Media Center\OCURActivate" /Enable >nul 2>&1" /Enable >nul 2>&1 68 | schtasks /Change /TN "Microsoft\Windows\Media Center\OCURDiscovery" /Enable >nul 2>&1 69 | schtasks /Change /TN "Microsoft\Windows\Media Center\PBDADiscovery" /Enable >nul 2>&1 70 | schtasks /Change /TN "Microsoft\Windows\Media Center\PBDADiscoveryW1" /Enable >nul 2>&1 71 | schtasks /Change /TN "Microsoft\Windows\Media Center\PBDADiscoveryW2" /Enable >nul 2>&1 72 | schtasks /Change /TN "Microsoft\Windows\Media Center\PvrRecoveryTask" /Enable >nul 2>&1 73 | schtasks /Change /TN "Microsoft\Windows\Media Center\PvrScheduleTask" /Enable >nul 2>&1 74 | schtasks /Change /TN "Microsoft\Windows\Media Center\RegisterSearch" /Enable >nul 2>&1 75 | schtasks /Change /TN "Microsoft\Windows\Media Center\ReindexSearchRoot" /Enable >nul 2>&1 76 | schtasks /Change /TN "Microsoft\Windows\Media Center\SqlLiteRecoveryTask" /Enable >nul 2>&1 77 | schtasks /Change /TN "Microsoft\Windows\Media Center\UpdateRecordPath" /Enable >nul 2>&1 78 | schtasks /Change /TN "Microsoft\Windows\Mobile Broadband Accounts\MNO Metadata Parser" /Enable >nul 2>&1 79 | schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Enable >nul 2>&1 80 | schtasks /Change /TN "Microsoft\Windows\NlaSvc\WiFiTask" /Enable >nul 2>&1 81 | schtasks /Change /TN "Microsoft\Windows\PerfTrack\BackgroundConfigSurveyor" /Enable >nul 2>&1 82 | schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Enable >nul 2>&1 83 | schtasks /Change /TN "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /Enable >nul 2>&1 84 | schtasks /Change /TN "Microsoft\Windows\PushToInstall\LoginCheck" /Enable >nul 2>&1 85 | schtasks /Change /TN "Microsoft\Windows\PushToInstall\Registration" /Enable >nul 2>&1 86 | schtasks /Change /TN "Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask" /Enable >nul 2>&1 87 | schtasks /Change /TN "Microsoft\Windows\RemovalTools\MRT_ERROR_HB" /Enable >nul 2>&1 88 | schtasks /Change /TN "Microsoft\Windows\SettingSync\BackgroundUploadTask" /Enable >nul 2>&1 89 | schtasks /Change /TN "Microsoft\Windows\SettingSync\BackupTask" /Enable >nul 2>&1 90 | schtasks /Change /TN "Microsoft\Windows\SettingSync\NetworkStateChangeTask" /Enable >nul 2>&1 91 | schtasks /Change /TN "Microsoft\Windows\Setup\gwx\launchtrayprocess" /Enable >nul 2>&1 92 | schtasks /Change /TN "Microsoft\Windows\Setup\gwx\refreshgwxconfig" /Enable >nul 2>&1 93 | schtasks /Change /TN "Microsoft\Windows\Setup\gwx\refreshgwxconfigandcontent" /Enable >nul 2>&1 94 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\Logon-10s" /Enable >nul 2>&1 95 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\Logon-5d" /Enable >nul 2>&1 96 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\MachineUnlock-10s" /Enable >nul 2>&1 97 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\MachineUnlock-5d" /Enable >nul 2>&1 98 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\OutOfIdle-10s" /Enable >nul 2>&1 99 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\OutOfIdle-5d" /Enable >nul 2>&1 100 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\OutOfSleep-10s" /Enable >nul 2>&1 101 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\OutOfSleep-5d" /Enable >nul 2>&1 102 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\refreshgwxconfig-B" /Enable >nul 2>&1 103 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\Telemetry-4xd" /Enable >nul 2>&1 104 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\Time-10s" /Enable >nul 2>&1 105 | schtasks /Change /TN "Microsoft\Windows\Setup\GWXTriggers\Time-5d" /Enable >nul 2>&1 106 | schtasks /Change /TN "Microsoft\Windows\Shell\CreateObjectTask" /Enable >nul 2>&1 107 | schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitor" /Enable >nul 2>&1 108 | schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitorToastTask" /Enable >nul 2>&1 109 | schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefresh" /Enable >nul 2>&1 110 | schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefreshTask" /Enable >nul 2>&1 111 | schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /Enable >nul 2>&1 112 | schtasks /Change /TN "Microsoft\Windows\SideShow\SessionAgent" /Enable >nul 2>&1 113 | schtasks /Change /TN "Microsoft\Windows\SideShow\SystemDataProviders" /Enable >nul 2>&1 114 | schtasks /Change /TN "Microsoft\Windows\Speech\SpeechModelDownloadTask" /Enable >nul 2>&1 115 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\Reboot" /Enable >nul 2>&1 116 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\Schedule Scan" /Enable >nul 2>&1 117 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\Schedule Scan Static Task" /Enable >nul 2>&1 118 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_Broker_Display" /Enable >nul 2>&1 119 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_RebootDisplay" /Enable >nul 2>&1 120 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_UxBroker" /Enable >nul 2>&1 121 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_UxBroker_Display" /Enable >nul 2>&1 122 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_UxBroker_ReadyToReboot" /Enable >nul 2>&1 123 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_UxBroker_WnfDisplay" /Enable >nul 2>&1 124 | schtasks /Change /TN "Microsoft\Windows\UpdateOrchestrator\USO_WnfDisplay" /Enable >nul 2>&1 125 | schtasks /Change /TN "Microsoft\Windows\UPnP\UPnPHostConfig" /Enable >nul 2>&1 126 | schtasks /Change /TN "Microsoft\Windows\User Profile Service\HiveUploadTask" /Enable >nul 2>&1 127 | schtasks /Change /TN "Microsoft\Windows\WaaSMedic\PerformRemediation" /Enable >nul 2>&1 128 | schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Enable >nul 2>&1 129 | schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Enable >nul 2>&1 130 | schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /Enable >nul 2>&1 131 | schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\sih" /Enable >nul 2>&1 132 | schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTask" /Enable >nul 2>&1 133 | schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTaskLogon" /Enable >nul 2>&1 134 | schtasks /Change /TN "NvTmMon_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Enable >nul 2>&1 135 | schtasks /Change /TN "NvTmRep" /Enable >nul 2>&1 136 | schtasks /Change /TN "NvTmRep_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Enable >nul 2>&1 137 | schtasks /Change /TN "NvTmRepCR1_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Enable >nul 2>&1 138 | schtasks /Change /TN "NvTmRepCR2_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Enable >nul 2>&1 139 | schtasks /Change /TN "NvTmRepCR3_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Enable >nul 2>&1 140 | schtasks /Change /TN "NvTmRepOnLogon_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Enable >nul 2>&1 141 | for /f "tokens=1,2 delims==" %%s IN ('wmic path win32_useraccount where name^='%username%' get sid /value ^| find /i "SID"') do set "UserSID=%%t" 142 | schtasks /Change /TN "\OneDrive Standalone Update Task-%UserSID%" /Enable >nul 2>&1 143 | echo %done% 144 | nul 2>&1 146 | schtasks /Change /TN "Microsoft\Office\Office Automatic Updates" /Enable >nul 2>&1 147 | schtasks /Change /TN "Microsoft\Office\Office Automatic Updates 2.0" /Enable >nul 2>&1 148 | schtasks /Change /TN "Microsoft\Office\Office ClickToRun Service Monitor" /Enable >nul 2>&1 149 | schtasks /Change /TN "Microsoft\Office\Office Feature Updates" /Enable >nul 2>&1 150 | schtasks /Change /TN "Microsoft\Office\Office Feature Updates Logon" /Enable >nul 2>&1 151 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetry\AgentLogOn2016" /Enable >nul 2>&1 152 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetry\OfficeTelemetryAgentLogOn2016" /Enable >nul 2>&1 153 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack" /Enable >nul 2>&1 154 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetry\AgentFallBack2016" /Enable >nul 2>&1 155 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn" /Enable >nul 2>&1 156 | schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn2016" /Enable >nul 2>&1 157 | echo %done% 158 | nul 2>&1 161 | :: Disable System Restore Scheduled Task 162 | schtasks /Change /TN "Microsoft\Windows\SystemRestore\SR" /Enable >nul 2>&1 163 | :: Kill CreateExplorerShellUnelevatedTask 164 | schtasks /Delete /F /TN "CreateExplorerShellUnelevatedTask" >nul 2>&1 165 | echo %done% 166 | :: Success 167 | echo %yellow%Scheduled tasks optimization has completed successfully.%white%& echo: 168 | nul 2>&1 170 | exit /b 171 | 172 | :No_Admin 173 | echo You must have administrator rights to run this script. 174 | nul 176 | goto :eof 177 | -------------------------------------------------------------------------------- /Files/Scripts/Services/Cur_services_startup_config_backup.vbs: -------------------------------------------------------------------------------- 1 | 'Windows Services startup configuration. 2 | 3 | Option Explicit 4 | If WScript.Arguments.length = 0 Then 5 | Dim objShell : Set objShell = CreateObject("Shell.Application") 6 | objShell.ShellExecute "wscript.exe", Chr(34) & _ 7 | WScript.ScriptFullName & Chr(34) & " uac", "", "runas", 1 8 | Else 9 | Dim WshShell, objFSO, strNow, intServiceType, intStartupType, strDisplayName, iSvcCnt 10 | Dim sREGFile, sBATFile, r, b, strComputer, objWMIService, colListOfServices, objService 11 | Set WshShell = CreateObject("Wscript.Shell") 12 | Set objFSO = Wscript.CreateObject("Scripting.FilesystemObject") 13 | 14 | Function LPad (str, pad, length) 15 | LPad = String(length - Len(str), pad) & str 16 | End Function 17 | 18 | strNow = LPad(Day(Date), "0", 2) & "-" & LPad(Month(Date), "0", 2) & "-" & Year(Now) & "_" & "at" & "_" & LPad(Hour(Time), "0", 2) & "h" & LPad(Minute(Time), "0", 2) 19 | 20 | Dim objFile: Set objFile = objFSO.GetFile(WScript.ScriptFullName) 21 | sREGFile = objFSO.GetParentFolderName(objFile) & "\Current_services_saved_on_" & strNow & ".reg" 22 | sBATFile = objFSO.GetParentFolderName(objFile) & "\Current_services_saved_on_" & strNow & ".bat" 23 | 24 | Set r = objFSO.CreateTextFile (sREGFile, True) 25 | r.WriteLine "Windows Registry Editor Version 5.00" 26 | r.WriteBlankLines 1 27 | r.WriteLine ";Services Startup Configuration saved before optimization at " & Time & " on " & FormatDateTime(Now, vbShortDate) 28 | r.WriteBlankLines 1 29 | 30 | Set b = objFSO.CreateTextFile (sBATFile, True) 31 | b.WriteLine "@echo off" 32 | b.WriteLine "%windir%\system32\reg.exe query ""HKU\S-1-5-19"" 1>nul 2>nul || goto :NOADMIN" 33 | b.WriteBlankLines 1 34 | b.WriteLine "echo ]0;Import initial services startup configuration, saved at " & Time & " on " & FormatDateTime(Now, vbShortDate) & "" 35 | b.WriteLine "nul" 37 | b.WriteLine "cls" 38 | b.WriteBlankLines 1 39 | 40 | strComputer = "." 41 | iSvcCnt=0 42 | Dim sStartState, sSvcName, sSkippedSvc 43 | 44 | Set objWMIService = GetObject("winmgmts:" _ 45 | & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 46 | 47 | Set colListOfServices = objWMIService.ExecQuery _ 48 | ("Select * from Win32_Service") 49 | 50 | For Each objService In colListOfServices 51 | iSvcCnt=iSvcCnt + 1 52 | r.WriteLine "[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\" & trim(objService.Name) & "]" 53 | sStartState = lcase(objService.StartMode) 54 | sSvcName = objService.Name 55 | Select Case sStartState 56 | Case "boot" 57 | 58 | r.WriteLine chr(34) & "Start" & Chr(34) & "=dword:00000000" 59 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= boot" 60 | 61 | Case "system" 62 | r.WriteLine chr(34) & "Start" & Chr(34) & "=dword:00000001" 63 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= system" 64 | 65 | Case "auto" 66 | 'Check if it's Automatic (Delayed start) 67 | r.WriteLine chr(34) & "Start" & Chr(34) & "=dword:00000002" 68 | If objService.DelayedAutoStart = True Then 69 | r.WriteLine chr(34) & "DelayedAutostart" & Chr(34) & "=dword:00000001" 70 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= delayed-auto" 71 | Else 72 | r.WriteLine chr(34) & "DelayedAutostart" & Chr(34) & "=-" 73 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= auto" 74 | End If 75 | 76 | Case "manual" 77 | 78 | r.WriteLine chr(34) & "Start" & Chr(34) & "=dword:00000003" 79 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= demand" 80 | 81 | Case "disabled" 82 | 83 | r.WriteLine chr(34) & "Start" & Chr(34) & "=dword:00000004" 84 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= disabled" 85 | 86 | Case "unknown" sSkippedSvc = sSkippedSvc & ", " & sSvcName 87 | 'Case Else 88 | End Select 89 | r.WriteBlankLines 1 90 | Next 91 | 92 | If trim(sSkippedSvc) <> "" Then 93 | WScript.Echo iSvcCnt & " Services found. The services " & sSkippedSvc & " could not be backed up." 94 | Else 95 | WScript.Echo iSvcCnt & " Services found and their startup configuration backed up." 96 | End If 97 | 98 | r.Close 99 | b.WriteLine "echo:" 100 | b.WriteBlankLines 1 101 | b.WriteLine "nul" 103 | b.WriteLine "exit /b" 104 | b.WriteBlankLines 1 105 | b.WriteLine ":NOADMIN" 106 | b.WriteLine "echo You must have administrator rights to run this script." 107 | b.WriteLine "nul" 109 | b.WriteLine "goto :eof" 110 | b.Close 111 | 112 | If objFSO.FileExists("lock.tmp") Then 113 | objFSO.DeleteFile "lock.tmp" 114 | End If 115 | 116 | Set objFSO = Nothing 117 | Set WshShell = Nothing 118 | End If -------------------------------------------------------------------------------- /Files/Scripts/Services/Opt_services_startup_config_backup.vbs: -------------------------------------------------------------------------------- 1 | 'Windows Services startup configuration. 2 | 3 | Option Explicit 4 | If WScript.Arguments.length = 0 Then 5 | Dim objShell : Set objShell = CreateObject("Shell.Application") 6 | objShell.ShellExecute "wscript.exe", Chr(34) & _ 7 | WScript.ScriptFullName & Chr(34) & " uac", "", "runas", 1 8 | Else 9 | Dim WshShell, objFSO, strNow, intServiceType, intStartupType, strDisplayName, iSvcCnt 10 | Dim sREGFile, sBATFile, r, b, strComputer, objWMIService, colListOfServices, objService 11 | Set WshShell = CreateObject("Wscript.Shell") 12 | Set objFSO = Wscript.CreateObject("Scripting.FilesystemObject") 13 | 14 | Function LPad (str, pad, length) 15 | LPad = String(length - Len(str), pad) & str 16 | End Function 17 | 18 | strNow = LPad(Day(Date), "0", 2) & "-" & LPad(Month(Date), "0", 2) & "-" & Year(Now) & "_" & "at" & "_" & LPad(Hour(Time), "0", 2) & "h" & LPad(Minute(Time), "0", 2) 19 | 20 | Dim objFile: Set objFile = objFSO.GetFile(WScript.ScriptFullName) 21 | sREGFile = objFSO.GetParentFolderName(objFile) & "\Optimized_services_saved_on_" & strNow & ".reg" 22 | sBATFile = objFSO.GetParentFolderName(objFile) & "\Optimized_services_saved_on_" & strNow & ".bat" 23 | 24 | Set r = objFSO.CreateTextFile (sREGFile, True) 25 | r.WriteLine "Windows Registry Editor Version 5.00" 26 | r.WriteBlankLines 1 27 | r.WriteLine ";Services Startup Configuration saved after optimization at " & Time & " on " & FormatDateTime(Now, vbShortDate) 28 | r.WriteBlankLines 1 29 | 30 | Set b = objFSO.CreateTextFile (sBATFile, True) 31 | b.WriteLine "@echo off" 32 | b.WriteLine "%windir%\system32\reg.exe query ""HKU\S-1-5-19"" 1>nul 2>nul || goto :NOADMIN" 33 | b.WriteBlankLines 1 34 | b.WriteLine "echo ]0;Import optimized services startup configuration, saved at " & Time & " on " & FormatDateTime(Now, vbShortDate) & "" 35 | b.WriteLine "nul" 37 | b.WriteLine "cls" 38 | b.WriteBlankLines 1 39 | 40 | strComputer = "." 41 | iSvcCnt=0 42 | Dim sStartState, sSvcName, sSkippedSvc 43 | 44 | Set objWMIService = GetObject("winmgmts:" _ 45 | & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 46 | 47 | Set colListOfServices = objWMIService.ExecQuery _ 48 | ("Select * from Win32_Service") 49 | 50 | For Each objService In colListOfServices 51 | iSvcCnt=iSvcCnt + 1 52 | r.WriteLine "[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\" & trim(objService.Name) & "]" 53 | sStartState = lcase(objService.StartMode) 54 | sSvcName = objService.Name 55 | Select Case sStartState 56 | Case "boot" 57 | 58 | r.WriteLine chr(34) & "Start" & Chr(34) & "=dword:00000000" 59 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= boot" 60 | 61 | Case "system" 62 | r.WriteLine chr(34) & "Start" & Chr(34) & "=dword:00000001" 63 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= system" 64 | 65 | Case "auto" 66 | 'Check if it's Automatic (Delayed start) 67 | r.WriteLine chr(34) & "Start" & Chr(34) & "=dword:00000002" 68 | If objService.DelayedAutoStart = True Then 69 | r.WriteLine chr(34) & "DelayedAutostart" & Chr(34) & "=dword:00000001" 70 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= delayed-auto" 71 | Else 72 | r.WriteLine chr(34) & "DelayedAutostart" & Chr(34) & "=-" 73 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= auto" 74 | End If 75 | 76 | Case "manual" 77 | 78 | r.WriteLine chr(34) & "Start" & Chr(34) & "=dword:00000003" 79 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= demand" 80 | 81 | Case "disabled" 82 | 83 | r.WriteLine chr(34) & "Start" & Chr(34) & "=dword:00000004" 84 | b.WriteLine "sc.exe config " & Chr(34) & sSvcName & Chr(34) & " start= disabled" 85 | 86 | Case "unknown" sSkippedSvc = sSkippedSvc & ", " & sSvcName 87 | 'Case Else 88 | End Select 89 | r.WriteBlankLines 1 90 | Next 91 | 92 | r.Close 93 | b.WriteLine "echo:" 94 | b.WriteBlankLines 1 95 | b.WriteLine "nul" 97 | b.WriteLine "exit /b" 98 | b.WriteBlankLines 1 99 | b.WriteLine ":NOADMIN" 100 | b.WriteLine "echo You must have administrator rights to run this script." 101 | b.WriteLine "nul" 103 | b.WriteLine "goto :eof" 104 | b.Close 105 | 106 | If objFSO.FileExists("lock.tmp") Then 107 | objFSO.DeleteFile "lock.tmp" 108 | End If 109 | 110 | Set objFSO = Nothing 111 | Set WshShell = Nothing 112 | End If -------------------------------------------------------------------------------- /Files/Scripts/Services/Services Optimization.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | C:\Windows\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || goto :No_Admin 3 | %windir%\system32\whoami.exe /USER | find /i "S-1-5-18" 1>nul && ( 4 | goto :Services_Optimization_Task 5 | ) || ( 6 | goto :Variables 7 | ) 8 | 9 | ::============================================================================================================ 10 | :Variables 11 | ::============================================================================================================ 12 | set "colors=blue=,green=,red=,yellow=,white= 13 | set "%colors:,=" & set "%" 14 | set "hide_cursor=[?25l" 15 | set "show_cursor=[?25h" 16 | set "yes=[?25lYes" 17 | set "no=[?25lNo" 18 | set "done=[?25lDone." 19 | set "NextGen_UserName=%username%" 20 | if not exist "%systemroot%\system32\robocopy.exe" goto :Error_No_Robocopy 21 | if not defined NextGen_UserName (goto :Error_No_User) else if exist "%systemdrive%\Users\%NextGen_UserName%\AppData\Local\Temp\" ( 22 | set "Tmp_Folder=%systemdrive%\Users\%NextGen_UserName%\AppData\Local\Temp\Optimize_NextGen_%random%.tmp\" & set "User_Tmp_Folder=%systemdrive%\Users\%NextGen_UserName%\AppData\Local\Temp" 23 | ) 24 | REM Check Windows architecture,edition and build number 25 | for /f "tokens=1* delims==" %%A in ('wmic os get Caption^,BuildNumber /value') do ( 26 | for /f "tokens=*" %%S in ("%%B") do ( 27 | if "%%A"=="BuildNumber" set "Build_Number=%%S" 28 | if "%%A"=="Caption" set "OS_Name=%%S" 29 | )) 30 | REM Exit if OS is not 64 bit, or buildnumber less than 1809 31 | if %Build_Number% LSS 17763 ( goto :Inferior_Build ) 32 | REM LTSC editions 33 | if %Build_Number% EQU 17763 ( 34 | if "%OS_Name%"=="Microsoft Windows Server 2019 Datacenter" ( set "Win_Edition=Windows Server 2019" & set "Win_Edition_Title=%OS_Name:~0,29%" & goto :START ) 35 | if "%OS_Name%"=="Microsoft Windows Server 2019 Standard" ( set "Win_Edition=Windows Server 2019" & set "Win_Edition_Title=%OS_Name:~0,29%" & goto :START ) 36 | if "%OS_Name%"=="Microsoft Windows Server 2019 Essentials" ( set "Win_Edition=Windows Server 2019" & set "Win_Edition_Title=%OS_Name:~0,29%" & goto :START ) 37 | if "%OS_Name%"=="Microsoft Windows 10 Enterprise LTSC" ( set "Win_Edition=Windows 10 LTSC" & set "Win_Edition_Title=Microsoft Windows 10 LTSC" & goto :START ) 38 | if "%OS_Name%"=="Microsoft Windows 10 Enterprise N LTSC" ( set "Win_Edition=Windows 10 LTSC" & set "Win_Edition_Title=Microsoft Windows 10 LTSC" & goto :START ) 39 | ) 40 | REM Anomaly 41 | if %Build_Number% GTR 17763 ( 42 | if "%OS_Name%"=="Microsoft Windows Server 2019 Datacenter" ( goto :Error_Frankenbuild ) 43 | if "%OS_Name%"=="Microsoft Windows Server 2019 Standard" ( goto :Error_Frankenbuild ) 44 | if "%OS_Name%"=="Microsoft Windows Server 2019 Essentials" ( goto :Error_Frankenbuild ) 45 | if "%OS_Name%"=="Microsoft Windows 10 Enterprise LTSC" ( goto :Error_Frankenbuild ) 46 | if "%OS_Name%"=="Microsoft Windows 10 Enterprise N LTSC" ( goto :Error_Frankenbuild ) 47 | ) 48 | REM Regular Windows 10 editions 49 | if "%OS_Name%"=="Microsoft Windows 10 Education" ( set "Win_Edition=Windows 10 Education" & set "Win_Edition_Title=%OS_Name%" & goto :Regular_Editions ) 50 | if "%OS_Name%"=="Microsoft Windows 10 Enterprise" ( set "Win_Edition=Windows 10 Enterprise" & set "Win_Edition_Title=%OS_Name%" & goto :Regular_Editions ) 51 | if "%OS_Name%"=="Microsoft Windows 10 Pro" ( set "Win_Edition=Windows 10 Pro" & set "Win_Edition_Title=%OS_Name%" & goto :Regular_Editions ) 52 | set "OS_Name=%OS_Name:~0,20%" 53 | if "%OS_Name%"=="Microsoft Windows 10" ( set "Win_Edition=Windows 10" & set "Win_Edition_Title=%OS_Name%" ) else ( goto :Error_Edition_Not_Found ) 54 | :Regular_Editions 55 | set "Win_Regular_Edition=Windows 10" 56 | call :LITE_Notice 57 | 58 | ::============================================================================================================ 59 | :START 60 | ::============================================================================================================ 61 | :: Resize window 62 | "%~dp0..\..\..\Files\Utilities\consolesize.exe" 140 30 140 9999 63 | 64 | :: Titlebar 65 | echo %hide_cursor%%white%]0;Optimize %Win_Edition% Services& cls 66 | 67 | :: Backup choice 68 | nul 2>&1 70 | if errorlevel 2 ( echo %hide_cursor%%no%& echo: & goto :Start_Checks ) 71 | if errorlevel 1 ( echo %hide_cursor%%yes%& call :Backup_Services ) 72 | :Start_Checks 73 | if "%Win_Edition%"=="Windows Server 2019" ( 74 | sc query WlanSvc >nul 75 | if errorlevel 1060 ( set "WLan_Service=Missing" & goto :File_and_Printer_Sharing_Setting ) 76 | ) 77 | REM Check_WiFi_Connection_Status 78 | for /f "usebackq" %%A in ('wmic path WIN32_NetworkAdapter where 'NetConnectionID="Wi-Fi"' get NetConnectionStatus') do if %%A equ 2 ( set "WLan_Service=Enable_WLan_Service" ) else ( set "WLan_Service=Disable_WLan_Service" ) 79 | 80 | if "%WLan_Service%"=="Disable_WLan_Service" ( 81 | nul 2>&1 83 | if errorlevel 2 ( echo %no%& set "WLan_Service=Enable_WLan_Service" & goto :File_and_Printer_Sharing_Setting ) 84 | if errorlevel 1 ( echo %yes%& set "WLan_Service=Disable_WLan_Service" ) 85 | ) 86 | 87 | :File_and_Printer_Sharing_Setting 88 | nul 2>&1 90 | if errorlevel 2 ( echo %hide_cursor%%green%Enable%white%& set "File_and_Printer_Sharing=Enable_File_and_Printer_Sharing" & goto :Launch_Nsudo_for_Svc_Optimization ) 91 | if errorlevel 1 ( echo %hide_cursor%%red%Disable%white%& set "File_and_Printer_Sharing=Disable_File_and_Printer_Sharing" ) 92 | 93 | :Launch_Nsudo_for_Svc_Optimization 94 | REM Options recap 95 | if "%File_and_Printer_Sharing%"=="Disable_File_and_Printer_Sharing" ( set "Services_Style_1=%red%DISABLED" ) else ( set "Services_Style_1=%green%ENABLED" ) 96 | if "%WLan_Service%"=="Disable_WLan_Service" ( set "Services_Style_2=%red%DISABLED" ) 97 | if "%WLan_Service%"=="Enable_WLan_Service" ( set "Services_Style_2=%green%ENABLED" ) 98 | if "%WLan_Service%"=="Missing" ( set "Services_Style_2=%red%DOES NOT EXIST" ) 99 | echo %hide_cursor%%yellow%Options set: %blue%File and Printer Sharing %Services_Style_1%%yellow% - %blue%WLAN AutoConfig service %Services_Style_2%%white% 100 | nul 2>nul && reg add "HKLM\SYSTEM\ControlSet001\Services\!AUTO_Svc!" /v "Start" /t REG_DWORD /d 2 /f >nul 2>&1 145 | sc config "!AUTO_Svc!" start= AUTO >nul 2>&1 146 | ) 147 | 148 | for %%g in (%DEMAND%) do ( 149 | set "DEMAND_Svc=%%g" 150 | set "DEMAND_Svc=!DEMAND_Svc:$= !" 151 | reg query "HKLM\SYSTEM\ControlSet001\Services\!DEMAND_Svc!" /v Start 1>nul 2>nul && reg add "HKLM\SYSTEM\ControlSet001\Services\!DEMAND_Svc!" /v "Start" /t REG_DWORD /d 3 /f >nul 2>&1 152 | sc config "!DEMAND_Svc!" start= DEMAND >nul 2>&1 153 | ) 154 | 155 | for %%g in (%DISABLED%) do ( 156 | set "DISABLED_Svc=%%g" 157 | set "DISABLED_Svc=!DISABLED_Svc:$= !" 158 | reg query "HKLM\SYSTEM\ControlSet001\Services\!DISABLED_Svc!" /v Start 1>nul 2>nul && reg add "HKLM\SYSTEM\ControlSet001\Services\!DISABLED_Svc!" /v "Start" /t REG_DWORD /d 4 /f >nul 2>&1 159 | sc config "!DISABLED_Svc!" start= DISABLED >nul 2>&1 160 | ) 161 | setlocal DisableDelayedExpansion 162 | 163 | REM CldFlt, ClipSVC, InstallService (Cloud files filter driver, Store and Store apps Service,) 164 | set "More_Services=CldFlt,ClipSVC,InstallService" 165 | if "%Win_Store%"=="Store_ON" ( 166 | for %%g in (%More_Services%) do ( 167 | reg add "HKLM\SYSTEM\ControlSet001\Services\%%g " /v "Start" /t REG_DWORD /d 3 /f >nul 2>&1 168 | sc config "%%g" start= DEMAND >nul 2>&1 169 | )) else ( 170 | for %%g in (%More_Services%) do ( 171 | reg add "HKLM\SYSTEM\ControlSet001\Services\%%g " /v "Start" /t REG_DWORD /d 4 /f >nul 2>&1 172 | sc config "%%g" start= DISABLED >nul 2>&1 173 | )) 174 | 175 | REM WLan Service 176 | if "%WLan_Service%"=="Missing" ( exit /b ) 177 | if "%WLan_Service%"=="Enable_WLan_Service" ( 178 | reg add "HKLM\SYSTEM\ControlSet001\Services\WlanSvc" /v "Start" /t REG_DWORD /d 2 /f >nul 2>&1 179 | sc config "WlanSvc" start= AUTO >nul 2>&1 180 | ) else ( 181 | reg add "HKLM\SYSTEM\ControlSet001\Services\WlanSvc" /v "Start" /t REG_DWORD /d 4 /f >nul 2>&1 182 | sc config "WlanSvc" start= DISABLED >nul 2>&1 183 | ) 184 | exit /b 185 | 186 | :Services_Optimization_Success 187 | echo %done% 188 | echo %hide_cursor%Services optimization task for %blue%%Win_Edition%%yellow% has completed successfully.%white%& echo: 189 | goto :PAUSE_BEFORE_EXIT 190 | 191 | :Services_Optimization_Failed 192 | echo %hide_cursor%%hide_cursor%%red%%Win_Edition% services optimization task failed.%white%& echo: 193 | 194 | :PAUSE_BEFORE_EXIT 195 | nul 2>&1 197 | exit /b 198 | 199 | ::============================================================================================================ 200 | :: Error Messages 201 | ::============================================================================================================ 202 | :No_Admin 203 | echo %white%You must have administrator rights to run this script. 204 | goto :Exit_on_Error 205 | 206 | :Inferior_Build 207 | echo %white%Optimize NextGen can not be run on your system ^(%Win_Edition% build %Build_Number%^). 208 | goto :Exit_on_Error 209 | 210 | :Error_Frankenbuild 211 | echo %white%Frankenbuilds are not accepted. 212 | goto :Exit_on_Error 213 | 214 | :Error_Edition_Not_Found 215 | echo We could not find your Windows Edition, the script can not continue. 216 | goto :Exit_on_Error 217 | 218 | :Error_No_Robocopy 219 | echo Robocopy.exe doesn't exist, the script can not continue. 220 | goto :Exit_on_Error 221 | 222 | :Error_No_User 223 | echo We could not find your User profile, the script can not continue. 224 | goto :Exit_on_Error 225 | 226 | :LITE_Notice 227 | echo %hide_cursor%%white%Optimize NextGen was primarily made for LTSC and Windows Server, 228 | echo and won't ^(yet^) process services optimization in %Win_Edition%.& echo: 229 | echo It will fully support all W10 editions soon. 230 | goto :Exit_on_Error 231 | 232 | :Exit_on_Error 233 | nul 235 | exit /b 236 | 237 | ::============================================================================================================ 238 | :Backup_Services 239 | ::============================================================================================================ 240 | nul 2>&1 242 | mkdir "%~dp0..\..\..\Backup\Services Backup" >nul 2>&1 243 | cd /d "%~dp0" 244 | REM Create lock file 245 | echo >lock.tmp 246 | REM Backup services through vbs script, getting services count argument from it 247 | for /f "delims=" %%i in ('cscript //nologo "%~dp0Cur_services_startup_config_backup.vbs" "iSvc_Cnt"') do ( set "iSvc_Cnt=%%i" ) 248 | echo: 249 | nul 2>&1 254 | call "%~dp0..\..\..\Files\Utilities\JREPL.bat" "(HKEY_LOCAL_MACHINE.*)_(.*)\d(.*)$" "$1$3" /m /f "%Cur_Service_Backup_Path%.reg" /o - >nul 2>&1 255 | robocopy "%~dp0..\..\..\Files\Scripts\Services" "%~dp0..\..\..\Backup\Services Backup" *.reg *.bat /Mov /is /it /S /xf "Services Optimization.bat" >nul 2>&1 256 | echo %hide_cursor%%green%Done.%white% 257 | echo %yellow%Default services startup configuration saved as "%Cur_Service_Backup_Name%".%white% 258 | echo: 259 | goto :eof 260 | -------------------------------------------------------------------------------- /Files/Scripts/WriteCaching/DiskWriteCaching.ps1: -------------------------------------------------------------------------------- 1 | # Cmdlet 2 | [CmdletBinding()] 3 | Param( 4 | [Parameter(Mandatory=$True)] 5 | [ValidateNotNull()] 6 | [Array]$Disks, 7 | 8 | [Parameter(Mandatory=$True)] 9 | [ValidateNotNull()] 10 | [boolean]$WriteCache, 11 | 12 | [Parameter(Mandatory=$True)] 13 | [ValidateNotNull()] 14 | [Array]$Servers, 15 | 16 | [parameter(Mandatory=$false)] 17 | [string]$Script_Version 18 | ) 19 | 20 | # Custom Title 21 | $host.ui.RawUI.WindowTitle = "Optimize NextGen $Script_Version | Powershell Script" 22 | $runStart = [DateTime]::Now 23 | 24 | # Set dskcache.exe utility flag 25 | if ($WriteCache) {$flag="+"} else {$flag="-"} 26 | 27 | # Start log 28 | Start-Transcript -Path "$env:TEMP\SettingsBackup\Logs\DiskWriteCaching.log" -Append | out-null 29 | 30 | foreach ($server in $servers) 31 | { 32 | 33 | $Disk=Get-WmiObject Win32_DiskDrive 34 | 35 | foreach ($DiskN in $Disks) 36 | { 37 | # Check if required disk available otherwise skip changes 38 | if (!($Disk.Index -contains $DiskN)) {Write-Host $server Disk $DiskN does not exist, or is not available at this time. -f Yellow} 39 | else 40 | { 41 | 42 | # Get Diskname and Disk serial number 43 | $DiskName=($disk | where Index -eq $diskN).Caption 44 | $DiskSN=($disk | where Index -eq $diskN).SerialNumber 45 | 46 | Write-Host $server "Changing write caching for" ($DiskName+" - SN:"+$DiskSN) "- DiskNumber:" $DiskN -f Yellow 47 | Start-Process -FilePath ".\..\..\..\Files\Utilities\dskcache.exe" -ArgumentList "$($flag)w PhysicalDrive$($DiskN)" -WindowStyle Hidden 48 | }} 49 | 50 | } 51 | 52 | Write-Host "Run duration: " -n 53 | Write-Host ([Math]::Round((([DateTime]::Now).Subtract($runStart)).TotalMinutes,2)) -f Yellow -n 54 | Write-Host " minutes" -n 55 | 56 | # Stop log 57 | Stop-Transcript | out-null 58 | -------------------------------------------------------------------------------- /Files/Scripts/WriteCaching/Launch_DiskWriteCaching_ps1.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | C:\Windows\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || goto :No_Admin 3 | cd /d "%~dp0" 4 | PowerShell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass ".\DiskWriteCaching.ps1 -Disks (1..10) -WriteCache $true -Servers $env:COMPUTERNAME" 5 | echo: 6 | nul 8 | exit /b 9 | :No_Admin 10 | echo You must have administrator rights to run this script. 11 | nul 13 | goto :eof 14 | -------------------------------------------------------------------------------- /Files/Utilities/Browser.bat: -------------------------------------------------------------------------------- 1 | @if (@CodeSection == @Batch) @then 2 | 3 | 4 | @echo off 5 | for /f "delims=" %%a in ('CScript //nologo //E:JScript "%~F0" "Select the folder or type the path you want to index, then click OK."') do ( 6 | if %Index%==0 ( set "IndexedFolder=%%a" ) else ( set "IndexedFolder_%Index%=%%a" ) 7 | ) 8 | goto :eof 9 | 10 | @end 11 | 12 | 13 | var shl = new ActiveXObject("Shell.Application"); 14 | var folder = shl.BrowseForFolder(0, WScript.Arguments(0), 0x00000050,17); 15 | WScript.Stdout.WriteLine(folder ? folder.self.path : ""); -------------------------------------------------------------------------------- /Files/Utilities/DeviceCleanupCmd.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Thdub/Optimize_NextGen/5e7d58cd166176f152cadccfc6f83034e069a3f0/Files/Utilities/DeviceCleanupCmd.exe -------------------------------------------------------------------------------- /Files/Utilities/GetKey.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Thdub/Optimize_NextGen/5e7d58cd166176f152cadccfc6f83034e069a3f0/Files/Utilities/GetKey.exe -------------------------------------------------------------------------------- /Files/Utilities/LGPO.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Thdub/Optimize_NextGen/5e7d58cd166176f152cadccfc6f83034e069a3f0/Files/Utilities/LGPO.exe -------------------------------------------------------------------------------- /Files/Utilities/Microsoft.Search.Interop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Thdub/Optimize_NextGen/5e7d58cd166176f152cadccfc6f83034e069a3f0/Files/Utilities/Microsoft.Search.Interop.dll -------------------------------------------------------------------------------- /Files/Utilities/NSudoC.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Thdub/Optimize_NextGen/5e7d58cd166176f152cadccfc6f83034e069a3f0/Files/Utilities/NSudoC.exe -------------------------------------------------------------------------------- /Files/Utilities/Required_Utilities.txt: -------------------------------------------------------------------------------- 1 | Script requires some additional files here. 2 | -DeviceCleanupCmd.exe 3 | -dskcache.exe 4 | -GetKey.exe 5 | -LGPO.exe 6 | -Microsoft.Search.Interop.dll 7 | -nircmd.exe 8 | -NSudoC.exe 9 | 10 | You can download release here: 11 | https://github.com/Thdub/Optimize_NextGen/releases 12 | 13 | Or files separately there: 14 | https://www.upload.ee/files/10327055/Optimize_NextGen_Utilities.zip.html 15 | -------------------------------------------------------------------------------- /Files/Utilities/consolesize.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Thdub/Optimize_NextGen/5e7d58cd166176f152cadccfc6f83034e069a3f0/Files/Utilities/consolesize.exe -------------------------------------------------------------------------------- /Files/Utilities/dskcache.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Thdub/Optimize_NextGen/5e7d58cd166176f152cadccfc6f83034e069a3f0/Files/Utilities/dskcache.exe -------------------------------------------------------------------------------- /MODES.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Thdub/Optimize_NextGen/5e7d58cd166176f152cadccfc6f83034e069a3f0/MODES.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Optimize NextGen 2 | OS performances optimization for Windows Server 2019, Windows 10 LTSC and Windows 10. 3 | 4 | It is primarily designed for individual workstations with heavy workload, such as professional Audio or 3D applications. 5 | In short, systems used mainly for one task. 6 | 7 | The goal is to optimize performances settings disabling useless functions and maximizing privacy, while favorizing whenever possible Group Policy settings for tweak reversibility and in order to keep "update resistant" settings (unlike registry tweaks). 8 | 9 | Everything is fully reversible, either from main script, or with backed up files and scripts. 10 | 11 | You can apply FULL optimization, or single optimization/restoration tasks from the 2 main menus (Optimize/Restore) 12 | 13 | You can use these switches : 14 | /full (full script/interactive) 15 | /fast (fast mode) 16 | /offline (same as fast mode but without restart prompt, for offline scenarios) 17 | 18 | Download: https://github.com/Thdub/Optimize_NextGen/releases 19 | 20 | Infos: https://forums.mydigitallife.net/threads/optimize-nextgen.79419/ 21 | 22 | Note : It will only work with build 17763 (or above). I couldn't test services optimization in non LTSC* editions yet, so, for now, services configuration feature is disabled for these editions, but the rest is same between Windows 10 and Windows 10 LTSC, (Server has some additional settings). 23 | 24 | *LTSC = Windows Server 2019 and Windows 10 LTSC, non LTSC = Windows 10 (Home/Pro/Enterprise) 25 | -------------------------------------------------------------------------------- /Set_Shortcut_and_Options.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | setlocal enabledelayedexpansion 4 | 5 | :: VARIABLES 6 | set "ShortcutScriptPath=%TEMP%\Set_Shortcut.ps1" 7 | set "WorkDir=%~dp0" 8 | set "WorkDir=%WorkDir:~0,-1%" 9 | set "PScommand=PowerShell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass" 10 | set "colors=blue=,green=,red=,yellow=,white= 11 | set "%colors:,=" & set "%" 12 | 13 | :: TITLE AND TEXT 14 | echo *********************************************************************** 15 | echo Customize your Mode ^(%yellow%/mode%white%^) and Switches ^(%yellow%-option%white%^) for Optimize NextGen 16 | echo *********************************************************************** 17 | echo First set your mode: 18 | echo: 19 | echo %yellow%Full Mode%white% goes through all optimization tasks and interactively offers choices. 20 | echo %yellow%Fast Mode%white% runs with pre-set options. By default, it shows a warning at the beginning and a restart prompt at the end. 21 | echo %yellow%Offline Mode%white% runs with the same pre-set options, but runs hidden and will exit directly at the end, requiring no user input at all. 22 | echo %yellow%Custom Mode%white% runs with the options you choose only. 23 | echo: 24 | echo You can change %yellow%Fast mode%white% and %yellow%Offline mode%white% default settings by adding arguments when launching Optimize NextGen. 25 | echo The %yellow%/mode%white% swith position is mandatory, unlike the %yellow%-option%white% arguments. 26 | echo: 27 | echo This script simplifies the process: It creates the shortcut pointing to Optimize NextGen, with the arguments related to the options you choose. 28 | echo Type Optimize_NextGen_MDL.exe /? to launch Help and learn more about default settings and all the options you can set. 29 | echo: 30 | 31 | :: MODE 32 | choice /c 1234 /M "Choose your mode: Full Mode (1), Fast Mode (2), Offline Mode (3) or Custom Mode (4)" 33 | if errorlevel 4 ( set "mode_switch=/custom" &set "warn_switch=-nowarn" &echo: &goto :backup_serv_sw ) 34 | if errorlevel 3 ( set "mode_switch=/offline" & goto :Set_Options_Choice ) 35 | if errorlevel 2 ( set "mode_switch=/fast" & goto :Set_Options_Choice ) 36 | if errorlevel 1 ( set "mode_switch=/full" & goto :Set_Arguments ) 37 | 38 | :Set_Options_Choice 39 | echo: 40 | choice /c YN /M "Do you want to set options" 41 | if errorlevel 2 ( goto :Set_Arguments ) 42 | if errorlevel 1 ( 43 | if "%mode_switch%"=="/fast" ( echo: & goto :warn_sw ) 44 | if "%mode_switch%"=="/offline" ( echo: & goto :backup_serv_sw ) 45 | ) 46 | 47 | :: OPTIONS 48 | :: Warning 49 | :warn_sw 50 | choice /c YN /M "Show warning" 51 | if errorlevel 2 ( set "warn_switch=-nowarn" & goto :backup_serv_sw ) 52 | if errorlevel 1 ( set "warn_switch=" & goto :backup_serv_sw ) 53 | :: Backups 54 | :backup_serv_sw 55 | choice /c YN /M "Backup services startup configuration before running" 56 | if errorlevel 2 ( set "backup_serv_switch=" & goto backup_gp_sw ) 57 | if errorlevel 1 ( set "backup_serv_switch=-backupserv" & goto backup_gp_sw ) 58 | :backup_gp_sw 59 | choice /c YN /M "Backup Group Policy settings before running" 60 | if errorlevel 2 ( set "backup_gp_switch=" & goto :gp_sw ) 61 | if errorlevel 1 ( set "backup_gp_switch=-backupgp" & goto :gp_sw ) 62 | :: Group policy 63 | :gp_sw 64 | choice /c YN /M "Run Group Policy task" 65 | if errorlevel 2 ( set "gp_switch=-nogp" & goto :priv_sw ) 66 | if errorlevel 1 ( set "gp_switch=-gp" & goto :resetgp_sw ) 67 | :resetgp_sw 68 | choice /c YN /M "-Reset group policy security settings" 69 | if errorlevel 2 ( set "gps_switch=-noresetgps" & goto :custompol_sw ) 70 | if errorlevel 1 ( set "gps_switch=-resetgps" & goto :custompol_sw ) 71 | :custompol_sw 72 | choice /c YN /M "-Import Custom Policy Template" 73 | if errorlevel 2 ( set "importcp_switch=-noimportcp" & goto :importfp_sw ) 74 | if errorlevel 1 ( set "importcp_switch=-importcp" & goto :importfp_sw ) 75 | :importfp_sw 76 | choice /c YN /M "-Import Firefox Policy Template and Group Policy settings" 77 | if errorlevel 2 ( set "importfp_switch=-noimportfp" & goto :priv_sw ) 78 | if errorlevel 1 ( set "importfp_switch=-importfp" & goto :priv_sw ) 79 | :: Privacy 80 | :priv_sw 81 | choice /c YN /M "Run Privacy task" 82 | if errorlevel 2 ( set "priv_switch=-nopriv" & goto :perf_sw ) 83 | if errorlevel 1 ( set "priv_switch=-priv" & goto :perf_sw ) 84 | :: Performances 85 | :perf_sw 86 | choice /c YN /M "Run Performance task" 87 | if errorlevel 2 ( set "perf_switch=-noperf" & goto :store_sw ) 88 | if errorlevel 1 ( set "perf_switch=-perf" & goto :ss_sw ) 89 | :ss_sw 90 | choice /c YN /M "-Deactivate Selective Suspend for USB devices and Network adapters" 91 | if errorlevel 2 ( set "ss_switch=-noss" & goto :wc_sw ) 92 | if errorlevel 1 ( set "ss_switch=-ss" & goto :wc_sw ) 93 | :wc_sw 94 | choice /c YN /M "-Enable Write Caching on all disks" 95 | if errorlevel 2 ( set "wc_switch=-nowc" & goto :mm_sw ) 96 | if errorlevel 1 ( set "wc_switch=-wc" & goto :mm_sw ) 97 | :mm_sw 98 | for /f "tokens=1* delims==" %%A in ('wmic os get Caption /value') do ( for /f "tokens=*" %%S in ("%%B") do ( if "%%A"=="Caption" set "OS_Name=%%S" )) 99 | if "%OS_Name%"=="Microsoft Windows Server 2019 Datacenter" ( goto :set_mm_sw ) else ( goto :store_sw ) 100 | if "%OS_Name%"=="Microsoft Windows Server 2019 Essentials" ( goto :set_mm_sw ) else ( goto :store_sw ) 101 | if "%OS_Name%"=="Microsoft Windows Server 2019 Standard" ( goto :set_mm_sw ) else ( goto :store_sw ) 102 | :set_mm_sw 103 | choice /c YN /M "-Process memory settings" 104 | if errorlevel 2 ( set "mm_switch=-nomm" & goto :store_sw ) 105 | if errorlevel 1 ( set "mm_switch=-mm" & goto :store_sw ) 106 | :: Store 107 | :store_sw 108 | if "%priv_switch%"=="-nopriv" ( if "%perf_switch%"=="-noperf" ( if "%gp_switch%"=="-nogp" ( goto :serv_sw ))) 109 | choice /c YN /M "Using Microsoft Store" 110 | if errorlevel 2 ( set "store_switch=-nostore" & goto :games_sw ) 111 | if errorlevel 1 ( set "store_switch=-store" & goto :games_sw ) 112 | :: Games 113 | :games_sw 114 | choice /c YN /M "Playing games" 115 | if errorlevel 2 ( set "games_switch=-nogames" & goto :gex_sw ) 116 | if errorlevel 1 ( set "games_switch=-games" & goto :serv_sw ) 117 | :: Game explorer 118 | :gex_sw 119 | choice /c YN /M "Deactivate Game Explorer" 120 | if errorlevel 2 ( set "gex_switch=" & goto :serv_sw ) 121 | if errorlevel 1 ( set "gex_switch=-gex" & goto :serv_sw ) 122 | :: Services 123 | :serv_sw 124 | choice /c YN /M "Run services optimization" 125 | if errorlevel 2 ( set "serv_switch=-noserv" & goto :idx_sw ) 126 | if errorlevel 1 ( set "serv_switch=-serv" & goto :enablewl_sw ) 127 | :enablewl_sw 128 | choice /c ED /M "-Enable or Disable Wireless Lan service" 129 | if errorlevel 2 ( set "enablewl_switch=" & goto :enablefps_sw ) 130 | if errorlevel 1 ( set "enablewl_switch=-enablewl" & goto :enablefps_sw ) 131 | :enablefps_sw 132 | choice /c ED /M "-Enable or Disable File and Printer Sharing" 133 | if errorlevel 2 ( set "enablefps_switch=" & goto :idx_sw ) 134 | if errorlevel 1 ( set "enablefps_switch=-enablefps" & goto :idx_sw ) 135 | :: Indexing options 136 | :idx_sw 137 | choice /c YN /M "Run Indexing Options task" 138 | if errorlevel 2 ( set "idx_switch=-bypassidx" & goto :netapps_sw ) 139 | if errorlevel 1 ( goto :set_idx_sw ) 140 | :set_idx_sw 141 | choice /c 123 /M "-Indexing locations: Start menus(1), default windows locations (2), no folder indexed (3)" 142 | if errorlevel 3 ( set "idx_switch=-resetidx" & goto :netapps_sw ) 143 | if errorlevel 2 ( set "idx_switch=-defaultidx" & goto :netapps_sw ) 144 | if errorlevel 1 ( set "idx_switch=" & goto :netapps_sw ) 145 | :: .NET web apps 146 | :netapps_sw 147 | choice /c YN /M ".NET Framework web applications performance tuning" 148 | if errorlevel 2 ( set "netapps_switch=" & goto :evlog_sw ) 149 | if errorlevel 1 ( set "netapps_switch=-netapps" & goto :evlog_sw ) 150 | :: Clear event log 151 | :evlog_sw 152 | choice /c YN /M "Clear Event Viewer logs" 153 | if errorlevel 2 ( set "evlog_switch=" & goto :trim_sw ) 154 | if errorlevel 1 ( set "evlog_switch=-evlog" & goto :trim_sw ) 155 | :: Trim ssd 156 | :trim_sw 157 | choice /c YN /M "Send TRIM request to system SSD (Optimize)" 158 | if errorlevel 2 ( set "trim_switch=" & goto :norestart_sw ) 159 | if errorlevel 1 ( set "trim_switch=-trim" & goto :norestart_sw ) 160 | :: Exit or restart 161 | :norestart_sw 162 | if "%mode_switch%"=="/offline" ( goto :Set_Arguments ) 163 | choice /c 12 /M "Show restart prompt at the end or exit directly" 164 | if errorlevel 2 set "norestart_switch=-norestart" & goto :Set_Arguments ) 165 | if errorlevel 1 set "norestart_switch=" & goto :Set_Arguments ) 166 | 167 | :Set_Arguments 168 | set "Shorcut_Description=Optimize NextGen in" 169 | set "Link_Name=%~dp0Optimize Nextgen - " 170 | set "Source_Exe=%~dp0Optimize_NextGen_VE.exe" 171 | if "%mode_switch%"=="/full" ( set "Arguments=/full" & goto :Create_Powershell_Script ) 172 | set "Arguments_pool_1=%mode_switch% %warn_switch% %backup_serv_switch% %backup_gp_switch% %gp_switch% %gps_switch% %importcp_switch% %importfp_switch%" 173 | set "Arguments_pool_2=%priv_switch% %perf_switch% %ss_switch% %wc_switch% %mm_switch% %store_switch% %games_switch% %serv_switch% %enablewl_switch% %enablefps_switch%" 174 | set "Arguments_pool_3=%idx_switch% %netapps_switch% %gex_switch% %evlog_switch% %trim_switch% %norestart_switch%" 175 | set "Arguments=%Arguments_pool_1% %Arguments_pool_2% %Arguments_pool_3%" 176 | set "Arguments=%Arguments: =%" 177 | set "Arguments=%Arguments:-= -%" 178 | 179 | :Create_Powershell_Script 180 | @echo param ^( [string]$SourceExe, [string]$ArgumentsToSourceExe, [string]$Destination, [string]$WorkDirectory, [string]$Description, [string]$Icon ^)> "%ShortcutScriptPath%" 181 | @echo $WshShell = New-Object -comObject WScript.Shell>> "%ShortcutScriptPath%" 182 | @echo $Shortcut = $WshShell.CreateShortcut^($Destination^)>> "%ShortcutScriptPath%" 183 | @echo $Shortcut.TargetPath = $SourceExe>> "%ShortcutScriptPath%" 184 | @echo $Shortcut.Arguments = $ArgumentsToSourceExe>> "%ShortcutScriptPath%" 185 | @echo $Shortcut.WorkingDirectory = $WorkDirectory>> "%ShortcutScriptPath%" 186 | @echo $Shortcut.Description = $Description>> "%ShortcutScriptPath%" 187 | @echo $Shortcut.IconLocation = $Icon>> "%ShortcutScriptPath%" 188 | @echo $Shortcut.Save^(^)>> "%ShortcutScriptPath%" 189 | @echo $bytes = [System.IO.File]::ReadAllBytes^("$Destination"^)>> "%ShortcutScriptPath%" 190 | @echo $bytes[0x15] = $bytes[0x15] -bor 0x20 #set byte 21 ^(0x15^) bit 6 ^(0x20^) ON>> "%ShortcutScriptPath%" 191 | @echo [System.IO.File]::WriteAllBytes^("$Destination", $bytes^)>> "%ShortcutScriptPath%" 192 | 193 | :: Set additional names 194 | if "%mode_switch%"=="/full" ( set "Link_Name=%Link_Name%Full" & set "Shorcut_Description=%Shorcut_Description% full mode" & goto :Create_Shortcut ) 195 | if "%mode_switch%"=="/custom" ( set "Link_Name=%Link_Name%Custom" & set "Shorcut_Description=%Shorcut_Description% custom mode" & goto :Create_Shortcut ) 196 | if "%Arguments%"==%mode_switch% ( 197 | if "%mode_switch%"=="/fast" ( set "Link_Name=%Link_Name%Fast" & set "Shorcut_Description=%Shorcut_Description% fast mode" ) 198 | if "%mode_switch%"=="/offline" ( set "Link_Name=%Link_Name%Offline" & set "Shorcut_Description=%Shorcut_Description% offline mode" ) 199 | ) else ( 200 | if "%mode_switch%"=="/fast" ( set "Link_Name=%Link_Name%Fast with options" & set "Shorcut_Description=%Shorcut_Description% fast mode with switches" ) 201 | if "%mode_switch%"=="/offline" ( set "Link_Name=%Link_Name%Offline with options" & set "Shorcut_Description=%Shorcut_Description% offline mode with switches" ) 202 | ) 203 | 204 | :Create_Shortcut 205 | %PScommand% -file "%ShortcutScriptPath%" "%Source_Exe%" "!Arguments!" "%Link_Name%.lnk" "%WorkDir%" "%Shorcut_Description%" "%Source_Exe%" 206 | echo: 207 | nul 2>&1 211 | timeout /t 5 >nul 2>&1 212 | exit /b 213 | --------------------------------------------------------------------------------