@xploitmachine It doesn't work, I tested with the Favorites directory, and the icon is replaced by yellow (Windows icon) xcopy D:\Tests\Favorites C:\Users\tistou\Favorites /s /e /h
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
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?
Folder icons are defined in desktop.ini inside the folder. desktop.ini is super-hidden. Make sure it is copied, too.
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.
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)
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
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.
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
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.