How can I add icons using a login script or gorup policy?

I need to add some icons to user desktops using a login script or group policy setting.  At the moment I only need to add a shortcut to a website.  Any know of a script or GP setting to accomplish this?
LVL 1
sc456aAsked:
Who is Participating?
 
TauranceCommented:
If you go into GPO and navigate to User Configuration > Windows Settings > Internet Explorer Maintnance > URLS > Favorites and Links, you can add the sites you want there.
0
 
sc456aAuthor Commented:
I'd like to add the link as a shortcut on the desktop as an icon, rather than a favorite in IE.
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.

 
HusbiCommented:
Add the following line to your SBS_LOGIN_SCRIPT.bat file

If exist "%userprofile%\desktop\shortcutname.lnk" goto finish

copy "\\YourServer\SharedFolderName\shortcutname.lnk"
"%userprofile%\desktop"
0
 
sc456aAuthor Commented:
I don't use a .bat file for login scripts, we use .vbs.
0
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
If you have disabled the default SBS_LOGIN_SCRIPT.bat file then your workstations aren't getting the correct settings from SBS to help you more easily manage your network.  The default file contains just a single line:  \\ServerName\Clients\Setup\setup.exe /s ServerName

You really should be using that file, which is in \\SERVERNAME\NETLOGON\.

There's an overview of how to configure this file here:  http://sbsurl.com/login

Then, the code suggested by Husbi would work.  Create the links while logged into any workstation, and then I'd suggest that you store them in a subfolder of the \NETLOGON share.   And, of course, if you use the "goto finish" argument, you need to have a label at the end of the file named :finish.  Suggested revised code is below.
IF EXIST "%userprofile%\desktop\shortcutname.lnk" GOTO Finish
 
COPY "\\ServerName\NETLOGON\linkfolder\shortcutname.lnk" "%userprofile%\desktop"
 
:Finish

Open in new window

0
 
sc456aAuthor Commented:
Tech:
I got what I needed from a script provided by Husbi at http://www.adminscripteditor.com/scriptlibrary/view.asp?id=433.

I've never been able to find out exactly what \\ServerName\Clients\Setup\setup.exe /s ServerName does in a modern domain, so I've always disabled it.  Do you have a link showing exactly what that line does on each login?  I'm also not a fan or .bat scripting, and use vbs or kixtart whenever possible.
0
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
"I've never been able to find out exactly what \\ServerName\Clients\Setup\setup.exe /s ServerName does in a modern domain, so I've always disabled it."

SBS-based domains aren't your ordinary "modern domain".   Because they are pre-defined, pre-configured, and management time and effort of an SBS-based domain will be less than 25% of what it would take for the same sized network configured with standard Server 2003's.

That line in the login script is primarily responsible for application installation on each workstation, but it also makes sure that those apps are configured correctly and stay the way you want them to.  For instance, in an SBS-based domain, a user should be able to log onto any workstation on the network and Outlook will auto-install and auto-configure for them.  You can read more about this if you like on page 210 of the SBS Technical Document I've uploaded to https://filedb.experts-exchange.com/incoming/ee-stuff/83-SBS2003TechnicalReferenceTraining.pdf  (use your EE username/password for access).

If you want to read more about why SBS-based domains should be treated differently, please review http://sbsurl.com/itpro and http:Q_21831460.html
 

"I'm also not a fan or .bat scripting, and use vbs or kixtart whenever possible."

Perhaps you can explain to me then, why using vbs or kixtart is better in this situation?  



Jeff
TechSoEasy
0
 
sc456aAuthor Commented:
"Perhaps you can explain to me then, why using vbs or kixtart is better in this situation?"

They may not be better than .bat files, but I prefer their scripting languages.


I almost always enable roaming profiles which handles all of the Outlook configuration, etc.  I don't think I'm missing anything or doing any extra work because I'm not using the setup file.  Thanks for the explanation though.
0
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
You are missing a lot, and you are doing a lot of extra work actually.  Roaming profiles are rarely needed in an SBS environment, so just the time it takes you to set that up is more than necessary.

But if your full-time job is to manage this server, then perhaps using it's built-in tools may jeopardize your job security.

Jeff
TechSoEasy

0
 
sc456aAuthor Commented:
Jeff:
There wasn't a single reference to "\\ServerName\Clients\Setup\setup.exe" in the SBS 2003 PDF file you uploaded, nor is there a direct reference in the ITPro doc you linked to, nor is there one in the other EE article you linked to.  So unless you can tell me EXACTLY what that file does and how it benefits me to use it then I don't believe it necessary.  Simply saying that it will make my life easier isn't good enough for me.  Please don't assume that the people on these forums don't know what they are doing because they ask the random stupid question from time to time.  No one knows everything about what they're doing, and everyone needs advice at times.  No one deserves to be belittled because they do something differently than you do.  If you can actually prove why your method is better than it would be worthwhile to me and the others to read this post, otherwise you've just turned this into a flame war which should never happen on EE.
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.

All Courses

From novice to tech pro — start learning today.