We help IT Professionals succeed at work.

Copy shortcut to desktop in login script

Experts.  I have a windows xp/2003 AD environment with 200+ users.  Depending on the department the user is in, their desktop is redirected to that department's standard desktop folder located on the file server.  I don't want the user to be able to add anything to the desktop, so I gave the user read permissions only to the desktop folder.  Now, the powers that be have asked that each user have a shortcut to their timesheet placed on their desktop.  Since there are too many users, I would like to script this.  

So, how can I copy the shortcut to the desktop when the user logs in if they have read-only permissons?  Can you temporarily adjust the permission level so the shortcut can be placed and then revert back to read-only?  The login script is a batch file and I would like to stick with that, if possible.  Thanks for the help!
Comment
Watch Question

copy c:\shortcut.lnk  c:\Windows\Profiles\%username%\desktop\
or where ever your profiles are being stored.
I don't know about temporarily changing permissions.

Author

Commented:
cedarghost- Thanks for the post.  I have the location designated in the script, I need to know how to allow the user the ability to copy this shortcut on a temporary basis.
CERTIFIED EXPERT
Most Valuable Expert 2019
Most Valuable Expert 2018
Commented:
That's not possible; and that's rather okay, otherwise it would open the system to all sorts of misuse ...
You could only do it with some "runas" derivate, but that means putting a password more or less in clear text into the netlogon share.
But since the desktop is redirected to a file share anyway, why not simply copy the shortcut into all the folders on the share?

Author

Commented:
How I wish I had another engineer like yourself here to bounce ideas off so that I didn't wast everyone's time posting a question like that.  I wasn't sure what was possible with scripts and I learned one of the boundaries.  I guess I will have to resort to copying them all to the desktop.  

I will post here a link to the next question I am going to ask regarding how I can dump the folder names from an existing directory to a text file and then use that text file to create a new set of folders in a new directory.  I'm nto sure if robocopy will do this but I figured I would at least ask since I have no one else here that will know.

Thanks for the help as always.

Author

Commented:
oBdA- Hey, is there a way that we can have you look at a post when we submit it?  I know I worked with another expert who we would send the link to and they would look at it.  Not sure if this was something you did.  I know you must have a million other things going on but you have resolved so many issues we had.  Thanks in advance for your consideration.
CERTIFIED EXPERT
Most Valuable Expert 2019
Most Valuable Expert 2018

Commented:
Just post in an old question of yours; as you can see, I get the notifications and check ...
Might take some time, though.

Author

Commented:
10-4

Explore More ContentExplore courses, solutions, and other research materials related to this topic.