• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1633
  • Last Modified:

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!
0
samiam41
Asked:
samiam41
  • 6
  • 2
1 Solution
 
cedarghostCommented:
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.
0
 
samiam41Author 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.
0
 
oBdACommented:
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?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
samiam41Author 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.
0
 
samiam41Author 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.
0
 
oBdACommented:
Just post in an old question of yours; as you can see, I get the notifications and check ...
Might take some time, though.
0
 
samiam41Author Commented:
10-4
0
 
samiam41Author Commented:
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now