microsoft:scripting:notes:refreshuserregistry
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:
- Rob van der Woude's Scripting Pages - RUNDLL and RUNDLL32 #45 Activate registry changes
Alternate ways:
- SG20 - Wallpaper Changer Command Line Utility by Phil Hansen.
microsoft/scripting/notes/refreshuserregistry.txt · Last modified: 2022/07/18 13:34 by bas