Solved

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

Posted on 2007-12-05
11
1,024 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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

[b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
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…

708 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

15 Experts available now in Live!

Get 1:1 Help Now