How to refresh desktop windows 7

broken image
broken image

# Description : Force a Desktop wallpaper Refresh # I found the following PowerShell script, that always works on my PC:, option 2: #-# # remove comment before two lines above and the '-WhatIf' statement to delete filesĪpparently, 'RUNDL元2.EXE USER32.DLL,UpdatePerUserSystemParameters 1, True' leads to inconsistent results (at least on my PC). #ri $OriginalFile -Recurse -Force -Confirm:$false- WhatIf #ri $InfoFile -Recurse -Force -Confirm:$false -WhatIf ((gi $originalFile -force).length / 1mb).ToString('0.00MB') $drives = (gwmi -Class Win32_LogicalDisk | ? # Set Safe within deleted days and get physical drive letters SHChangeNotify(0x8000000, 0x1000, IntPtr.Zero, -MemberDefinition $definition -Namespace WinAPI -Name Explorer

broken image

$definition = static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2)