I use a preset active desktop image for all users of my domain. The problem is that there is a bug in Windows 2003 that some times does not show the desktop image unless you refresh the desktop.
I am trying to write a small vb script to refresh the desktop on logon
here is what I have up to now
Option Explicit
Dim WSHShell, strDesktop
Set WSHShell = WScript.CreateObject("WScript.Shell")
strDesktop = WSHShell.SpecialFolders("Desktop")
WSHShell.AppActivate strDesktop
WSHShell.SendKeys "{F5}"
WScript.Quit
' End of VBScript to refresh the desktop
I have yet to test this but as I am a total n00b to VBS could any of you guys give me a clue as to if this will work or if there is a better way to do this?
Thanks.