Group Policy to add shortcut to desktops

How can I add a specified shortcut to all users's desktop via a group policy?
gopher_49Asked:
Who is Participating?
 
mcsweenSr. Network AdministratorCommented:
bah, getting command mixed up with VBS...that should all be on one line like

If Not Exist "C:\Documents and Settings\All Users\Desktop\Myshortcut.lnk" copy \\someserver\someshare\myshortcut.lnk "c:\Documents and settings\All users\Desktop"
0
 
MazaraatCommented:
You can either add some code to your logon script or deploy an MSi package using software installation with just the shortcut.  The MSI method does have the benefit of being able to rollback later on.

The script should have something like this:

         set WshShell = WScript.CreateObject("WScript.Shell")
         strDesktop = WshShell.SpecialFolders("Desktop")
         set oShellLink = WshShell.CreateShortcut(strDesktop & "\Network Share.lnk")
         oShellLink.TargetPath = "\\server\share"
         oShellLink.WindowStyle = 1
         oShellLink.IconLocation = "explorer.exe, 0"
         oShellLink.Description = "Network Share"
         oShellLink.WorkingDirectory = "\\share\server"
         oShellLink.Save
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
mcsweenSr. Network AdministratorCommented:
You can also just place the shortcut on the network somewhere and add these line to your logon script


If Not Exist "C:\Documents and Settings\All Users\Desktop\Myshortcut.lnk"
copy \\someserver\someshare\myshortcut.lnk "c:\Documents and settings\All users\Desktop"
0
 
gopher_49Author Commented:
Both of you had great solutions.  Mcsween's was the easiest so I went that route.

thanks.
0
 
MazaraatCommented:
Thanks, glad we couldprovide the info needed =)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.