Solved

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

Posted on 2007-12-05
11
1,026 Views
Last Modified: 2009-12-16
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?
0
Comment
Question by:sc456a
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 5

Expert Comment

by:Taurance
ID: 20415641
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
 
LVL 1

Author Comment

by:sc456a
ID: 20415963
I'd like to add the link as a shortcut on the desktop as an icon, rather than a favorite in IE.
0
 
LVL 5

Expert Comment

by:Husbi
ID: 20416684
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
 
LVL 1

Author Comment

by:sc456a
ID: 20416716
I don't use a .bat file for login scripts, we use .vbs.
0
 
LVL 5

Accepted Solution

by:
Husbi earned 250 total points
ID: 20417205
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20417550
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
 
LVL 1

Author Comment

by:sc456a
ID: 20419271
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
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20422206
"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
 
LVL 1

Author Comment

by:sc456a
ID: 20422769
"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
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 20427377
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
 
LVL 1

Author Comment

by:sc456a
ID: 20427626
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

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now