Solved

group policies for mapped network drive shortcuts on desktop?

Posted on 2006-06-14
7
388 Views
Last Modified: 2010-04-18
Hi,

I would like to setup a group policy (I am assuming this is the easiest way) that will force a mapped network drive shortcut on every users desktop.

Currently, when a user logs onto the network, a logon batch file runs that connects the user to the two mapped network drives. Now, I would like to have the two mapped network drives forced to the users desktop as shortcuts. I would like be able to name the shortcuts, H drive and Z drive. The user should not be able to remove or move the shortcuts from the desktop. Finally, and not as important, I would like be able to position the shortcuts on the top-middle of the screen/desktop.

Can anyone give me a step-by-step breakdown on how I can set this up?

Thanks!
0
Comment
Question by:afoedit
  • 2
  • 2
7 Comments
 

Author Comment

by:afoedit
ID: 16905232
Anyone?
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 16907676
how are you with scripting......this is going to be a scripting task
0
 

Author Comment

by:afoedit
ID: 16911041
i understand scripting. i have a background in programming. but, i am not familiar with windows scripting. could you get point me in the right direction?

thanks!
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 16916763
i have 0 background in anything except networking :) create a script to map your drives using the net use command.

then you will have to maybe post in the VB topic area and get some help on how to create a shortcut with vbs, i apologise for such a vague answer, just didnt want to leave your Q hanging open :)
0
 
LVL 26

Accepted Solution

by:
Pber earned 500 total points
ID: 16985970
This script will create your shortcuts:

Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
Dim MyShortcut, MyDesktop, DesktopPath
DesktopPath = WSHShell.SpecialFolders("Desktop")
'DesktopPath = "C:\Documents and Settings\All Users\Desktop"
Set MyShortcut = WSHShell.CreateShortcut(DesktopPath & "\H Drive.lnk")
MyShortcut.TargetPath = WSHShell.ExpandEnvironmentStrings ("\\server\H-share")
MyShortcut.WorkingDirectory = WSHShell.ExpandEnvironmentStrings("\\server\H-share")
MyShortcut.WindowStyle = 1
MyShortcut.IconLocation = WSHShell.ExpandEnvironmentStrings ("c:\windows\system32\shell32.dll, 9")
MyShortcut.Save

Set MyShortcut = WSHShell.CreateShortcut(DesktopPath & "\Z Drive.lnk")
MyShortcut.TargetPath = WSHShell.ExpandEnvironmentStrings ("\\server\Z-share")
MyShortcut.WorkingDirectory = WSHShell.ExpandEnvironmentStrings("\\server\Z-share")
MyShortcut.WindowStyle = 1
MyShortcut.IconLocation = WSHShell.ExpandEnvironmentStrings ("c:\windows\system32\shell32.dll, 9")
MyShortcut.Save

I'll have to see about the icon locations
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Server 2000 functional level to server 2008 r2 5 72
what is the performance monitor? How can we use it? 3 67
setup share and NTFS permissions. 12 77
Bizarre hard disk problem 15 122
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

778 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