Windows 11 Tweaks, Fixes and Modifications [Overview]

Discussion in 'Windows 11' started by Enthousiast, Jul 1, 2021.

  1. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,828
    7,137
    150
    Didn't break any updates yet
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Shortyportuguese

    Shortyportuguese MDL Addicted

    Apr 3, 2019
    586
    218
    30
    The H3als tool worked fine, but the second tool is also good?
     
  3. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,828
    7,137
    150
    If it wasn't good
    I wasn't recommend it
    Didn't break any updates
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Shortyportuguese

    Shortyportuguese MDL Addicted

    Apr 3, 2019
    586
    218
    30
    Thanks, This code also not breaking updates too?

    Code:
    reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /f >NUL 2>&1
    reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /ve /t REG_SZ /d "" /f >NUL 2>&1
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /f >NUL 2>&1
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /ve /t REG_SZ /d "" /f >NUL 2>&1
    powershell-Command "Get-AppxProvisionedPackage -Online | Where-Object {$_.packagename -like '*Client.AIX*'} | Remove-AppxProvisionedPackage -Online" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-WmiObject -Query 'select * from Win32_Product where Name like \"%%%%Client.AIX%%%%\"' | ForEach-Object { ($_).Uninstall()}" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-AppxPackage -Name *Client.AIX* -AllUsers | Foreach {Remove-AppxPackage $_.PackageFullName -AllUsers}" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Client.AIX' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Client.CoPilot' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Ai.Copilot.Provider' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Copilot' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Remove-Item -Path "$env:LOCALAPPDATA\CoreAIPlatform*" -Force -Recurse -ErrorAction SilentlyContinue" >NUL 2>&1
    reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "DisableAIDataAnalysis" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "DisableAIDataAnalysis" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKCU\Software\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "AllowTemporaryEnterpriseFeatureControl" /t REG_DWORD /d "0" /f >nul 2>&1
    reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx" /v "MdmHosts" /f >nul 2>&1
    powershell-Command "Remove-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Appx" -Name "MdmHosts" -Force" >NUL 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx" /f >nul 2>&1
    powershell-Command "Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Appx" -Name "RestrictAppDataToSystemVolume" -Type DWORD -Value "1" -Force" >NUL 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\MDM" /v "DisableRegistration" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\MDM" /v "AutoEnrollMDM" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "HideCopilotButton" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Start\HideCopilotButton" /v "value" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HubsSidebarEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKCU\Software\Microsoft\input\Settings" /v "InsightsEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "CopilotCDPPageContext" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "CopilotPageContext" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "DiscoverPageContextEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
    powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKLM\Software\Microsoft\Windows\Shell\Copilot\BingChat' /v 'IsUserEligible' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1
    powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKCU\Software\Microsoft\Windows\Shell\Copilot\BingChat' /v 'IsUserEligible' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1
    powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKLM\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings' /v 'AutoOpenCopilotLargeScreens' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1
    powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings' /v 'AutoOpenCopilotLargeScreens' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1
    >nul 2>&1 dism.exe /online /disable-feature /FeatureName:recall /noRestart
    >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\Shell\Copilot" /f /v IsCopilotAvailable /t reg_dword /d 00000000
    >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\Shell\Copilot\BingChat" /f /v IsUserEligible /t reg_dword /d 00000000
    >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /f /v DisableAIDataAnalysis /t reg_dword /d 00000001
    >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Windows\WindowsCopilot" /f /v TurnOffWindowsCopilot /t reg_dword /d 00000001
    >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\Shell\Copilot" /f /v CopilotDisabledReason /t REG_SZ /d "FeatureIsDisabled"
    pause
     
  5. xploitmachine

    xploitmachine MDL Member

    Sep 15, 2023
    247
    163
    10
    I guess you'r original Favourites folder's icon is pointing somewhere else .. is there any screenshot of the original picture for source Favourites folder?
     
  6. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    8,076
    10,298
    270
    Folder icons are defined in desktop.ini inside the folder. desktop.ini is super-hidden. Make sure it is copied, too.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. tistou77

    tistou77 MDL Guru

    Mar 22, 2008
    2,208
    738
    90
    I'll take a screenshot

    The original desktop.ini file in the folder is preserved, which is why I don't understand why the icon is changing.
     
  8. GrofLuigi

    GrofLuigi MDL Senior Member

    Sep 17, 2016
    415
    1,122
    10
    For the built-in folders (Shell Folders) the icon is stored in the registry, I guess it takes precedence over desktop.ini.

    Favorites:

    [HKEY_CLASSES_ROOT\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\DefaultIcon]
    @=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,69,\
    6d,61,67,65,72,65,73,2e,64,6c,6c,2c,2d,31,30,32,34,00

    (Win7 here, but it should be the same)
     
  9. tistou77

    tistou77 MDL Guru

    Mar 22, 2008
    2,208
    738
    90
    A simple xcopy command shouldn't change the icon, I think (in the registry or otherwise)
    Especially since there's no problem with a simple copy/paste
     
  10. Fowler

    Fowler MDL Member

    Apr 1, 2013
    139
    115
    10
    The desktop.ini is a text file.
    It contains the path to the icon file or the file containing the icon.
    If it is copied, the file access path must also be changed.
    desktop_ini.png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. TairikuOkami

    TairikuOkami MDL Expert

    Mar 15, 2014
    1,330
    1,240
    60
    Windows "remembers" icon even after clean install as long as the path of the icon is unchanged. I believe, it is stored in each shortcut, since sometimes I remove bothersome desktop.ini
     

    Attached Files:

  12. acyuta

    acyuta MDL Expert

    Mar 8, 2010
    1,708
    398
    60
    Earlier, one could make changes to fonts of icons, palette titles, menu etc. Both fonts could be changed from segoe ui to anything and even the size. With recent versions of 26100, 26120, 26200, that is no longer the case. One can make the changes but they do not persist after reboot or log-off. Example, I want to change globally to Leelawadee UI 13 but cant do so persistently.

    Any ideas.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,832
    1,112
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. acyuta

    acyuta MDL Expert

    Mar 8, 2010
    1,708
    398
    60
    #1936 acyuta, May 29, 2025
    Last edited: May 30, 2025
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. sonic9

    sonic9 MDL Member

    Aug 4, 2009
    220
    86
    10
    Folder itself need "Read only" attribute to "apply" settings defined in desktop.ini
    xcopy has removed the original "Read Only" attribute.
     
  16. tistou77

    tistou77 MDL Guru

    Mar 22, 2008
    2,208
    738
    90
    I checked, and the box was still checked
    But how can I prevent the attribute from being "modified" ?

    Thanks
     
  17. migascalp

    migascalp MDL Addicted

    Sep 18, 2009
    557
    940
    30