Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2007-12-05
11
Medium Priority
?
1,034 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
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 1000 total points
ID: 20417205
0
 
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
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 configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

609 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