rem USE AT OWN RISK AS IS WITHOUT WARRANTY OF ANY KIND !!!!! rem USE AT OWN RISK AS IS WITHOUT WARRANTY OF ANY KIND !!!!! rem USE AT OWN RISK AS IS WITHOUT WARRANTY OF ANY KIND !!!!! rem Licensed under the Apache License, Version 2.0 (the "License"); rem you may not use this file except in compliance with the License. rem You may obtain a copy of the License at rem http://www.apache.org/licenses/LICENSE-2.0 rem Unless required by applicable law or agreed to in writing, software rem distributed under the License is distributed on an "AS IS" BASIS, rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem See the License for the specific language governing permissions and rem limitations under the License. rem Original in http://akq.fi/w10/Win_10_tweakkeja_osa_3.txt rem ========================= Remove various startup entries and policies ========================= del ""%SystemDrive%\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\*"" /s /f /q del ""%LocalAppData%\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\*"" /s /f /q reg delete "HKCU\Software\Microsoft\Command Processor" /v "AutoRun" /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Startup" /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Startup" /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop" /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\RunServices" /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce" /f reg delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server" /f reg delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows" /f reg delete "HKCU\Software\Policies\Microsoft\Windows\System" /f reg delete "HKLM\Software\Microsoft\Command Processor" /v "AutoRun" /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Common Startup" /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Common Startup" /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects" /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop" /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices" /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce" /f reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server" /f reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Windows" /v "AppInit_DLLs" /f reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Shell" /f reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Userinit" /f reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "VMApplet" /f reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\AlternateShells" /f reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell" /f reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Taskman" /f reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit" /f reg delete "HKLM\Software\Policies\Microsoft\Windows\System" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Run" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\RunOnce" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Windows" /v "AppInit_DLLs" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Shell" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Userinit" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "VMApplet" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon\AlternateShells" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon\Taskman" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit" /f reg delete "HKLM\System\CurrentControlSet\Control\SafeBoot" /v "AlternateShell" /f reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "BootExecute" /f reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "Execute" /f reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "SETUPEXECUTE" /f reg delete "HKLM\System\CurrentControlSet\Control\Terminal Server\Wds\rdpwd" /v "StartupPrograms" /f rem ========================= Restore essential startup entries ========================= reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "EvtMgr6" /t REG_SZ /d "C:\Program Files\Logitech\SetPointP\SetPoint.exe /launchGaming" /f reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Shell" /t REG_SZ /d "explorer.exe" /f reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Userinit" /t REG_SZ /d "C:\Windows\System32\userinit.exe," /f reg add "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "Shell" /t REG_SZ /d "explorer.exe" /f reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "BootExecute" /t REG_MULTI_SZ /d "autocheck autochk *" /f reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "SETUPEXECUTE" /t REG_MULTI_SZ /d "" /f rem ========================= Windows Basics ========================= rem Disable Windows Firewall / AllProfiles / CurrentProfile / DomainProfile / PrivateProfile / PublicProfile netsh advfirewall set allprofiles state off rem Disable IPv6 netsh int ipv6 isatap set state disabled netsh int teredo set state disabled netsh interface ipv6 6to4 set state state=disabled undoonstop=disabled reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v "DisabledComponents" /t REG_DWORD /d "255" /f rem 506 - Disable Sticky Keys when SHIFT is pressed 5 times / 510 - Enable reg add "HKCU\Control Panel\Accessibility\StickyKeys" /v "Flags" /t REG_SZ /d "506" /f rem 122 - Disable Filter Keys when SHIFT is pressed for 8 seconds / 126 - Enable reg add "HKCU\Control Panel\Accessibility\Keyboard Response" /v "Flags" /t REG_SZ /d "122" /f rem Set Formats to Metric reg add "HKCU\Control Panel\International" /v "iDigits" /t REG_SZ /d "2" /f reg add "HKCU\Control Panel\International" /v "iLZero" /t REG_SZ /d "1" /f reg add "HKCU\Control Panel\International" /v "iMeasure" /t REG_SZ /d "0" /f reg add "HKCU\Control Panel\International" /v "iNegNumber" /t REG_SZ /d "1" /f reg add "HKCU\Control Panel\International" /v "iPaperSize" /t REG_SZ /d "1" /f reg add "HKCU\Control Panel\International" /v "iTLZero" /t REG_SZ /d "1" /f reg add "HKCU\Control Panel\International" /v "sDecimal" /t REG_SZ /d "," /f reg add "HKCU\Control Panel\International" /v "sNativeDigits" /t REG_SZ /d "0123456789" /f reg add "HKCU\Control Panel\International" /v "sNegativeSign" /t REG_SZ /d "-" /f reg add "HKCU\Control Panel\International" /v "sPositiveSign" /t REG_SZ /d "" /f reg add "HKCU\Control Panel\International" /v "NumShape" /t REG_SZ /d "1" /f rem When windows detects communicarions activity / 0 - Mute all other sounds / 1 - Reduce all other by 80% / 2 - Reduce all other by 50% / 3 - Do nothing reg add "HKCU\SOFTWARE\Microsoft\Multimedia\Audio" /v "UserDuckingPreference" /t REG_DWORD /d "3" /f rem ========================= Windows Defender ========================= rem To completely disable WD - pastebin.com/kYCVzZPz rem An alternative option - winaero.com/blog/nodefender-disable-windows-defender-in-windows-10-with-few-clicks rem 1 - Disable Real-time protection reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f rem ========================= Windows Desktop ========================= rem 0 - Disable Cortana reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "AllowCortana" /t REG_DWORD /d 0 /f rem 0 - Disable Bing Search reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /t REG_DWORD /d "0" /f rem 0 - Disable Cortana in Taskbar search reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "CortanaEnabled" /t REG_DWORD /d 0 /f REM 0 - Disable Cortana, Bing Search and Searchbar reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0 /f rem 1 - Disable web search in search bar reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "DisableWebSearch" /t REG_DWORD /d 1 /f rem 0 - Disable search web when searching pc reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ConnectedSearchUseWeb" /t REG_DWORD /d 0 /f reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "ConnectedSearchUseWebOverMeteredConnections" /t REG_DWORD /d 0 /f rem ========================= Windows Error Reporting ========================= rem 1 - Disable Windows Error Reporting (WER) reg add "HKCU\Software\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d 1 /f reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d 1 /f rem 1 - Disable WER sending second-level data reg add "HKCU\Software\Microsoft\Windows\Windows Error Reporting" /v "DontSendAdditionalData" /t REG_DWORD /d 1 /f reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /v "DontSendAdditionalData" /t REG_DWORD /d 1 /f rem 1 - Disable WER crash dialogs, popups reg add "HKCU\Software\Microsoft\Windows\Windows Error Reporting" /v "DontShowUI" /t REG_DWORD /d 1 /f reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /v "DontShowUI" /t REG_DWORD /d 1 /f rem 1 - Disable WER logging reg add "HKCU\Software\Microsoft\Windows\Windows Error Reporting" /v "LoggingDisabled" /t REG_DWORD /d 1 /f reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /v "LoggingDisabled" /t REG_DWORD /d 1 /f rem ========================= Windows Explorer ========================= rem All of the components of Windows Explorer run a single process / 1 - All instances of Windows Explorer run in one process and the Desktop and Taskbar run in a separate process reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "DesktopProcess" /t REG_DWORD /d 1 /f rem 0 - Do not hide extensions for known file types reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f rem 0 - Open File Explorer to Quick access / 1 - Open File Explorer to This PC reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 1 /f rem ========================= Windows Logging ========================= rem DiagLog required by Diagnostic Policy Service rem EventLog-Application required by Windows rem EventLog-System required by Windows rem WdiContextLog required by Diagnostic Service Host, Diagnostic System Host and ShellExperienceHost (Start, Time, Volume and such) reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\AITEventLog" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\AppModel" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\AppPlat" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\Audio" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\AutoLogger-Diagtrack-Listener" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\Circular Kernel Context Logger" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\AutoLogger\DefenderApiLogger" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\AutoLogger\DefenderAuditLogger" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\LwtNetLog" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\NtfsLog" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\ReadyBoot" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\SQMLogger" /v "Start" /t REG_DWORD /d 0 /f reg add "HKLM\System\CurrentControlSet\Control\WMI\Autologger\WiFiSession" /v "Start" /t REG_DWORD /d 0 /f rem ========================= Windows Notifications ========================= rem 1 - Show me tips about Windows reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\SoftLanding" /v "Enabled" /t REG_DWORD /d 0 /f rem 1 - Do not show app Notifications / Disable the message: Turn on Windows Security Center service reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_TOASTS_ENABLED" /t REG_DWORD /d 0 /f rem 1 - Do not show alarms, reminders and incoming VOIP calls on the lock reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_ALLOW_CRITICAL_TOASTS_ABOVE_LOCK" /t REG_DWORD /d 0 /f rem 1 - Do not show notifications on the lock screen reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_ALLOW_TOASTS_ABOVE_LOCK" /t REG_DWORD /d 0 /f rem 1 - Hide notifications while presenting reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v "NOC_GLOBAL_SETTING_SUPRESS_TOASTS_WHILE_DUPLICATING" /t REG_DWORD /d 0 /f rem 0/1 - Do not show app Notifications reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v "ToastEnabled" /t REG_DWORD /d 0 /f reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" /v "NoToastApplicationNotification" /t REG_DWORD /d 1 /f rem 1 - Disable Action Center reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d 1 /f rem ========================= Windows Optimizations ========================= rem n - Disable Background disk defragmentation / y - EnableHow long in milliseconds you want to have for a startup delay time for desktop apps that run at startup to load reg add "HKLM\Software\Microsoft\Dfrg\BootOptimizeFunction" /v "Enable" /t REG_SZ /d "n" /f rem 0 - Disable Background auto-layout / Disable Optimize Hard Disk when idle reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\OptimalLayout" /v "EnableAutoLayout" /t REG_DWORD /d 0 /f rem Determines whether user processes end automatically when the user either logs off or shuts down / 1 - Processes end automatically reg add "HKCU\Control Panel\Desktop" /v "AutoEndTasks" /t REG_DWORD /d 1 /f rem When the time is set too low, apps like Settings will crash, system icons like Volume and Power will disappear rem Specifies in milliseconds how long the System waits for user processes to end after the user clicks the End Task command button in Task Manager reg add "HKCU\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "5000" /f rem Determines how long the System waits for user processes to end after the user attempts to log off or to shut down reg add "HKCU\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "10000" /f rem Determines in milliseconds how long the System waits for services to stop after notifying the service that the System is shutting down reg add "HKLM\System\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "10000" /f rem How long in milliseconds you want to have for a startup delay time for desktop apps that run at startup to load reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v "StartupDelayInMSec" /t REG_DWORD /d 0 /f rem 1 - NTFS does not create short file names reg add "HKLM\System\CurrentControlSet\Control\FileSystem" /v "NtfsDisable8dot3NameCreation" /t REG_DWORD /d 1 /f rem 1 - Disable the Encrypting File System (EFS) reg add "HKLM\System\CurrentControlSet\Control\FileSystem" /v "NtfsDisableEncryption" /t REG_DWORD /d 1 /f rem 1 - When listing directories, NTFS does not update the last-access timestamp, and it does not record time stamp updates in the NTFS log reg add "HKLM\System\CurrentControlSet\Control\FileSystem" /v "NtfsDisableLastAccessUpdate" /t REG_DWORD /d 1 /f rem 0 - Drivers and the kernel can be paged to disk as needed / 1 - Drivers and the kernel must remain in physical memory reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "DisablePagingExecutive" /t REG_DWORD /d 1 /f rem 0 - Disable Prefetch / 1 - Enable Prefetch when the application starts / 2 - Enable Prefetch when the device starts up / 3 - Enable Prefetch when the application or device starts up reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /t REG_DWORD /d 0 /f rem 0 - Disable SuperFetch / 1 - Enable SuperFetch when the application starts up / 2 - Enable SuperFetch when the device starts up / 3 - Enable SuperFetch when the application or device starts up reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /t REG_DWORD /d 0 /f rem 0 - Disable Fast Startup for a Full Shutdown / 1 - Enable Fast Startup (Hybrid Boot) for a Hybrid Shutdown reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v "HiberbootEnabled" /t REG_DWORD /d 0 /f rem Disable Hibernation / Disable Fast Startup (Hybrid Boot) powercfg -h off rem ========================= Windows Policies ========================= rem Disable Active Desktop reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ForceActiveDesktopOn" /t REG_DWORD /d "0" /f reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoActiveDesktop" /t REG_DWORD /d "1" /f reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoActiveDesktopChanges" /t REG_DWORD /d "1" /f rem Off - Disable Windows SmartScreen / On - Enable Windows SmartScreen reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f rem 0 - Disable Windows Script Host for the current user reg add "HKCU\Software\Microsoft\Windows Script Host\Settings" /v "Enabled" /t REG_DWORD /d 0 /f rem 0 - Disable Windows Script Host for all users reg add "HKLM\Software\Microsoft\Windows Script Host\Settings" /v "Enabled" /t REG_DWORD /d 0 /f rem ========================= Windows Privacy ========================= rem Additional disabled privacy features are disabled in sections: Windows Logging / Windows Scheduled Tasks / Windows Services rem 0 - Disable WiFi Sense (shares your WiFi network login with other people) reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v "value" /t REG_DWORD /d 0 /f reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v "value" /t REG_DWORD /d 0 /f rem Diagnostic and usage data / 0 - Never / 1 - Basic / 2 - Enhanced / 3 - Full reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Application-Experience/Program-Telemetry" /v "Enabled" /t REG_DWORD /d 0 /f reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f rem 0 - Disable Customer Experience Improvement (CEIP/SQM - Software Quality Management) reg add "HKLM\Software\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 0 /f rem 0 - Disable Application Impact Telemetry (AIT) reg add "HKLM\Software\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f rem 0 - Disable sending files to encrypted drives reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\EnhancedStorageDevices" /v "TCGSecurityActivationDisabled" /t REG_DWORD /d 0 /f rem 1 - Disable sync files to one drive reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSyncNGSC" /t REG_DWORD /d 1 /f rem 2 - Disable sending settings to cloud reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSync" /t REG_DWORD /d 2 /f rem 1 - Disable synchronizing files to cloud reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "DisableSettingSyncUserOverride" /t REG_DWORD /d 1 /f rem ========================= Windows Scheduled Tasks ========================= rem Disable Background Synchronization (permanently, it can not be disabled) schtasks /DELETE /TN "Microsoft\Windows\SettingSync\BackgroundUploadTask" /F schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319" /Disable schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 64" /Disable schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 64 Critical" /Disable schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 Critical" /Disable schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Disable schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Disable schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable schtasks /Change /TN "Microsoft\Windows\Defrag\ScheduledDefrag" /Disable schtasks /Change /TN "Microsoft\Windows\Device Setup\Metadata Refresh" /Disable schtasks /Change /TN "Microsoft\Windows\Diagnosis\Scheduled" /Disable schtasks /Change /TN "Microsoft\Windows\DiskCleanup\SilentCleanup" /Disable schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /Disable schtasks /Change /TN "Microsoft\Windows\Feedback\Siuf\DmClient" /Disable schtasks /Change /TN "Microsoft\Windows\File Classification Infrastructure\Property Definition Sync" /Disable schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Disable schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable schtasks /Change /TN "Microsoft\Windows\Maps\MapsToastTask" /Disable schtasks /Change /TN "Microsoft\Windows\Maps\MapsUpdateTask" /Disable schtasks /Change /TN "Microsoft\Windows\Mobile Broadband Accounts\MNO Metadata Parser" /Disable schtasks /Change /TN "Microsoft\Windows\Multimedia\SystemSoundsService" /Disable schtasks /Change /TN "Microsoft\Windows\NetCfg\BindingWorkItemQueueHandler" /Disable schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable schtasks /Change /TN "Microsoft\Windows\Offline Files\Background Synchronization" /Disable schtasks /Change /TN "Microsoft\Windows\Offline Files\Logon Synchronization" /Disable schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable schtasks /Change /TN "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /Disable schtasks /Change /TN "Microsoft\Windows\Ras\MobilityManager" /Disable schtasks /Change /TN "Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask" /Disable schtasks /Change /TN "Microsoft\Windows\RetailDemo\CleanupOfflineContent" /Disable schtasks /Change /TN "Microsoft\Windows\RemovalTools\MRT_HB" /Disable schtasks /Change /TN "Microsoft\Windows\SettingSync\NetworkStateChangeTask" /Disable schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitor" /Disable schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefresh" /Disable schtasks /Change /TN "Microsoft\Windows\Shell\IndexerAutomaticMaintenance" /Disable schtasks /Change /TN "Microsoft\Windows\SpacePort\SpaceAgentTask" /Disable schtasks /Change /TN "Microsoft\Windows\SystemRestore\SR" /Enable schtasks /Change /TN "Microsoft\Windows\Sysmain\ResPriStaticDbSync" /Disable schtasks /Change /TN "Microsoft\Windows\Sysmain\WsSwapAssessmentTask" /Disable schtasks /Change /TN "Microsoft\Windows\TextServicesFramework\MsCtfMonitor" /Disable schtasks /Change /TN "Microsoft\Windows\TPM\Tpm-HASCertRetr" /Disable schtasks /Change /TN "Microsoft\Windows\TPM\Tpm-Maintenance" /Disable schtasks /Change /TN "Microsoft\Windows\User Profile Service\HiveUploadTask" /Disable schtasks /Change /TN "Microsoft\Windows\WCM\WiFiTask" /Disable schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Disable schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Disable schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Disable schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable schtasks /Change /TN "Microsoft\Windows\Windows Filtering Platform\BfeOnServiceStartTypeChange" /Disable schtasks /Change /TN "Microsoft\Windows\Windows Media Sharing\UpdateLibrary" /Disable schtasks /Change /TN "Microsoft\Windows\Wininet\CacheTask" /Disable schtasks /Change /TN "Microsoft\Windows\Workplace Join\Automatic-Device-Join" /Disable rem ========================= Windows Services ========================= rem Application Information required by UAC rem Credential Manager required to store credentials (check User Accounts - Credential Manager) rem COM+ Event System required by Windows rem Distributed Link Tracking Client required to open shortcuts and System apps rem IP Helper (WinHTTP Web Proxy Auto-Discovery Service) required to login to Microsoft Account (Account, Cortana, Store) rem Network Location Awareness required by Windows Updates rem One Drive required by Windows Mail rem Windows Connection Manager required by WiFi and Data Usage rem Windows Driver Foundation - User-mode Driver Framework required by some drivers like USB devices rem Windows Firewall (Base Filtering Engine) required by Windows Store Apps (80073d0a) rem AMD External Events Utility sc config "AMD External Events Utility" start= disabled rem AMD FUEL Service sc config "AMD FUEL Service" start= disabled rem Application Layer Gateway Service sc config ALG start= disabled rem BitLocker Drive Encryption Service sc config BDESVC start= disabled rem CNG Key Isolation sc config KeyIso start= disabled rem Diagnostics Tracking Service sc config DiagTrack start= disabled rem Distributed Transaction Coordinator sc config MSDTC start= disabled rem dmwappushsvc sc config dmwappushservice start= disabled rem Encrypting File System (EFS) sc config EFS start= disabled rem IKE and AuthIP IPsec Keying Modules sc config IKEEXT start= disabled rem IPsec Policy Agent sc config PolicyAgent start= disabled rem Offline Files sc config CscService start= disabled rem One Drive Service sc config OneSyncSvc start= disabled rem One Drive Service reg add "HKLM\SYSTEM\CurrentControlSet\Services\OneSyncSvc_Session1" /v "Start" /t REG_DWORD /d 4 /f rem Print Spooler (Required by the printer) sc config Spooler start= disabled rem Program Compatibility Assistant Service sc config PcaSvc start= disabled rem Remote Desktop Services sc config TermService start= disabled rem Retail Demo sc config RetailDemo start=disabled rem Secure Socket Tunneling Protocol Service sc config SstpSvc start= disabled rem Security Center sc config wscsvc start= disabled rem Server sc config LanmanServer start= disabled rem Shell Hardware Detection sc config ShellHWDetection start= disabled rem Smart Card sc config SCardSvr start= disabled rem SSDP Discovery sc config SSDPSRV start= disabled rem Superfetch sc config SysMain start= disabled rem TCP/IP NetBIOS Helper (Required by some internet connections like aDSL) sc config lmhosts start= disabled rem WebClient sc config WebClient start= disabled rem Windows Connect Now - Config Registrar (Required by WPS WiFi connection) sc config wcncsvc start= disabled rem Windows Connection Manager (Required by WiFi Connection) rem sc config Wcmsvc start= disabled rem Windows Error Reporting Service sc config WerSvc start= disabled rem Windows Font Cache Service sc config FontCache start= disabled rem Windows Font Cache Service sc config FontCache start= disabled rem Windows Remote Management (WS-Management) sc config WinRM start= disabled rem WinHTTP Web Proxy Auto-Discovery Service sc config WinHttpAutoProxySvc start= disabled rem Windows Search sc config WSearch start= disabled rem Wise Boot Assistant sc config WiseBootAssistant start= disabled rem WMPNetworkSVC helps windows media player to share its library with network sc config WMPNetworkSvc start= disabled rem Workstation sc config LanmanWorkstation start= disabled rem ========================= Windows Shell ========================= rem Add “Take Ownership” Option in Files and Folders Context Menu in Windows reg add "HKCR\*\shell\runas" /ve /t REG_SZ /d "Take ownership" /f reg add "HKCR\*\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f reg add "HKCR\*\shell\runas" /v "NoWorkingDirectory" /t REG_SZ /d "" /f reg add "HKCR\*\shell\runas\command" /ve /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant administrators:F" /f reg add "HKCR\*\shell\runas\command" /v "IsolatedCommand" /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant administrators:F" /f reg add "HKCR\Directory\shell\runas" /ve /t REG_SZ /d "Take ownership" /f reg add "HKCR\Directory\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f reg add "HKCR\Directory\shell\runas" /v "NoWorkingDirectory" /t REG_SZ /d "" /f reg add "HKCR\Directory\shell\runas\command" /ve /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" /r /d y && icacls \"%%1\" /grant administrators:F /t" /f reg add "HKCR\Directory\shell\runas\command" /v "IsolatedCommand" /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" /r /d y && icacls \"%%1\" /grant administrators:F /t" /f rem ========================= Windows Updates ========================= rem Choose how updates are delivered / 0 - Get Updates from MS / 1 - get updates from MS and from/to PCs on my local network / 2 - get updates from MS and from/to PCs on my local network and PCs on the internet reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v "DODownloadMode" /t REG_DWORD /d 0 /f rem 1 - Disable Malicious Software Removal Tool offered via Windows Updates (MRT) reg add "HKLM\Software\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD /d 1 /f rem 2 - Notify before download / 3 - Automatically download and notify of installation / 4 - Automatic download and scheduled installation (Only valid if values exist for ScheduledInstallDay and ScheduledInstallTime) / 5 - Automatic Updates is required, but end users can configure it reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AUOptions" /t REG_DWORD /d 2 /f rem 0 - Enable Auto Checking for Windows Updates / 1 - Disable Auto Checking for Windows Updates (Ignores "AUOptions" and after checking downloads WU automatically) reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 0 /f rem 0 - Every day / 1 - Sunday / 2 - Monday / 3 - Tuesday / 4 - Wednesday / 5 - Thursday / 6 - Friday / 7 - Saturday reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "ScheduledInstallDay" /t REG_DWORD /d 0 /f rem 10 - 10th hour / 23 - 23th hour reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "ScheduledInstallTime" /t REG_DWORD /d 10 /f rem 0 - Default / 1 - Defer upgrades, new Windows features won’t be downloaded or installed for several months. Deferring upgrades doesn’t affect security updates. reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\UX\Settings" /v "DeferUpgrade" /t REG_DWORD /d 0 /f rem ========================= Windows Waypoint ========================= fsutil usn deletejournal /d /n c: rem Close Edge process taskkill /f /im dllhost.exe rem start "" "C:\Program Files\CCleaner\CCleaner64.exe" /AUTO /SHUTDOWN pause