Deploying a simple shortcut

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

Hi,

I am using win2k with active directory. Hoping someone
can help me out. I think my need is very simple, but my
inexperience with group policies isn't helping.

All I need to do is to deploy an Internet Exlorer
shortcut to a URL (a "favorite") on every user's PC in
some automated fashion. I know this can be done using
AD.

In other words, when the user logs in, the IE shortcut is
installed on their "desktop" Thats it.

I would greatly appreciate any help that can be given.

Dan
If possible, please reply to "(e-mail address removed)"
 
Hi Dan,

You can deploy shortcuts by using scripts. First create the script (I use
vbs, see example below), then I usually put the script in the netlogon share
so it gets synched with all your DCs, then create a new GPO.

The GPO is Computer policies>Admin Templates>System>Run these programs at
user logon. Win XP adms use Computer policies>Admin
Templates>System>Logon>Run these programs at user logon. Specify the
correct unc (\\domain\netlogon\IEshortcut.vbs).

' This script sets a shortcut on the desktop to a web site

on error resume next

Set Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("Desktop")

'here is the shortcut's name
Set link = Shell.CreateShortcut(DesktopPath & "\MyWebSite.lnk")
link.Arguments = "1 2 3"
link.Description = "My Web Site"
link.HotKey = "CTRL+ALT+SHIFT+X"

'use the following if you need an icon
'link.IconLocation = "\\server\share\app.exe,0"

link.TargetPath = "http:\\www.labordaygang.com"
link.WindowStyle = 3

'use the following if it is an exe and you need a working directory
'link.WorkingDirectory = "\\cvhs-lh4\Lib-Apps-lh4\DISCOVER"
link.Save
 
Back
Top