diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..0b22297 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.bat text eol=crlf \ No newline at end of file diff --git a/DOCUMENT.md b/DOCUMENT.md new file mode 100644 index 0000000..f70d27b --- /dev/null +++ b/DOCUMENT.md @@ -0,0 +1,376 @@ + +# Fix10.bat full documentation +## for version 1.3.1 +This document provides a list of the changes performed by Fix10.bat, as well as a detailed explanation for each one of them. + +For most of the changes, it is not known whether they are restricted to specific versions of Windows 10 (original, Anniversary, Creators, Fall Creators...) or editions (Home, Pro, Enterprise). If such information is known, it will be indicated for the affected changes. + +The documentation will be provided in sections ordered according to their order of appearance in the source code of the batch file itself. If you +want to disable some of the features listed below, simply edit the fix10.bat file and remove or comment out the lines corresponding to that action. + +# Disclaimer +The batch file in question requires administrative privileges to run on a system and is intended to only be run on Windows 10. Regardless of conditions, the script is run at your own risk, and the author of fix10.bat cannot be responsible for increased boot times (will likely happen) or, perhaps even worse, features removed from the system or the system refusing to function or start up properly, or any other adverse side effects. By running the batch file, you accept that you have read this disclaimer and understand its and the script's consequences. + +# Initialization +The batch script requires administrative rights and checks whether the OS being run is Windows 10, with a warning if Windows 10 is not detected. If the batch script does not have administrative rights, it will attempt to elevate itself. + +# Disable services +Several of the services are either disabled here or set to start on demand (so not automatically on startup). + +## DiagTrack, Diagnostics Tracking Service +This service is also known as the **Connected User Experiences and Telemetry** starting from Windows 10 Anniversary Update onwards. DiagTrack is the service's actual underlying technical name, and is also how Fix10.bat refers to it in order to maintain compatibility. + +The service in question is used to upload telemetry information to Microsoft's servers, and the data sent is described in detail on Microsoft's website: https://docs.microsoft.com/en-us/windows/configuration/configure-windows-telemetry-in-your-organization +> Use this article to make informed decisions about how you might configure telemetry in your organization. Telemetry is a term that means different things to different people and organizations. For this article, we discuss telemetry as system data that is uploaded by the **Connected User Experience and Telemetry** component. The telemetry data is used to help keep Windows devices secure by identifying malware trends and other threats and to help Microsoft improve the quality of Windows and Microsoft services. + +Disabling the service is used as a preventive measure to block any data from being sent. The drawbacks of leaving such telemetry on include its intrusiveness, questionable impact on privacy, and active usage of the active network connection (especially a problem on metered or limited connections). + +## dmwappushsvc, Dmwappushservice +*Since v1.3.0, these services are no longer automatically disabled by Fix10, but you can uncomment the lines if you want to.* + +This service is the WAP Push Message Routing Service. Microsoft has not documented this service extensively, but it is used for system bootstrapping and provisioning, and is often also considered to be connected with telemetry (see the service above), so it is often recommended to disable it along DiagTrack. + +**Important note: disabling this service will break the *sysprep* script: the script will simply freeze.** To fix this issue, simply enable the service again with the following command under the Command Line running as an administrator: `sc config Dmwappushsvc start= auto & net start Dmwappushsvc` + +## diagnosticshub.standardcollector.service +The full name of this service is *Microsoft (R) Diagnostics Hub Standard Collector Service*. The service collected real-time ETW event data and processes it for diagnostic purposes. Since it is connected to telemetry, it is often disabled as well. + +## TrkWks +TrkWks is the technical name of the *Distributed Link Tracking Client* service, which "*maintains links between NTFS files within a computer or across computers in a network domain*". The service is disabled mostly for optimization and telemetry purposes. + +## WMPNetworkSvc +The *Windows Media Player Network Sharing Service* shares Windows Media Player libraries with other devices using UPnP. It is sometimes connected with high CPU usage and most people are likely to use something else for playing media, which is why the service isn't of any importance for them. + +## DoSvc +DoSvc, or the *Delivery Optimization Service*, is used for Delivery Optimization and download updates on Windows Update. Since it seems necessary in order to Windows Update to function properly, the service is not disabled, but rather set to start up on demand (which is the default setting on some newer editions of Windows 10 as well). + +## DcpSvc +DcpSvc, or *DataCollectionPublishingService*, was used in older versions of Windows 10 to send data to other applications. Starting it manually seems to be the default setting for it, and this is what Fix10.bat sets it to as well (since applications may need this service to run properly). The service is not present in newer versions of Windows 10 (Creators Update onwards?). + +# Disable scheduled tasks +All the tasks mentioned here are disabled with the `schtasks` command. + +## Microsoft Compatibility Appraiser +This scheduled task is used with the Customer Experience Improvement Program (CEIP), and is disabled, since Fix10.bat opts the computer out from CEIP. The task itself is used to check for program compatibility upon a major Windows 10 update, and could even be responsible for programs being uninstalled on upgrades. + +## ProgramDataUpdater +This scheduled task is used with the Customer Experience Improvement Program (CEIP), and is disabled, since Fix10.bat opts the computer out from CEIP. Based on the task's name, it is used to collect program data of some kind. + +## Consolidator, KernelCeipTask, UsbCeip +These scheduled tasks are used with the Customer Experience Improvement Program (CEIP), and is disabled, since Fix10.bat opts the computer out from CEIP. Consolidator is responsible for running `wsqmcons.exe`, for which the only documentation provided is +> This program collects and sends usage data to Microsoft. +KernelCeipTask (The Kernel CEIP (Customer Experience Improvement Program) Task) "*collects additional information about the system and sends this data to Microsoft.*" +UsbCeip `collects Universal Serial Bus related statistics and information about your machine and sends it to the Windows Device Connectivity engineering group at Microsoft.` + +# Search UI firewall +The PowerShell command executed under this section adds a new firewall rule that blocks the `SearchUI.exe` process from sending any information to the Internet. This will effectively break online searching in Windows Search as well as Cortana, but both are also disabled later on. + +# Telemetry stuff +The somewhat less descriptive section disables the `AutoLogger-Diagtrack-Listener.etl` file by emptying it and preventing the system from modifying it using file permissions. This file is used for tracking event logs and is connected to telemetry, with some even accusing it of being a component of a "*keylogger*". + +# Ultimate Performance +This command enables the Ultimate Performance power mode on Windows 10 Spring Creators Update and above. It is not selected by default, but will be visible under the Power settings. + +# taskmgr, regedit, cmd +This section does a total of six registry changes: all of them involve the policies used to disable the Task Manager, Registry Editor and Command Interpreter. The registry changes simply disable these restrictions, allowing the tools to be used again if blocked that way. + +# Registry header +The registry file that starts to be generated here will be written into the temp directory (full filename `%TEMP%\fix10bat.reg`) and applied once it is finished. The registry changes are numerous, but documentation will be provided for every single one. The header section simply starts the generation of the .reg file by starting with the standard .reg header. + +# Registry HKLM +These changes all apply to `HKEY_LOCAL_MACHINE` and are therefore global for the computer. + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU` +* `AUOptions`=`dword:00000002` + * Sets the automatic updates to "Notify before download". [(Source)](https://docs.microsoft.com/en-us/windows/deployment/update/waas-wu-settings#configure-automatic-updates) +* `NoAutoUpdate`=`dword:00000000` + * Enables automatic updates (but see above setting). [(Source)](https://support.microsoft.com/en-us/help/328010/how-to-configure-automatic-updates-by-using-group-policy-or-registry-s) +* `AUPowerManagement`=`dword:00000000` + * Prohibits the system from waking up to perform updates. +* `NoAutoRebootWithLoggedOnUsers`=`dword:00000001` + * Prohibits the system from restarting with users logged on. [(Source)](https://technet.microsoft.com/en-us/library/dd939923%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396) +* `RebootRelaunchTimeout`=`dword:000005a0` + * Sets the reboot relaunch timeout to the maximum value of 1440. This is the number of minutes between scheduled restart notifications. [(Source)](https://technet.microsoft.com/en-us/library/cc708449(v=ws.10).aspx) +* `RebootRelaunchTimeoutEnabled`=`dword:00000001` + * Makes the change above effective. [(Source)](https://technet.microsoft.com/en-us/library/cc708449(v=ws.10).aspx) + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU` +* Same registry values as above. + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update` +* `AUOptions`=`dword:00000002` + * The same as under `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU`. + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows` +* `DisableFileSync`=`dword:00000001` + * Disables OneDrive's file synchronization and effectively the integration itself. + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config` +* `DownloadMode`=`dword:00000000` +* `DODownloadMode`=`dword:00000000` + * Disables Delivery Optimization and sets updates to only be downloaded directly from Microsoft. + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection` +## `HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\CurrentVersion\DataCollection` +* `AllowTelemetry`=`dword:00000000` + * Sets the Telemetry level to Security, which according to Microsoft, will transmit "[i]nformation that’s required to help keep Windows, Windows Server, and System Center secure, including data about the Connected User Experience and Telemetry component settings, the Malicious Software Removal Tool, and Windows Defender." Note that this is equal to "Basic" on Windows 10 Home and Pro. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/configure-windows-telemetry-in-your-organization) +* `DoNotShowFeedbackNotifications`=`dword:00000001` + * Disables feedback notifications sent by or via the Feedback app. [(Source)](https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-experience#experience-donotshowfeedbacknotifications) + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection` +* `AllowTelemetry`=`dword:00000000` + * Sets the Telemetry level to Security, similar to the setting under the key `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection`. + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Siuf\Rules` +* `PeriodInNanoSeconds`=`dword:00000000` +* `NumberOfSIUFInPeriod`=`dword:00000000` + * Prevents Windows from asking you for feedback. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata` +* `PreventDeviceMetadataFromNetwork`=`dword:00000001` + * Prevents Windows from retrieving device metadata online. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) + +## `HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CloudContent` +* `DisableSoftLanding`=`dword:00000001` +* `DisableWindowsConsumerFeatures`=`dword:00000001` +* `DisableWindowsSpotlightFeatures`=`dword:00000001` + * Disables Windows Spotlight, which provides changing wallpapers, tips and advertisements on the Lock Screen. `DisableWindowsSpotlightFeatures` is only effective from Anniversary Update onwards. **According to Microsoft, some of these settings do not work on Windows 10 Home or Pro.** [(Source 1)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services), [(2)](https://docs.microsoft.com/en-us/windows/configuration/windows-spotlight) + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo` +* `Enabled`=`dword:00000000` + * Disables apps from using the advertising ID and resets it. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) + +## `HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AdvertisingInfo` +* `DisabledByGroupPolicy`=`dword:00000001` + * Disables apps from using the advertising ID and resets it. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) + +## `HKEY_LOCAL_MACHINE\Software\Microsoft\SQMClient\Windows` +* `CEIPEnable`=`dword:00000000` + * Opts the computer out from CEIP (Customer Experience Improvement Program). [(Source)](https://msdn.microsoft.com/en-us/library/dd405474(v=vs.85).aspx) + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat` +* `AITEnable`=`dword:00000000` + * Disables Application Impact Telemetry (AIT). +* `DisableUAR`=`dword:00000001` + * Disables the Problem Steps Recorder. Both this and the setting above are related to telemetry. + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search` +* `AllowCortana`=`dword:00000000` + * Disallows Cortana from being used on the computer. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) +* `DisableWebSearch`=`dword:00000001` + * Disallows web searches from being done using Windows Search. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) +* `ConnectedSearchUseWeb`=`dword:00000000` + * Disables searching the web via Windows Search or web results from being shown in Windows Search. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) +* `ConnectedSearchPrivacy`=`dword:00000003` + * Only sets anonymous info to be sent with Bing in web search, should it be enabled. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive` +* `DisableFileSyncNGSC`=`dword:00000001` + * Disables OneDrive's file synchronization and effectively the integration itself. (To be exact, the value disables the OneDrive for Business Next Generation Sync Client, hence NGSC, but as a result OneDrive is disabled completely). [(Source)](https://support.microsoft.com/en-us/help/3145959/onedrive-for-business-next-generation-sync-client-onedrive-exe-exits-i) + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive` +* `PreventNetworkTrafficPreUserSignIn`=`dword:00000001` + * Disables OneDrive on the computer. The exact behavior is to prevent OneDrive from generating any network traffic prior to the user signing in. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\InputPersonalization` +* `AllowInputPersonalization`=`dword:00000000` + * Disables the "usage of cloud based speech services for Cortana, dictation, or Store applications". **According to Microsoft, this setting does not work on Windows 10 Home.** [(Source)](https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-privacy#privacy-allowinputpersonalization) +* `RestrictImplicitInkCollection`=`dword:00000001` + * Disables the usage of contact and calendar data for the automatic learning of speech patterns. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) +* `RestrictImplicitTextCollection`=`dword:00000001` + * Microsoft has not documented this setting, but it is very likely related to the above, and is probably used for spellchecking. + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\config` +* `AutoConnectAllowedOEM`=`dword:00000000` + * Turns off Wi-Fi Sense and all Wi-Fi Sense features. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-wifi-sense-in-enterprise) + +## `HKEY_LOCAL_MACHINE\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting` +* `value`=`dword:00000000` + * Turns off Wi-Fi sense features. + +## `HKEY_LOCAL_MACHINE\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots` +* `value`=`dword:00000000` + * Turns off Wi-Fi sense features. **According to Microsoft, this setting does not work on Windows 10 Home.** [(Source)](https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-wifi#wifi-allowwifihotspotreporting) + +# Registry HKCU for current user +These changes all apply to `HKEY_CURRENT_USER` and therefore only affect the user that runs the script. + +## `HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced` +* `DontUsePowerShellOnWinX`=`dword:00000001` + * Changes the PowerShell menu option under the Win+X menu to the classic Command Interpreter. +* `Hidden`=`dword:00000001` + * Shows hidden files in File Explorer. +* `HideFileExt`=`dword:00000000` + * Shows all file extensions in File Explorer. +* `HideDrivesWithNoMedia`=`dword:00000000` + * Shows all drives regardless of whether they have media inserted in them. +* `ShowSyncProviderNotifications`=`dword:00000000` + * Disables OneDrive and other advertisements, tips and notifications in File Explorer. + +## `HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CloudContent` +* `DisableWindowsConsumerFeatures`=`dword:00000001` +* `DisableWindowsSpotlightFeatures`=`dword:00000001` + * These two are related to the values with the same names under `HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CloudContent` and disable Windows Spotlight features. + +## `HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PenWorkspace` +* `PenWorkspaceAppSuggestionsEnabled`=`dword:00000000` + * Disables app suggestions in Windows Ink Workspace. + +## `HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager` +* `ContentDeliveryAllowed`=`dword:00000000` + * Disables automatic content delivery, more exact details are unknown. +* `RotatingLockScreenEnabled`=`dword:00000000` + * Disables Windows Spotlight's automatic changing lock screen wallpapers. +* `RotatingLockScreenOverlayEnabled`=`dword:00000000` + * Disables tooltips and advertisements on Windows Spotlight's automatic changing lock screen wallpapers. +* `SilentInstalledAppsEnabled`=`dword:00000000` + * Disables suggested apps from being installed automatically and silently. +* `SoftLandingEnabled`=`dword:00000000` + * Disables tips and advertisements from being sent as notifications. +* `SubscribedContent-310093Enabled`=`dword:00000000` + * Disables "*Show me the Windows welcome experience after updates and occasionally when I sign in to highlight what's new and suggested*" [(Source)](https://www.reddit.com/r/sysadmin/comments/7bl1f2/has_anyone_found_a_canonical_mapping_of_windows/) +* `SubscribedContent-338387Enabled`=`dword:00000000` + * Disables "*Get fun facts, tips and more from Windows and Cortana on your lock screen*" [(Source)](https://www.reddit.com/r/sysadmin/comments/7bl1f2/has_anyone_found_a_canonical_mapping_of_windows/) +* `SubscribedContent-338388Enabled`=`dword:00000000` + * Disables "*Occasionally show suggestions in Start*" [(Source)](https://www.reddit.com/r/sysadmin/comments/7bl1f2/has_anyone_found_a_canonical_mapping_of_windows/) +* `SubscribedContent-338389Enabled`=`dword:00000000` + * Disables "*Get tips, tricks, and suggestions as you use Windows*" [(Source)](https://www.reddit.com/r/sysadmin/comments/7bl1f2/has_anyone_found_a_canonical_mapping_of_windows/) +* `SubscribedContent-338393Enabled`=`dword:00000000` + * Disables "*Show me suggested content in the Settings app*" [(Source)](https://www.reddit.com/r/sysadmin/comments/7bl1f2/has_anyone_found_a_canonical_mapping_of_windows/) +* `SubscribedContent-353694Enabled`=`dword:00000000` + * Disables suggested content in the Settings app. +* `SubscribedContent-353696Enabled`=`dword:00000000` + * Disables suggested content in the Settings app. +* `SystemPaneSuggestionsEnabled`=`dword:00000000` + * Disables app suggestions in the Start Menu. + +## `HKEY_CURRENT_USER\SOFTWARE\Microsoft\Input\TIPC` +* `Enabled`=`dword:00000000` + * Disables "*Send Microsoft info about how I write to help us improve typing and writing in the future*". + +## `HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search` +* `CortanaEnabled`=`dword:00000000` + * Disables Cortana from the current user. +* `BingSearchEnabled`=`dword:00000000` + * Disables online Bing searching through Windows Search from the current user. +* `HistoryViewEnabled`=`dword:00000000` + * Prevents Cortana from showing the (search?) history. +* `DeviceHistoryEnabled`=`dword:00000000` + * Prevents Cortana from accessing the device history. +* `CortanaConsent`=`dword:00000000` + * Denies consent from Cortana for user data. +* `AllowSearchToUseLocation`=`dword:00000000` + * Prevents Cortana/Bing search from using your location. + +## `HKEY_CURRENT_USER\SOFTWARE\Microsoft\Personalization\Settings` +* `AcceptedPrivacyPolicy`=`dword:00000000` + * Disables personalized learning by setting the privacy policy related to such features as denied. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) + +## `HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore` +* `HarvestContacts`=`dword:00000000` + * Disables the usage of contact info for personalized learning. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/manage-connections-from-windows-operating-system-components-to-microsoft-services) + +## `HKEY_CURRENT_USER\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings` +* `UxOption`=`dword:00000001` + * Sets Windows to notify to schedule restart instead of automatically restarting. + +## `HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization` +* `SystemSettingsDownloadMode`=`dword:00000003` + * Restricts Windows Update's peer-to-peer updating to the local network only. + +## `HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language` +* `Enabled`=`dword:00000000` + * Prevents synchronization of language settings. This is also related to automatic learning of typing and speaking data. + +## `HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputPersonalization` +* `RestrictImplicitInkCollection`=`dword:00000001` +* `RestrictImplicitTextCollection`=`dword:00000001` + * Same behavior as under `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\InputPersonalization`. + +## `HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Privacy` +* `TailoredExperiencesWithDiagnosticDataEnabled`=`dword:00000000` + * Disables Tailored Experiences with Diagnostics Data after feature updates. [(Source)](https://docs.microsoft.com/en-us/windows/configuration/basic-level-windows-diagnostic-events-and-fields-1703) + +## `HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet` +* `SpyNetReporting`=`dword:00000000` + * Leaves Microsoft MAPS. +* `SubmitSamplesConsent`=`dword:00000002` + * Prevents file samples from being sent to Microsoft. + +# Registry HKCU for default user +These changes all apply to `HKEY_USERS\.DEFAULT` and therefore affects the system or login user. The changed values are the same applied for the current user in the previous section. Despite the name, this does not affect a "*default user*", and it is hence recommended to run this script for all users separately, including new users created afterwards. + +# Registry HKCR +These changes all apply to `HKEY_CLASSES_ROOT`. The only change done here is the addition of the "Open Command Window Here" option under the right-click menu of the File Explorer. This option has a localized name, an icon, and can only be viewed if Shift is held when the right-click menu is opened (to always show the option, remove the lines with `Extended`). + +# Registry: Photo Viewer +Changes applied here will enable the classic Windows Photo Viewer. The exact patch `Restore_Windows_Photo_Viewer_ALL_USERS_with_Sort_order_fix.reg` originates from https://www.tenforums.com/tutorials/14312-restore-windows-photo-viewer-windows-10-a.html (the link has additional information). + +At the end of this section, the generated registry file is finally applied with `reg import`. + +# Legacy Bootloader & Safe Mode +This command enables the "legacy" Windows 7 boot loader and boot menu options in Windows 10. While this may slow down the startup process by a second or two, it brings back the ability to enter the boot menu directly with F8 and use it to enter Safe Mode, which makes the change welcome in the case Safe Mode will become necessary in order to fix an issue. + +# Uninstall OneDrive +These two commands run the 32-bit and 64-bit editions of OneDriveSetup.exe with the /uninstall flag, effectively uninstalling OneDrive from the machine, since most users will not have a use for it, and Microsoft is known to advertise OneDrive with notifications as well as in the File Explorer. + +# Disable Automatic Reboot +These two commands modify the `Reboot` task template used by Windows Update, with the intended purpose being to completely disable Windows Update's ability to restart the computer of its own volition. The first command is used to get a formatted string representing the current date and time. + +# Batch utilities (if enabled) +If the config setting `fix10dropbatchutils` is set to `1` (`0` is the default setting), two batch files (so far) are dropped under `%SYSTEMROOT%` (usually `C:\Windows`) called `xqacl.bat` and `xqgod.bat`. + +`xqacl` allows starting elevated command lines (and simple commands, but the argument section is not supported), while `xqgod` acts as a shortcut to open the `All Tasks` folder (sometimes called *god mode*). They are dropped under the system directory to ensure that they can be run from the Run dialog and as commands. + +# Disable Windows Defender (if enabled) +If the config setting `fix10nodefender` is set to `1` (`1` is the default setting), Windows Defender will be disabled by registry changes. + +## `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender` +* `DisableAntiSpyware`=`dword:00000001` + * Disables Windows Defender. +* `DisableRealtimeMonitoring`=`dword:00000001` + * Disables Windows Defender real-time monitoring. +## `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection` +* `DisableBehaviorMonitoring`=`dword:00000001` + * Disables Windows Defender behavior monitoring. +* `DisableOnAccessProtection`=`dword:00000001` + * Disables Windows Defender on-access protection. +* `DisableScanOnRealtimeEnable`=`dword:00000001` + * Disables Windows Defender process scanning. + +# Remove Mixed Reality (if enabled) +If the config setting `fix10removemixed` is set to `1` (`0` is the default setting), a value called `FirstRunSucceeded` will be created in the registry key `HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Holographic4` with the value `0`. This will signify a failure on the first run of Mixed Reality, removing it from Settings and, according to Microsoft, uninstalling it from the computer. It is not known whether this is the case anymore with newer versions of Windows 10. + +# Delete Cortana (if enabled) +If the config setting `fix10delcortana` is set to `1` (`0` is the default setting), the script will literally *delete* Cortana files from the machine. This might cause severe issues later on, especially if later versions of Windows 10 will further tighten the Cortana integration. The exact steps involve finding the folder belonging to the app `Microsoft.Windows.Cortana` under the SystemApps folder, granting the running user full rights and then deleting it. In order to use Cortana again, you would have to reinstall it through PowerShell (`Get-AppXPackage -Name Microsoft.Windows.Cortana | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}`). + +# Disable SmartScreen (if enabled) +If the config setting `fix10disablesmartscreen` is set to `1` (`0` is the default setting), the script will disable Windows SmartScreen. This is not recommended if the computer will also be actively used by non-power users. The exact changes done disable the `SmartScreenSpecific` scheduled task, and three registry changes: + +* `HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost\EnableWebContentEvaluation : Enabled = 0 (REG_DWORD)`, same for `HKEY_USERS\.DEFAULT` +* `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer : SmartScreenEnabled = "Off" (REG_SZ)` + +# Install Linux Subsystem (if enabled) +If the config setting `fix10installbash` is set to `1` (`0` is the default setting), the script will install the Linux Subsystem for Windows if it isn't already detected to be installed. In order to do this, the Developer Mode is also enabled with the following registry changes: + +* `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock : AllowAllTrustedApps = 1 (REG_DWORD)` +* `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock : AllowDevelopmentWithoutDevLicense = 1 (REG_DWORD)` + +after which a small script is run in PowerShell, with the crux being the call `Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -NoRestart`. + +# Disable Fast Startup (if enabled) +If the config setting `fix10disablehiberboot` is set to `1` (`0` is the default setting), the Fast Startup (*Hiberboot*) is disabled with a single registry change: + +* `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power : HiberbootEnabled = 0 (REG_DWORD)` + +This is especially recommended for multi-boot setups, as Windows volumes might be inaccessible with Fast Startup enabled. This is because if Fast Startup is enabled, Windows never actually *shuts down*, but instead *hibernates*. The problem with Fast Startup is explained in great detail here: https://askubuntu.com/a/452080 + +# Script complete +Once the script is complete, the script finishes by writing a message to the screen. If the script was opened in an existing command line, control will be returned, but if the batch script was opened in its own window, the file will enter an infinite loop and ask the user to close the window. + +The final message encourages the user to check their privacy settings, provides a command to open them, advises to run the script after every major upgrade and then recommends the user to restart to apply the changes, as it is necessary to do so for some of the changes. + +The final section also includes some subroutines used by the script itself. + +# Command line switches +* `/q` - quiet mode, no confirmation (but messages will still get printed). diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..289b788 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,2 @@ +fix10 is in the public domain. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..d0b52b8 --- /dev/null +++ b/README.md @@ -0,0 +1,69 @@ +# Fix10.bat + +This is a batch file intended for power users to apply some registry and other small tweaks to Windows 10 to increase privacy and usability. Running the batch file is advised every time your system goes through a Windows 10 feature upgrade, as upgrades may reset some of the tweaks. + +*Note:* If multiple users use the computer, the script must be run for every user individually. +*Note:* If you get weird syntax errors (such as "GOTO was unexpected at this time"), make sure the .bat file uses CRLF newlines (as Windows expects) and not LF newlines. + +## Disclaimer + +The batch file in question requires administrative privileges on the system it runs on and is intended to only be run on Windows 10. Regardless of any conditions, you run the batch file at your own risk, and the author of fix10.bat cannot be responsible for increased boot times (will likely happen) or, perhaps even worse, features removed from the system, the system refusing to function or start up properly, or any other adverse side effects. By running the batch file, you accept that you have read this disclaimer and understand its and the script's consequences. + +## Notes on Windows 10 editions + +Several of the modifications rely on registry settings, some of which are Group Policy settings. Since Microsoft thinks it knows better than Windows users, some of the changes might not work in all editions of Windows 10. The Home and Pro editions are most significantly affected. The longevity of the tweaks cannot be guaranteed, since future Windows 10 versions may also break some of them. + +## List of changes applied + +The changes are described in more detail in `DOCUMENT.md`. + +* Disable diagnostics and tracking services +* Disable advertisements and "tips" +* Try to set Updates to Ask before Download +* Disable Windows Update automatic restarts +* Uninstall and disable OneDrive +* Disable Feedback notifications +* Disable Bing Search +* Disable Application Telemetry +* Disable Steps Recorder +* Disable "Delivery Optimization" +* Disable Wi-Fi Sense +* Turn off advertising ID +* Disable Suggested app download (you will still need to uninstall those already downloaded yourself) +* Disable Windows Spotlight +* Disable keylogger ("improve typing") +* Disable "Getting to know you" +* Opt out from CEIP +* Disable Cortana +* Leave Microsoft MAPS +* Restore Windows Photo Viewer ([source](https://www.tenforums.com/tutorials/14312-restore-windows-photo-viewer-windows-10-a.html)) +* Re-enable Task Manager, Registry Editor and Command Interpreter +* Make Ultimate Performance power mode visible (but _not_ selected by default) +* Win+X: PowerShell to CMD +* Re-add CMD to Context menu (if Shift heöd down) +* Enable seconds in the tray +* Show file extensions, hidden files and all drives +* Disable Data Collection Publishing Service +* Enables Legacy Boot Loader + F8 Safe Mode + * This might increase boot times by a few seconds, but since it enables Advanced Boot Options (including options to enter Safe Mode), I consider it a fair trade-off. + +All of these changes will be applied, but since the batch file is just a batch file, you can simply modify it to disable specific tweaks from being applied. + +### Optional changes (must be enabled by editing the file) + +At the beginning of a batch file there is a configuration section with a few options, which do the following: + +* fix10nodefender (0 disables, 1 enables **(default)**) + * If enabled, disables Windows Defender. +* fix10dropbatchutils (0 disables (default), 1 enables) + * If enabled, drops two files, xqacl.bat and xqgod.bat under System32, which add the xqacl and xqgod commands for the Run dialog and command shells. xqacl allows opening an elevated command line, while xqgod opens the All Tasks "god mode" window. +* fix10removemixed (0 disables (default), 1 enables) + * If enabled, sets the Holographic FirstRunSucceeded flag to 0. If the computer is restarted with this flag, Mixed Reality should be automatically uninstalled from the computer. +* fix10delcortana (0 disables (default), 1 enables) + * If enabled, the script will delete Cortana and its files from the computer. To reinstall it, you must disable this flag and reinstall the package manually through PowerShell. +* fix10disablesmartscreen (0 disables (default), 1 enables) + * If enabled, the script will disable SmartScreen. This is a possible security liability, and is not recommended if the computer will be actively used by non-power users. +* fix10installbash (0 disables (default), 1 enables) + * If enabled, the script will enable Developer Mode and initiate the installation of the Windows Subsystem for Linux. The subsystem will not be installed if it is already detected. +* fix10disablehiberboot (0 disables (default), 1 enables) + * If enabled, the script will disable Fast Startup, thus making sure your system actually shuts down instead of just pretending to. This is especially useful for multi-boot setups. diff --git a/fix10.bat b/fix10.bat new file mode 100644 index 0000000..55a3cbd --- /dev/null +++ b/fix10.bat @@ -0,0 +1,857 @@ +@echo off & setlocal & rem https://github.com/ziplantil/fix10 + rem Fix10 v1.3.1 +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Config +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= + +rem Unless otherwise noted, 0 disables and 1 enables, 0 is default +rem | change only this column under this section! + +rem Enable disabling Windows Defender (default = 1)! +call :setdefault 1 fix10nodefender +rem Enable dropping under %SYSTEMROOT%\System32 (for Run & cmd): +rem xqacl.bat: opens an elevated command prompt at given location +rem xqgod.bat: opens the All Tasks directory +call :setdefault 0 fix10dropbatchutils +rem Enable removing Mixed Reality +call :setdefault 0 fix10removemixed +rem Enable deleting Cortana +call :setdefault 0 fix10delcortana +rem Enable disabling Smart Screen +call :setdefault 0 fix10disablesmartscreen +rem Enable installing the Linux Subsystem (will also enable Developer Mode!!) +call :setdefault 0 fix10installbash +rem Enable disabling Fast Startup (Hiberboot) +call :setdefault 0 fix10disablehiberboot + +rem Command line flags: +rem /q - quiet mode, will not ask for a key press to confirm or at exit + +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Intro +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +echo =============================== +echo FFFFF IIIII X X 1 000 +echo F I X X 11 0 0 +echo FFF I X 1 0 0 0 +echo F I X X 1 0 0 +echo F IIIII X X 111 000 +echo. +echo v1.3.1 .bat +echo =============================== +echo ziplantil 2021 +echo =============================== +echo. +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Initialize flags +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +set silent=0 +for %%a in (%*) do if /i "%%a" equ "/q" set silent=1 +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Admin check +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +net session >nul 2>&1 +if %errorlevel% == 0 goto adminok +if "%silent%" == "1" goto adminquiet +echo. +echo This batch file requires administrator rights. +echo A dialog should open up. +echo Please choose the affirmative option. +echo. +timeout 5 +:adminquiet +echo %* > %TEMP%\fix10args.tmp +for /f %%a in ('powershell -Command "$ErrorActionPreference = \"SilentlyContinue\"; Start-Process \"%~f0\" -Verb Runas -ErrorAction SilentlyContinue -ErrorVariable ElevatedError -ArgumentList $(Get-Content \"%TEMP%\fix10args.tmp\") ; echo $ElevatedError.Count"') do set adminfailed=%%a +if %adminfailed% == 0 goto adminok_endscript +echo. +echo Could not elevate the script. +echo Try right-clicking the batch file and +echo choosing "Run as Administrator". +echo. +if "%silent%" == "0" pause +goto endscriptnokey +:adminok_endscript +if "%silent%" == "1" goto endscriptnokey +echo. +echo A new window has been opened for the +echo elevated script. +echo. +pause +goto endscriptnokey +:adminok +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// OS version check +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +for /f "tokens=4-5 delims=. " %%i in ('ver') do set VERSION=%%i.%%j +if "%version%" == "10.0" goto win10ok +echo. +echo. +echo It seems you are not running Windows 10. +echo Running this batch file in other versions of Windows +echo may cause unpredictable results and is not advised. +echo. +:win10choice +set /P contanyway=Continue anyway [Y/N]? +if /I "%contanyway%" == "Y" goto win10okforce +if /I "%contanyway%" == "N" goto endscript +goto win10choice +:win10okforce +echo. +:win10ok +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// List +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +if "%silent%" == "1" goto nofix10intro +echo This batch file will: +echo. +echo * Disable diagnostics and tracking services +echo * Disable advertisements and "tips" +echo * Try to set Updates to Ask before Download +echo * Disable Windows Update automatic restarts +echo * Uninstall and disable OneDrive +echo * Disable Feedback notifications +echo * Disable Bing Search +echo * Disable Application Telemetry +echo * Disable Steps Recorder +echo * Disable "Delivery Optimization" +echo * Disable Wi-Fi Sense +echo * Turn off advertising ID +echo * Disable Suggested app download +echo (you will still need to uninstall those already downloaded yourself) +echo * Disable Windows Spotlight +echo * Disable keylogger ("improve typing") +echo * Disable "Getting to know you" +echo * Opt out from CEIP +echo * Disable Cortana +echo * Leave Microsoft MAPS +echo * Restore Windows Photo Viewer +echo * Re-enable Task Manager, Registry Editor and Command Interpreter +echo * Make Ultimate Performance power mode visible (not selected by default) +echo * Win+X: PowerShell to CMD +echo * Re-add CMD to Context menu (if Shift down) +echo * Enable seconds in the tray +echo * Show file extensions, hidden files and all drives +echo * Disable Data Collection Publishing Service +echo * Enables Legacy Boot Loader + F8 Safe Mode (!!!) +echo. +echo Modify the batch file to disable (enabled by default): +echo * Disable Windows Defender +echo. +echo Modify the batch file to enable (disabled by default): +echo * Drops batch utilities +echo * Remove Mixed Reality +echo * Delete Cortana +echo * Disable Smart Screen +echo * Install the Linux Subsystem +echo * Disable Fast Startup +echo. +echo The list is long - scroll all the way through! +echo Some changes may require a reboot afterwards, +echo and some of them may not work on 10 Home/Pro! +echo. +echo Hit Ctrl-C and Y or close the window to cancel +echo Cancel if you are not 100%% sure! +echo. +pause +:nofix10intro +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Disable services +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem These two are disabled by default; see DOCUMENT.md +rem sc config dmwappushsvc start= disabled +rem sc config Dmwappushservice start= disabled +sc config "Diagnostics Tracking Service" start= disabled +sc config "Connected User Experiences and Telemetry" start= disabled +sc config DiagTrack start= disabled +sc config diagnosticshub.standardcollector.service start= disabled +sc config TrkWks start= disabled +sc config WMPNetworkSvc start= disabled +sc config DoSvc start= demand +sc config DcpSvc start= demand +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Disable scheduled tasks +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +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\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 +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Search UI firewall +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +powershell -Command New-NetFirewallRule -DisplayName "Search" -Direction Outbound -Action Block -Profile "Domain, Private, Public" -Program "C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe" +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Telemetry stuff +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +pushd %ProgramData%\Microsoft\Diagnosis\ETLLogs\AutoLogger +echo. > AutoLogger-Diagtrack-Listener.etl +echo Y | cacls AutoLogger-Diagtrack-Listener.etl /d SYSTEM +popd +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Ultimate Performance +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +powercfg /L | find /c /i "Ultimate Performance" >nul || powercfg /duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// taskmgr, regedit, cmd +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_DWORD /d 0 /f +reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /t REG_DWORD /d 0 /f +reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableCMD /t REG_DWORD /d 0 /f +reg add HKCU\Software\Policies\Microsoft\Windows\System /v DisableTaskMgr /t REG_DWORD /d 0 /f +reg add HKCU\Software\Policies\Microsoft\Windows\System /v DisableRegistryTools /t REG_DWORD /d 0 /f +reg add HKCU\Software\Policies\Microsoft\Windows\System /v DisableCMD /t REG_DWORD /d 0 /f +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Registry header +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +echo Windows Registry Editor Version 5.00 > %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Registry HKLM +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU] >> %TEMP%\fix10bat.reg +echo "AUOptions"=dword:00000002 >> %TEMP%\fix10bat.reg +echo "AUPowerManagement"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "NoAutoRebootWithLoggedOnUsers"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "NoAutoUpdate"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "RebootRelaunchTimeout"=dword:000005a0 >> %TEMP%\fix10bat.reg +echo "RebootRelaunchTimeoutEnabled"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU] >> %TEMP%\fix10bat.reg +echo "AUOptions"=dword:00000002 >> %TEMP%\fix10bat.reg +echo "AUPowerManagement"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "NoAutoRebootWithLoggedOnUsers"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "NoAutoUpdate"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "RebootRelaunchTimeout"=dword:000005a0 >> %TEMP%\fix10bat.reg +echo "RebootRelaunchTimeoutEnabled"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update] >> %TEMP%\fix10bat.reg +echo "AUOptions"=dword:00000002 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows] >> %TEMP%\fix10bat.reg +echo "DisableFileSync"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config] >> %TEMP%\fix10bat.reg +echo "DownloadMode"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "DODownloadMode"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection] >> %TEMP%\fix10bat.reg +echo "AllowTelemetry"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "DoNotShowFeedbackNotifications"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\CurrentVersion\DataCollection] >> %TEMP%\fix10bat.reg +echo "AllowTelemetry"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "DoNotShowFeedbackNotifications"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Siuf\Rules] >> %TEMP%\fix10bat.reg +echo "NumberOfSIUFInPeriod"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "PeriodInNanoSeconds"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection] >> %TEMP%\fix10bat.reg +echo "AllowTelemetry"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata] >> %TEMP%\fix10bat.reg +echo "PreventDeviceMetadataFromNetwork"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CloudContent] >> %TEMP%\fix10bat.reg +echo "DisableSoftLanding"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "DisableWindowsConsumerFeatures"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "DisableWindowsSpotlightFeatures"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo] >> %TEMP%\fix10bat.reg +echo "Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AdvertisingInfo] >> %TEMP%\fix10bat.reg +echo "DisabledByGroupPolicy"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\Software\Microsoft\SQMClient\Windows] >> %TEMP%\fix10bat.reg +echo "CEIPEnable"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat] >> %TEMP%\fix10bat.reg +echo "AITEnable"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "DisableUAR"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search] >> %TEMP%\fix10bat.reg +echo "AllowCortana"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "DisableWebSearch"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "ConnectedSearchUseWeb"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "ConnectedSearchPrivacy"=dword:00000003 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive] >> %TEMP%\fix10bat.reg +echo "DisableFileSyncNGSC"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive] >> %TEMP%\fix10bat.reg +echo "PreventNetworkTrafficPreUserSignIn"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\InputPersonalization] >> %TEMP%\fix10bat.reg +echo "AllowInputPersonalization"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "RestrictImplicitInkCollection"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "RestrictImplicitTextCollection"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\config] >> %TEMP%\fix10bat.reg +echo "AutoConnectAllowedOEM"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting] >> %TEMP%\fix10bat.reg +echo "value"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots] >> %TEMP%\fix10bat.reg +echo "value"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet] >> %TEMP%\fix10bat.reg +echo "SpyNetReporting"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubmitSamplesConsent"=dword:00000002 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Registry HKCU for current user +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced] >> %TEMP%\fix10bat.reg +echo "DontUsePowerShellOnWinX"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "Hidden"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "HideFileExt"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "HideDrivesWithNoMedia"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "ShowSyncProviderNotifications"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CloudContent] >> %TEMP%\fix10bat.reg +echo "DisableWindowsConsumerFeatures"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "DisableWindowsSpotlightFeatures"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PenWorkspace] >> %TEMP%\fix10bat.reg +echo "PenWorkspaceAppSuggestionsEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager] >> %TEMP%\fix10bat.reg +echo "ContentDeliveryAllowed"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "RotatingLockScreenEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "RotatingLockScreenOverlayEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SilentInstalledAppsEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SoftLandingEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-310093Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-338387Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-338388Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-338389Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-338393Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-353694Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-353696Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SystemPaneSuggestionsEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Input\TIPC] >> %TEMP%\fix10bat.reg +echo "Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search] >> %TEMP%\fix10bat.reg +echo "CortanaEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "BingSearchEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "HistoryViewEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "DeviceHistoryEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "CortanaConsent"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "AllowSearchToUseLocation"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Personalization\Settings] >> %TEMP%\fix10bat.reg +echo "AcceptedPrivacyPolicy"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore] >> %TEMP%\fix10bat.reg +echo "HarvestContacts"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings] >> %TEMP%\fix10bat.reg +echo "UxOption"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization] >> %TEMP%\fix10bat.reg +echo "SystemSettingsDownloadMode"=dword:00000003 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language] >> %TEMP%\fix10bat.reg +echo "Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputPersonalization] >> %TEMP%\fix10bat.reg +echo "RestrictImplicitInkCollection"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "RestrictImplicitTextCollection"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Privacy] >> %TEMP%\fix10bat.reg +echo "TailoredExperiencesWithDiagnosticDataEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Registry HKCU for default user +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced] >> %TEMP%\fix10bat.reg +echo "DontUsePowerShellOnWinX"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "Hidden"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "HideFileExt"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "ShowSyncProviderNotifications"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\Software\Policies\Microsoft\Windows\CloudContent] >> %TEMP%\fix10bat.reg +echo "DisableWindowsConsumerFeatures"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "DisableWindowsSpotlightFeatures"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\PenWorkspace] >> %TEMP%\fix10bat.reg +echo "PenWorkspaceAppSuggestionsEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager] >> %TEMP%\fix10bat.reg +echo "ContentDeliveryAllowed"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "RotatingLockScreenEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "RotatingLockScreenOverlayEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SilentInstalledAppsEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SoftLandingEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-310093Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-338387Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-338388Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-338389Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SubscribedContent-338393Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "SystemPaneSuggestionsEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Input\TIPC] >> %TEMP%\fix10bat.reg +echo "Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Search] >> %TEMP%\fix10bat.reg +echo "CortanaEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "BingSearchEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "HistoryViewEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo "DeviceHistoryEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Personalization\Settings] >> %TEMP%\fix10bat.reg +echo "AcceptedPrivacyPolicy"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore] >> %TEMP%\fix10bat.reg +echo "HarvestContacts"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings] >> %TEMP%\fix10bat.reg +echo "UxOption"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization] >> %TEMP%\fix10bat.reg +echo "SystemSettingsDownloadMode"=dword:00000003 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language] >> %TEMP%\fix10bat.reg +echo "Enabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\InputPersonalization] >> %TEMP%\fix10bat.reg +echo "RestrictImplicitInkCollection"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "RestrictImplicitTextCollection"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Privacy] >> %TEMP%\fix10bat.reg +echo "TailoredExperiencesWithDiagnosticDataEnabled"=dword:00000000 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Registry HKCR +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\Drive\shell\cmd2] >> %TEMP%\fix10bat.reg +echo @="@shell32.dll,-8506" >> %TEMP%\fix10bat.reg +echo "Extended"="" >> %TEMP%\fix10bat.reg +echo "Icon"="imageres.dll,-5323" >> %TEMP%\fix10bat.reg +echo "Nodefault"="" >> %TEMP%\fix10bat.reg +echo "NoWorkingDirectory"="" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\Drive\shell\cmd2\command] >> %TEMP%\fix10bat.reg +echo @="cmd.exe /s /k pushd \"%%V\"" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\Directory\shell\cmd2] >> %TEMP%\fix10bat.reg +echo @="@shell32.dll,-8506" >> %TEMP%\fix10bat.reg +echo "Extended"="" >> %TEMP%\fix10bat.reg +echo "Icon"="imageres.dll,-5323" >> %TEMP%\fix10bat.reg +echo "Nodefault"="" >> %TEMP%\fix10bat.reg +echo "NoWorkingDirectory"="" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\Directory\shell\cmd2\command] >> %TEMP%\fix10bat.reg +echo @="cmd.exe /s /k pushd \"%%V\"" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd2] >> %TEMP%\fix10bat.reg +echo @="@shell32.dll,-8506" >> %TEMP%\fix10bat.reg +echo "Extended"="" >> %TEMP%\fix10bat.reg +echo "Icon"="imageres.dll,-5323" >> %TEMP%\fix10bat.reg +echo "Nodefault"="" >> %TEMP%\fix10bat.reg +echo "NoWorkingDirectory"="" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd2\command] >> %TEMP%\fix10bat.reg +echo @="cmd.exe /s /k pushd \"%%V\"" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Registry: Photo Viewer +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +echo. >> %TEMP%\fix10bat.reg +echo ; ======================================================================================== >> %TEMP%\fix10bat.reg +echo ; https://www.tenforums.com/tutorials/14312-restore-windows-photo-viewer-windows-10-a.html >> %TEMP%\fix10bat.reg +echo ; ======================================================================================== >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\jpegfile\shell\open\DropTarget] >> %TEMP%\fix10bat.reg +echo "Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\pngfile\shell\open\DropTarget] >> %TEMP%\fix10bat.reg +echo "Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open] >> %TEMP%\fix10bat.reg +echo "MuiVerb"="@photoviewer.dll,-3043" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command] >> %TEMP%\fix10bat.reg +echo @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\ >> %TEMP%\fix10bat.reg +echo 6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\ >> %TEMP%\fix10bat.reg +echo 25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\ >> %TEMP%\fix10bat.reg +echo 00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\ >> %TEMP%\fix10bat.reg +echo 6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\ >> %TEMP%\fix10bat.reg +echo 00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,31,00,00,00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\DropTarget] >> %TEMP%\fix10bat.reg +echo "Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap] >> %TEMP%\fix10bat.reg +echo "ImageOptionFlags"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "FriendlyTypeName"=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,\ >> %TEMP%\fix10bat.reg +echo 00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,\ >> %TEMP%\fix10bat.reg +echo 77,00,73,00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,\ >> %TEMP%\fix10bat.reg +echo 00,65,00,72,00,5c,00,50,00,68,00,6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 65,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,35,00,36,00,00,\ >> %TEMP%\fix10bat.reg +echo 00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap\DefaultIcon] >> %TEMP%\fix10bat.reg +echo @="%%SystemRoot%%\\System32\\imageres.dll,-70" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap\shell\open\command] >> %TEMP%\fix10bat.reg +echo @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\ >> %TEMP%\fix10bat.reg +echo 6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\ >> %TEMP%\fix10bat.reg +echo 25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\ >> %TEMP%\fix10bat.reg +echo 00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\ >> %TEMP%\fix10bat.reg +echo 6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\ >> %TEMP%\fix10bat.reg +echo 00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,31,00,00,00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap\shell\open\DropTarget] >> %TEMP%\fix10bat.reg +echo "Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF] >> %TEMP%\fix10bat.reg +echo "EditFlags"=dword:00010000 >> %TEMP%\fix10bat.reg +echo "ImageOptionFlags"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "FriendlyTypeName"=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,\ >> %TEMP%\fix10bat.reg +echo 00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,\ >> %TEMP%\fix10bat.reg +echo 77,00,73,00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,\ >> %TEMP%\fix10bat.reg +echo 00,65,00,72,00,5c,00,50,00,68,00,6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 65,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,35,00,35,00,00,\ >> %TEMP%\fix10bat.reg +echo 00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\DefaultIcon] >> %TEMP%\fix10bat.reg +echo @="%%SystemRoot%%\\System32\\imageres.dll,-72" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\shell\open] >> %TEMP%\fix10bat.reg +echo "MuiVerb"=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,\ >> %TEMP%\fix10bat.reg +echo 69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,\ >> %TEMP%\fix10bat.reg +echo 00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,\ >> %TEMP%\fix10bat.reg +echo 72,00,5c,00,70,00,68,00,6f,00,74,00,6f,00,76,00,69,00,65,00,77,00,65,00,72,\ >> %TEMP%\fix10bat.reg +echo 00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,34,00,33,00,00,00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\shell\open\command] >> %TEMP%\fix10bat.reg +echo @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\ >> %TEMP%\fix10bat.reg +echo 6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\ >> %TEMP%\fix10bat.reg +echo 25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\ >> %TEMP%\fix10bat.reg +echo 00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\ >> %TEMP%\fix10bat.reg +echo 6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\ >> %TEMP%\fix10bat.reg +echo 00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,31,00,00,00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\shell\open\DropTarget] >> %TEMP%\fix10bat.reg +echo "Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg] >> %TEMP%\fix10bat.reg +echo "EditFlags"=dword:00010000 >> %TEMP%\fix10bat.reg +echo "ImageOptionFlags"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "FriendlyTypeName"=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,\ >> %TEMP%\fix10bat.reg +echo 00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,\ >> %TEMP%\fix10bat.reg +echo 77,00,73,00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,\ >> %TEMP%\fix10bat.reg +echo 00,65,00,72,00,5c,00,50,00,68,00,6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 65,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,35,00,35,00,00,\ >> %TEMP%\fix10bat.reg +echo 00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\DefaultIcon] >> %TEMP%\fix10bat.reg +echo @="%%SystemRoot%%\\System32\\imageres.dll,-72" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\shell\open] >> %TEMP%\fix10bat.reg +echo "MuiVerb"=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,\ >> %TEMP%\fix10bat.reg +echo 69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,\ >> %TEMP%\fix10bat.reg +echo 00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,\ >> %TEMP%\fix10bat.reg +echo 72,00,5c,00,70,00,68,00,6f,00,74,00,6f,00,76,00,69,00,65,00,77,00,65,00,72,\ >> %TEMP%\fix10bat.reg +echo 00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,34,00,33,00,00,00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\shell\open\command] >> %TEMP%\fix10bat.reg +echo @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\ >> %TEMP%\fix10bat.reg +echo 6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\ >> %TEMP%\fix10bat.reg +echo 25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\ >> %TEMP%\fix10bat.reg +echo 00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\ >> %TEMP%\fix10bat.reg +echo 6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\ >> %TEMP%\fix10bat.reg +echo 00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,31,00,00,00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\shell\open\DropTarget] >> %TEMP%\fix10bat.reg +echo "Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif] >> %TEMP%\fix10bat.reg +echo "ImageOptionFlags"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "FriendlyTypeName"=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,\ >> %TEMP%\fix10bat.reg +echo 00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,\ >> %TEMP%\fix10bat.reg +echo 77,00,73,00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,\ >> %TEMP%\fix10bat.reg +echo 00,65,00,72,00,5c,00,50,00,68,00,6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 65,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,35,00,37,00,00,\ >> %TEMP%\fix10bat.reg +echo 00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif\DefaultIcon] >> %TEMP%\fix10bat.reg +echo @="%%SystemRoot%%\\System32\\imageres.dll,-83" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif\shell\open\command] >> %TEMP%\fix10bat.reg +echo @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\ >> %TEMP%\fix10bat.reg +echo 6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\ >> %TEMP%\fix10bat.reg +echo 25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\ >> %TEMP%\fix10bat.reg +echo 00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\ >> %TEMP%\fix10bat.reg +echo 6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\ >> %TEMP%\fix10bat.reg +echo 00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,31,00,00,00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif\shell\open\DropTarget] >> %TEMP%\fix10bat.reg +echo "Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png] >> %TEMP%\fix10bat.reg +echo "ImageOptionFlags"=dword:00000001 >> %TEMP%\fix10bat.reg +echo "FriendlyTypeName"=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,\ >> %TEMP%\fix10bat.reg +echo 00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,\ >> %TEMP%\fix10bat.reg +echo 77,00,73,00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,\ >> %TEMP%\fix10bat.reg +echo 00,65,00,72,00,5c,00,50,00,68,00,6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 65,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,35,00,37,00,00,\ >> %TEMP%\fix10bat.reg +echo 00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png\DefaultIcon] >> %TEMP%\fix10bat.reg +echo @="%%SystemRoot%%\\System32\\imageres.dll,-71" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png\shell\open\command] >> %TEMP%\fix10bat.reg +echo @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\ >> %TEMP%\fix10bat.reg +echo 6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\ >> %TEMP%\fix10bat.reg +echo 25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\ >> %TEMP%\fix10bat.reg +echo 00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\ >> %TEMP%\fix10bat.reg +echo 6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\ >> %TEMP%\fix10bat.reg +echo 00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,31,00,00,00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png\shell\open\DropTarget] >> %TEMP%\fix10bat.reg +echo "Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp] >> %TEMP%\fix10bat.reg +echo "EditFlags"=dword:00010000 >> %TEMP%\fix10bat.reg +echo "ImageOptionFlags"=dword:00000001 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\DefaultIcon] >> %TEMP%\fix10bat.reg +echo @="%%SystemRoot%%\\System32\\wmphoto.dll,-400" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\shell\open] >> %TEMP%\fix10bat.reg +echo "MuiVerb"=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,\ >> %TEMP%\fix10bat.reg +echo 69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,\ >> %TEMP%\fix10bat.reg +echo 00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,\ >> %TEMP%\fix10bat.reg +echo 72,00,5c,00,70,00,68,00,6f,00,74,00,6f,00,76,00,69,00,65,00,77,00,65,00,72,\ >> %TEMP%\fix10bat.reg +echo 00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,34,00,33,00,00,00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\shell\open\command] >> %TEMP%\fix10bat.reg +echo @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\ >> %TEMP%\fix10bat.reg +echo 6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\ >> %TEMP%\fix10bat.reg +echo 25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\ >> %TEMP%\fix10bat.reg +echo 00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\ >> %TEMP%\fix10bat.reg +echo 6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\ >> %TEMP%\fix10bat.reg +echo 00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,31,00,00,00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\shell\open\DropTarget] >> %TEMP%\fix10bat.reg +echo "Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Image Preview\command] >> %TEMP%\fix10bat.reg +echo @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\ >> %TEMP%\fix10bat.reg +echo 6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\ >> %TEMP%\fix10bat.reg +echo 25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\ >> %TEMP%\fix10bat.reg +echo 00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\ >> %TEMP%\fix10bat.reg +echo 6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\ >> %TEMP%\fix10bat.reg +echo 00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\ >> %TEMP%\fix10bat.reg +echo 5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\ >> %TEMP%\fix10bat.reg +echo 00,31,00,00,00 >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Image Preview\DropTarget] >> %TEMP%\fix10bat.reg +echo "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"="" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities] >> %TEMP%\fix10bat.reg +echo "ApplicationDescription"="@%%ProgramFiles%%\\Windows Photo Viewer\\photoviewer.dll,-3069" >> %TEMP%\fix10bat.reg +echo "ApplicationName"="@%%ProgramFiles%%\\Windows Photo Viewer\\photoviewer.dll,-3009" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations] >> %TEMP%\fix10bat.reg +echo ".jpg"="PhotoViewer.FileAssoc.Jpeg" >> %TEMP%\fix10bat.reg +echo ".wdp"="PhotoViewer.FileAssoc.Wdp" >> %TEMP%\fix10bat.reg +echo ".jfif"="PhotoViewer.FileAssoc.JFIF" >> %TEMP%\fix10bat.reg +echo ".dib"="PhotoViewer.FileAssoc.Bitmap" >> %TEMP%\fix10bat.reg +echo ".png"="PhotoViewer.FileAssoc.Png" >> %TEMP%\fix10bat.reg +echo ".jxr"="PhotoViewer.FileAssoc.Wdp" >> %TEMP%\fix10bat.reg +echo ".bmp"="PhotoViewer.FileAssoc.Bitmap" >> %TEMP%\fix10bat.reg +echo ".jpe"="PhotoViewer.FileAssoc.Jpeg" >> %TEMP%\fix10bat.reg +echo ".jpeg"="PhotoViewer.FileAssoc.Jpeg" >> %TEMP%\fix10bat.reg +echo ".gif"="PhotoViewer.FileAssoc.Gif" >> %TEMP%\fix10bat.reg +echo ".tif"="PhotoViewer.FileAssoc.Tiff" >> %TEMP%\fix10bat.reg +echo ".tiff"="PhotoViewer.FileAssoc.Tiff" >> %TEMP%\fix10bat.reg +echo. >> %TEMP%\fix10bat.reg +reg import %TEMP%\fix10bat.reg +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Legacy Bootloader & Safe Mode +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +bcdedit /set {current} bootmenupolicy Legacy +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Uninstall OneDrive +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +%SystemRoot%\System32\OneDriveSetup /uninstall 2>nul +%SystemRoot%\SysWOW64\OneDriveSetup /uninstall 2>nul +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Disable Automatic Reboot +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +for /f %%a in ('powershell -Command Get-Date -format yyyyMMdd_HHmmss') do set datetime=%%a +move "%windir%\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot" "%windir%\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot_DisableByFix10Bat_%datetime%" +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Disable Defender (if enabled) +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +if not %fix10nodefender% == 1 goto fix10_nonodefender +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableRealtimeMonitoring" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableOnAccessProtection" /t REG_DWORD /d "1" /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d "1" /f +:fix10_nonodefender +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Batch utilities (if enabled) +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +if not %fix10dropbatchutils% == 1 goto fix10_nodropbatchutils +echo. > %SYSTEMROOT%\System32\xqacl.bat +echo. > %SYSTEMROOT%\System32\xqgod.bat +echo. > %SYSTEMROOT%\System32\xqacl_.ps1 +echo @echo off >> %SYSTEMROOT%\System32\xqacl.bat +echo if not %%1.==. goto gotargs >> %SYSTEMROOT%\System32\xqacl.bat +echo powershell -Command Start-Process -FilePath $env:ComSpec -Verb runas -WorkingDirectory "%%cd%%" -ArgumentList /k,cd,"%%cd%%" >> %SYSTEMROOT%\System32\xqacl.bat +echo goto :eof >> %SYSTEMROOT%\System32\xqacl.bat +echo :gotargs >> %SYSTEMROOT%\System32\xqacl.bat +echo $workdir, $params = $args >> %SYSTEMROOT%\System32\xqacl_.ps1 +echo Start-Process -FilePath "$env:ComSpec" -Verb runas -WorkingDirectory "$workdir" -ArgumentList "/c $params" >> %SYSTEMROOT%\System32\xqacl_.ps1 +echo powershell -ExecutionPolicy bypass %%SYSTEMROOT%%\System32\xqacl_.ps1 %%cd%% %%* >> %SYSTEMROOT%\System32\xqacl.bat +echo @start "" "explorer" "shell:::{ED7BA470-8E54-465E-825C-99712043E01C}" >> %SYSTEMROOT%\System32\xqgod.bat +:fix10_nodropbatchutils +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Remove Mixed Reality (if enabled) +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +if not %fix10removemixed% == 1 goto fix10_noremovemixed +reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Holographic4 /v FirstRunSucceeded /t REG_DWORD /d 0 +:fix10_noremovemixed +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Delete Cortana (if enabled) +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +if not %fix10delcortana% == 1 goto fix10_nodelcortana +set dirbase="%SYSTEMROOT%\SystemApps\Microsoft.Windows.Cortana_" +for /D %%x in (%dirbase%*) do if not defined dir set "dir=%%x" +set proc="SearchUI.exe" +taskkill /f /im %proc% +takeown /f %dir% /r +icacls "%dir%\*" /t /c /grant %username%:f +timeout 2 & taskkill /f /im %proc% & rd /s /q %dir% +timeout 2 & taskkill /f /im %proc% & rd /s /q %dir% +timeout 2 & taskkill /f /im %proc% & rd /s /q %dir% +timeout 2 & taskkill /f /im %proc% & rd /s /q %dir% +timeout 2 & taskkill /f /im %proc% & rd /s /q %dir% +:fix10_nodelcortana +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Disable SmartScreen (if enabled) +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +if not %fix10disablesmartscreen% == 1 goto fix10_nodisablesmartscreen +schtasks /change /TN "\Microsoft\Windows\AppID\SmartScreenSpecific" /DISABLE +reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost\EnableWebContentEvaluation" /v "Enabled" /t REG_DWORD /d "0" /f +reg add "HKU\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost\EnableWebContentEvaluation" /v "Enabled" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f +:fix10_nodisablesmartscreen +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Install Linux Subsystem (if enabled) +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +if not %fix10installbash% == 1 goto fix10_noinstallbash +for /f %%a in ('powershell -Command "Write-Output (Get-WindowsOptionalFeature -Online | Out-String -stream | Select-String -Pattern \".* : Microsoft-Windows-Subsystem-Linux\" | Measure-Object -Line).Lines"') do set lxssinstalled=%%a +if not %lxssinstalled% == 0 goto fix10_noinstallbash rem already installed +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /v "AllowAllTrustedApps" /t REG_DWORD /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /v "AllowDevelopmentWithoutDevLicense" /t REG_DWORD /d "1" /f +start "" powershell -command "$host.ui.RawUI.WindowTitle = \"Linux Subsystem Installer\"; Enable-WindowsOptionalFeature -Online -FeatureName \"Microsoft-Windows-Subsystem-Linux\" -NoRestart; $host.ui.RawUI.WindowTitle = \"[Finished] Linux Subsystem Installer\"; pause" +:fix10_noinstallbash +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Disable Fast Startup (if enabled) +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +if not %fix10disablehiberboot% == 1 goto fix10_nodisablehiberboot +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v "HiberbootEnabled" /t REG_DWORD /d "0" /f +:fix10_nodisablehiberboot +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +rem ///////////////// Script complete +rem /=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/= +if "%silent%" == "1" goto endscriptnokey +color 2f +echo. +echo. +echo. +echo. +echo. +echo. +echo. +echo OOO K K +echo O O K K +echo O O K K +echo O O KKKK +echo O O K K +echo O O K K +echo OOO K K +echo. +echo Restart recommended! +echo. +echo It is recommended to run this +echo script again every time after a +echo major Windows 10 upgrade. +echo. +echo Please review your privacy settings +echo before restarting by opening Run +echo and entering this command: +echo ms-settings:privacy +echo (or press Win+I -> Privacy) +echo. +call :getsecondparameter %CMDCMDLINE% +if /i not "%CMDFLAG%" == "/c" goto endscript +echo You may now close this window. +echo. +:closewindow +pause >NUL 2>NUL +goto closewindow +rem call :setdefault value key +rem Runs `set key=value` if key is +rem not already defined +:setdefault +if defined %2 goto :eof +set %2=%1 +goto :eof +rem call :getsecondparameter A B C D ... +rem Stores second parameter given (B) +rem to variable named CMDFLAG +:getsecondparameter +set CMDFLAG=%2 +goto :eof +:endscript +pause +:endscriptnokey +echo. +color +endlocal