Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1904
  • Last Modified:

Add desktop shortcut using GPO or login script in Windows 7

Hi,

I've been using a simple batch file to add shortcuts to all my domain users desktop in Windows XP. The file looks like this:

"if not exist "%USERPROFILE%\Skrivebord\Fjernbetjening.url" copy "\\servername\NETLOGON\Genveje\Fjernbetjening.url" "%USERPROFILE%\Skrivebord\""

Skrivebord is the Danish word for desktop. However this is not working on Windows 7. At first I was running it from the login script but I've also tried running it via GPO and none of them works. Can the shortcuts be added using a batch file or will it have to be a VB script?

Thanks in advance,
Ronnie
0
ronnie13
Asked:
ronnie13
  • 6
  • 4
1 Solution
 
tausifsfaridCommented:
0
 
eviljesterCommented:
Hi ,
Are you running Server 2003/2008 or R2?
gposhortcuts.jpg
0
 
ronnie13Author Commented:
Hi,

there are Server 2003, 2008 and 2008 R2 in my domain.
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
eviljesterCommented:
Well if any of your DC's are server 2008/R2, then you can use Group Policy to Propergate your shortcuts, as shown in the image of my last post.
0
 
ronnie13Author Commented:
Excellent. I'll try that.

Another thing is that some shortcuts should be placed on all users dekstop while others shlould only be added based on membership of a specific group in AD. Can that be managed as well?
0
 
eviljesterCommented:
Sure, under the common tab  shown above, you'll find item level targeting. Where you can set a vast amount of criteria or none....
0
 
eviljesterCommented:
Just thought I'd add an image, the filters for targeting should cover you for an scenario. item level targeting
0
 
ronnie13Author Commented:
Hi,

that would be a good solution but I did it by linking the GPO to the two OU's containig my users which worked as well.    
GPO.jpg
0
 
eviljesterCommented:
Fair enough, I just used item level targeting because I just wanted one policy for mapping drives e-z, and each drive has it's own security permissions. So one policy vs twenty two...
0
 
ronnie13Author Commented:
Hi eviljester,

can you tell me how you create one policy and have this mapping all the drives?
0
 
eviljesterCommented:
Hi Ronnie13

As above, this applies to Server 2008 or 2008R2...

Setup a GPO with the computer configuration settings disabled (under 'details' tab). Edit the GPO, and go to 'user configuration, preferences, windows settings, drive maps' Setup policies to map each individual drive, with 'Replace' as the action, 'reconnect' selected under the 'general' tab. Under the 'common' tab, Select 'run in logged-on user's security context', 'remove this item when it is no longer applied', and 'item-level targeting', then click on the 'targeting' button, select 'new item' and specify the criteria for mapping that drive.

Each of my drive mappings is targeting a different security group, I use 'security group' (under 'new item') so that only users of that group have that drive mapped, when they are removed from that group, so is the drive mapping.

I have the policy sitting in the root of the domain so that it is applied no matter where they login, you can be more specific if you wish.

Also I have the security filtering of the GPO set to 'domain users', so that all domain users process the policy, but only users belonging the to the applicable security groups, get the applicable drives mapped.


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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