Question : Logon script to copy shortcut to desktop

I have a simple bat file that I need to when users logon.  I have created/linked the gpo, edited the security so only certains users will get, and enforced the policy.  The script doesn't run when a user logs in. We are using windows vista business for workstations with Server 2003 R2 for servers.

.bat file
copy "o:\links\link.nk"  "%userprofile%\desktop"

Things I have tried:
   Running script manually - runs without issue
   Ran report in GPO management to confirm GPO is being applied
   Removed group from GPO security and put just our test AD account - same results
   Tried launchapp.swf
      What looks like a cmd window comes up and disappears right away after logging on - but still no icon
          Tried putting pause in the .bat file - cmd windows still disappears
      Check task schedular and it says the task is completing without issue


Any help to get this working would be appreciated

Answer : Logon script to copy shortcut to desktop

This could be a drive letter issue.  If the copy command is running before the O: drive is mapped then it won't be able to find the file.  It would be better to use the full UNC path of the drive.  I'd use a command like this:
if not exist "%userprofile%\desktop\link.lnk" xcopy "\\server\share\links\link.lnk" "%userprofile%\desktop\" /C /H /R /Y
Random Solutions  
 
programming4us programming4us