======Microsoft - Scripting - Notes - Refresh user registry (a.k.a. "refresh desktop")====== Execute the following to re-apply HKCU registry keys after changes in a logged on session: RUNDLL32 USER32.DLL,UpdatePerUserSystemParameters ,1 ,True // This may need to be run twice with a 2-3 seconds in between. // Sources: * [[http://www.edugeek.net/forums/windows/38811-force-registry-refresh.html|edugeek - Forums - Technical - Windows - Force Registry Refresh]] * [[https://www.robvanderwoude.com/rundll.php|Rob van der Woude's Scripting Pages - RUNDLL and RUNDLL32]] #45 Activate registry changes Alternate ways: * [[https://c-nergy.be/blog/?p=17309|Griffon's IT Library - Windows 10 – Refreshing Desktop wallpaper without logoff/logon (PowerShell script – Ver. 2.0)]] * [[https://c-nergy.be/blog/?p=15291|Griffon's IT Library - Windows 10 – How to Force Refresh of Desktop Wallpaper (without logoff/logon)]] * [[https://helgeklein.com/blog/free-tool-refresh-the-desktop-programmatically/|Helge Klein - Free Tool: Refresh the Desktop Programmatically]] * [[https://sg20.com/techblog/2011/06/23/wallpaper-changer-command-line-utility/|Phil's Tech Blog - Wallpaper Changer Command Line Utility]], see also [[https://github.com/philhansen/WallpaperChanger|GitHub - philhansen/WallpaperChanger]]. * [[https://sg20.com/wallpaperchanger/|SG20 - Wallpaper Changer Command Line Utility]] by Phil Hansen.