Add link to desktop in form of an icon

  • Thread starter Thread starter Marc O
  • Start date Start date
M

Marc O

Is there a way to have an short cut placed on multiple desktops using group
policy? What I want to is put a link to a specifc web page in the form of a
desktop short cut to the entire domain. Sounds like a GPO right?? Any
thoughts?
Marc
 
With out sounding like a complete idiot I will try and say this:
How would I do that??

Dave Patrick said:
You can use the CreateShortcut method of VBScript.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Marc O said:
Is there a way to have an short cut placed on multiple desktops using group
policy? What I want to is put a link to a specifc web page in the form
of
a
desktop short cut to the entire domain. Sounds like a GPO right?? Any
thoughts?
Marc
 
A couple of ways to do this include using the CreateShortcut method of
VBScript. Or try Marty List's cool tool Shortcut v. 100
http://optimumx.com/download/#Shortcut


This VBScript would create a shortcut to a mapped drive 'S:\'
--------------------------
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\S Drive.lnk")
oShellLink.TargetPath = "S:\"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "explorer.exe, 1"
oShellLink.Description = "Network S Drive"
oShellLink.WorkingDirectory = "S:\"
oShellLink.Save
Set WshShell = Nothing
Set oShellLink = Nothing
--------------------------
Depending on what you're wanting, use either;

WshShell.SpecialFolders("Desktop")
WshShell.SpecialFolders("AllUsersDesktop")

Also WSH 5.6 documentation download at
http://www.microsoft.com/downloads/...48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
 
Back
Top