?
Solved

How would I create a network share shortcut for all my users desktop?

Posted on 2010-09-13
10
Medium Priority
?
610 Views
Last Modified: 2012-05-10
I don't want to map a drive for my users and I would rather have a shortcut for the share be placed on their desktop. Can this be done? Is a vbscritp going to need to be used?

0
Comment
Question by:henjohn1520
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 3

Expert Comment

by:VBDotNetCoder
ID: 33667609
Do you have Active Directory installed?

If so,
 * You can create the shortcut on the server
 * Put it on a shared folder (and give everyone:Read rights to the folder)
 * Modify/Create your login script to add the commands to copy this shortcut from \\Servername\Sharename\Shorcut.Lnk   to  %userprofile%\desktop folder

That's it...
0
 
LVL 5

Expert Comment

by:Armenio
ID: 33667626
just create a short cut
buy right clicking on the  desktop and selecting shortcut then entering the  UNC path to the share
eg  \\server\networkshare
then click finish

then you can copy the shortcut and give it to who ever you want ore place it on the desktop
0
 
LVL 2

Expert Comment

by:FEOX
ID: 33667636
You can create the shortcut on your desktop then transfer the shortcut to the common "All Users" desktop usually found in:

C:\Documents and Settings\All Users\Desktop

Any shortcut you place in here will appear on the desktop of all users.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:henjohn1520
ID: 33667834
What would the logon script look like?
0
 
LVL 3

Accepted Solution

by:
VBDotNetCoder earned 2000 total points
ID: 33667958
If you already have a login script, add the line below to the end of the login script:

copy \\servername\sharename\sohrtcut.lnk %userprofile%\desktop

Servername = your server's dns/netbios name
Sharename = the shared folder'sname that you created the shortcut in
Shortcut.Lnk = shortcut to the folder (these 3 names will be different corresponding to your system)

if you don't have a login script, the easiest way is :

Click Start
Click Run
type \\servername and press enter
double click NETLOGON
create the login.bat file here
type the line above and save the file
In Active Directory Users And Computers Snap-In, select the desired users (that need this shortcut on their desktop)
Right click Properties
Go to Profiles tab
type login.bat to Logon Script textbox
click ok


You can find detailed information on how to create a login script here...:

http://www.petri.co.il/setting-up-logon-script-through-active-directory-users-computers-windows-server-2008.htm

P.S. It is almost the same for Server 2008, Server 2003 and Server 2000
0
 
LVL 26

Expert Comment

by:Tony J
ID: 33670656
Actually although I personally prefer VBScripts for login scripts - they're much more flexible - if you use the batch file method above, I'd change

copy \\servername\sharename\sohrtcut.lnk %userprofile%\desktop

to

copy /Y \\servername\sharename\sohrtcut.lnk %userprofile%\desktop

or

If not exist %userprofile%\desktop\shortcut.lnk copy \\servername\sharename\sohrtcut.lnk %userprofile%\desktop <--all  one line.

The /Y supresses a prompt to overwrite an existing file whereas the second option doesn't copy it if the shortcut already exists on the users desktop.
0
 
LVL 3

Expert Comment

by:VBDotNetCoder
ID: 33670751
Yes, Tony1044 is right...
Thanks Tony, I didn't think the overwrite situation in each restart... :)
0
 
LVL 26

Expert Comment

by:Tony J
ID: 33670880
I've done the same thing myself - so easy to do :)
0
 

Author Comment

by:henjohn1520
ID: 33674943
This is the Share that I created  and i placed the shortcut in the share.
\\servername\shortcuts
I created a batch file similar to the one below/
copy \\servername\shortcuts\shortcut.lnk %userprofile%\desktop
It didn't work
0
 
LVL 3

Expert Comment

by:VBDotNetCoder
ID: 33675128
* where did you put the script (batch) file?
* did you make the neccessary things I mentioned before in AD-Users & Computers Snap-In?
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question