Jump to content

Add desktop lshortcut to remote computers


MartinaL

Recommended Posts


Hi,

if you just need to create a desktop shortcut on the remote computer i would suggest you to use these two tools in combination:

*) Psexec (www.sysinternals.com)

*) Shortcut.exe (attached)

Wrap a nice little script around these and run it.

Example:

psexec \\hostname -c shortcut -t C:\Windows\system32\cmd.exe -n "C:\Documents and Settings\All Users\Desktop\Prompt"

Hope that helps,

Egon

shortcut.exe

Link to comment
Share on other sites

If you're PCs are on windows 2000 you may need to replace

  • C:\Windows\system32\cmd.exe

with

  • C:\WINNT\system32\cmd.exe

or you could always try it without the location as it will be in the PATH

  • cmd.exe

Link to comment
Share on other sites

Alright so I found the problem, I had to put shortcut.exe in the same folder as psexec.exe and change the location of the command line to where they where located so;

X:\Utilities\PsTools>psexec \\hostname -c shortcut -t C:\Windows\system32\cmd.exe -n "C:\Documents and Settings\All Users\Desktop\Test"

Anyhow, so I want to run this from a batch file so I can feed in the list of around 70 "hostnames" and it will run on each, any ideas??

Link to comment
Share on other sites

I finally got this to work, but I need to run it to add a link to a document not a program, is this possible?

This is the line I am using and it is not working;

psexec \\aws0359 -c shortcut -t "\\hvws10\Data\Shared Access\Marketing Activity Plan\AWS Marketing Activity Plan.xls" -n "C:\Documents and Settings\All Users\Desktop\AWS Marketing Activity Plan"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...