Put an icon on all users desktop in domain - TechRepublic
Question
December 30, 2008 at 10:57 AM
albert001

Put an icon on all users desktop in domain

by albert001 . Updated 17 years, 6 months ago

I created a script to put a shortcut on everyone’s desktop like this:

Set objShell = CreateObject(“Wscript.Shell”)
strDesktop = objShell.SpecialFolders(“Desktop”)

Set objShortcut = objShell.CreateShortcut(strDesktop & “\Helpdesk.lnk”)
objShortcut.TargetPath = “http://192.168.1.131/helpdesk”

objShortcut.Description = “Creates desktop icon for helpdesk”
objShortcut.WorkingDirectory = strDesktop

objShortcut.SetIconLocation “G:\spiceworks.ico”, 0

objShortcut.Save

The problem is that it only puts the icon there on user profiles that have been created since I set the GPO. It is Windows Server 2003 SBS and all the desktops are XP. We are not using roaming profiles. Also the icon looks like a broken link, how do I get it to use the .ico that I want?

This discussion is locked

All Comments