title: Powershell script from shortcut to change desktop
body: <p>Any ideas and suggestions on why this works when run from w/in PS, but not when run from a shortcut defined as:</p>
  
  <pre><code>%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -File "C:\Users\bin\ChangeDesktop.ps1"
  </code></pre>
  
  <p>Contents of ChangeDesktop.ps1:</p>
  
  <pre><code>set-itemproperty -path "HKCU:Control Panel\Desktop" -name WallPaper -value ""
  rundll32.exe user32.dll, UpdatePerUserSystemParameters
  </code></pre>
  
  <p>If I am in the PS "command prompt" environment the desktop background is automatically removed and refreshed, outside of that I have to manually refresh the desktop to effect the change.</p>
  
  <p>System is Windows Server 2008 R2 - fresh install.  Script executionpolicy is set to RemoteSigned, and I don't see any PS errors.  I Just don't see the desktop refresh automatically when running from a desktop shortcut.</p>
  
  <p><em>scratches head</em></p>