Deploy an Internet shortcut to users desktop using Group Policy

anja12
anja12 used Ask the Experts™
on
I have placed a shortcut to an internet site (ex. www.company.com) on the desktop of 60 users using Group Policy.  I have a special Icon that I made that I would like to use but do not know how to amend the script to tell it about the icon image to use.

I also would like to place this link in everyones startup as well and can not figure out how

I am using Windows server 2003 R2 and all of the desktops are Windows XP.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
If you have one WinVista, Win7, or 2008 server you can create a GPO and use Group Policy preferences. All the XP clients will need the CSE installed.

http://technet.microsoft.com/en-us/library/cc753580(WS.10).aspx

If not you will need to use a script. It could be a simple bat file
copy SOURCE DESTINATION


Use Group Policy to deploy a Desktop shortcut

You can do this with scripts that you assign as startup or logon scripts
within a group policy or assign an MSI package that creates shortcuts.

Tools found here: http://technet.microsoft.com/en-au/scriptcenter/default.aspx

This next one seemed a little more advanced but an option:
How to use the Active Directory to deploy applications, even if those applications do not come with a Windows installer package.


Link : http://www.windowsnetworking.com/articles_tutorials/Group-Policy-Deploy-Applications.html

Author

Commented:
KenMcF,

I have to use a script as I do not have WinVista, Win7, or 2008 server.  I am not very good with script writing.  Where do I save the icon image so that it can be referenced by each computer or the Group Policy and do I add to the script that places the Icon on the desktop or do I need to make a separate script?
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Commented:
You can keep the shortcut file on a central file share or even the sysvol share if you want.

You can use an existing script of just create a new one.

There are mnay ways to do this. I just gave an example of a bat file using copy. You can put that bat file in the GPO applied to the users.

Author

Commented:
KenMcF,
I have the internet shortcut and the .ico file in the Sysvol folder on the server.  Can you help me write the script?

Commented:
Create a new text file and name it something like

shortcut.bat
add this line to the file
copy \\domain.local\netlogon\shortcut.lnk %USERPROFILE%\Desktop

Then add this batch file to the scripts in the users GPO

Commented:
That line will probably prompt to overwrite if the file already exists, which will hang the logon script.

Add the /Y parameter to silently overwrite.

Author

Commented:
/Y at the end or after copy?

Commented:
(both would actually work)

copy "%logonserver%\netlogon\shortcut.lnk" "%USERPROFILE%\Desktop" /Y

should work. I also recommend using quotes around the names in case the paths contain spaces. This is just a single line in the script.

Sorry for the confusion.

Having at least one Win7 client in your organization is great for these kinds of apparently easy but frustrating tasks. If you have the chance, I recommend you take it :)

Author

Commented:
Here is what I have... does not work

copy "%blythnet.local%\netlogon\Blyth Gmail.lnk" "%USERPROFILE%\Desktop" /Y

Commented:
This is not a variable
"%blythnet.local%

use

\\blythnet.local\netlogon\Blyth Gmail.lnk

Author

Commented:
Like this?

copy "\\blythnet.local\netlogon\BlythGmail.lnk" "%USERPROFILE%\Desktop" /Y

Commented:
Yes that looks good if the paths are correct

Author

Commented:
It works... but if I have 2 internet shortcuts in the startup, how to I have them open up in the same windows but on different tabs... instead of opening up in 2 different windows.

Also, can I use a custom icon for these internet shortcuts?
Commented:
That is an IE setting, you might be able to set this through a GPO. I do not have access to my lab right now to test.

Go to tools - internet options - advanced - "reuse windows for launching shorcuts"
Click apply and ok.

You should be able to set the icon in the GPP you created.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial