Question Locked

Creating a Shortcut on the Domain User/Group's Desktop

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

W2K3 Server - Domain Controller, File Server

I am having trouble creating a shortcut on the desktops of a group's users. I want to have a group that contains member users. When those users logon, I want them to have a shortcut to a shared folder on the server no matter what computer onto which they logon.

I have set up roaming profiles by changing the profile path of the users, created the group, added the users, creted a shortcut, made a simple script that contains this line:

copy "\\Server\Logon Scripts\Short Cut.lnk" "C:\Documents and Settings\%username%\Desktop",

and placed it in a shared folder, naming it script.vbs.

I was able to successfully create the shortcut with one user by changing the account's profile logon script to point to the script on the server. The user was me as a Domain Admin, but I could not duplicate the success with other Domain Users. I believe that the permissions are correct, but I'm willing to triple check, if explicit advice regarding which permissions should be set is offered.

Is there a more elegant/simple way to create a shortcut on the desktop?

3 replies

by churdoo

I can think of a couple of different ways to approach this, and mind you I haven't tested them.

1) copy the shortcut to the ALL USERS desktop of each workstation on the network, giving the icon read/execute for the group that you want to use it, and not for other groups. You can script this en masse rather than visiting each desktop.

2) Your script idea should work, but
a) I would deploy it in a network logon script from the standard NETLOGON shares;
b) make sure the shortcut.lnk that you created and the folder in which it resides as least have read/execute permissions so the group members will be able to copy it and use it;
c) instead of coding "c:\documents and settings\%username%\desktop", etc. my copy line would be in a .bat or .cmd script and would read something like
if not exist "%userprofile%\desktop\groupshortcut.lnk" copy "\\server\shared folder\groupshortcut.lnk" "%userprofile%\desktop\groupshortcut.lnk"

3) via Group Policy, you can change the group members' desktop location to a pre-defined folder that you set up with the items that you want them to have on their desktop.
Here's are a couple of links with a bunch of GP based desktop controls.
http://www.computerperformance.co.uk/w2k3/gp/group_policy_desktop.htm
http://technet2.microsoft.com/windowsserver/en/library/7b33dcd6-0ad2-44e8-82f8-962425b6cf8e1033.mspx?mfr=true

I can't seem to find a link explaining the particular policy that I'm thinking where you actually set the desktop folder location. Perhaps another TR member can post, or I'll post back if I find it.

by adam s

Lots of leads. Thank you for taking the time to write.

It appears that at logon the script isn't being run. I can logon and navigate to the NETLOGON share and run the .bat file successfully, but it won't execute automatically.

I set it up like you advised, changing the .bat script and putting it in the NETLOGON share (sysvol\sysvol... etc.). Then I went to active directory and changed the user's Profile tab > User Profile > Logon Script: to the path of the script (\\server\netlogon\script.bat). When I logon to the XP Pro machine under that account, the shortcut does not copy. I navigated to both the local profile copy and the server profile. Neither one has the copy of the shortcut. I will look into those other links you sent me and try those.

This discussion is closed to new replies.