Solved

Roaming Profiles & Icons for Locally Installed Programs

Posted on 2004-09-24
8
189 Views
Last Modified: 2010-04-13
I am using roaming profiles in a W2K network.  All of the workstations are identical with regard to hardware, and are virtually clones with regard to installed software and configuration.  A few machines, however, have software installed on them that is not installed on other machines.  At present, the desktop shortcuts for these applications are placed in the All Users profile.  However, I would like for the shortcuts to only appear to specific users.  The problem is, if I place the shortcuts in the users' profiles, they show up on any machine they log into, even if the application is not installed.  This tends to confuse some of my users, who assume that if the icon is there, the program should run.  Is there a way to hide the desktop shortcut if the target file does not exist?
0
Comment
Question by:alanpearce
[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
  • 4
  • 2
  • 2
8 Comments
 
LVL 3

Expert Comment

by:DanGilbertTX
ID: 12149747
Well, there really isn't a good way to do this. You could do it via a batch file (login script) that checks to see if that path/application is there and if not, move the icon off of the desktop. You would also need a logoff script that moves the icons back to the desktop. You could also move all the icons back in the login script and then move out the ones that are not active.

Anyway, I just can't think of a good way to do it other than what I wrote above. Good question though.
0
 

Author Comment

by:alanpearce
ID: 12159339
I was thinking that batch files would be way to do this, and I could deploy them easily enough through Group Policy.  What should the scripting be, however.
0
 

Expert Comment

by:astonMarton
ID: 12163549
Ah, was wondering if you were gonna ask this. Actually thought about on Saturday while driving over to my girlfriends. I really need to get a life. Anyway, this is what I would probably do for it:

### Script for moving inactive icons off the desktop. ###
#
#
# Move all the icons that were inactive on to the desktop again
# Or create the folder if it doesn't already exist
#
IF NOT EXIST "c:\documents and settings\%username%\desktop\Inactive\" mkdir "c:\documents and settings\%username%\desktop\Inactive\"
move /y "c:\documents and settings\%username%\desktop\Inactive\*.*" "c:\documents and settings\%username%\desktop"
#
# Now we move in the icons that are inactive on this machine
#
IF NOT EXIST "C:\Program Files\Microsoft Office\OFFICE11\winword.exe" DO move /y "c:\documents and settings\%username%\desktop\Microsoft Office Word 2003.lnk" "c:\documents and settings\%username%\desktop\Inactive\"


Ok that line wrapped, but you should get the gist of it. That checks to see if MS Word exists. If it doesn't then it moves the Word icon (the default name of it) to the Inactive folder. Anyway, this should give you a pretty good idea of how to go about it. Let me know if you need anything else.
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Expert Comment

by:astonMarton
ID: 12163571
Crap. Take that DO out of the IF NOT EXIST regarding the program. So, that last line should read:

IF NOT EXIST "C:\Program Files\Microsoft Office\OFFICE11\winword.exe" move /y "c:\documents and settings\%username%\desktop\Microsoft Office Word 2003.lnk" "c:\documents and settings\%username%\desktop\Inactive\"
0
 
LVL 3

Accepted Solution

by:
DanGilbertTX earned 100 total points
ID: 12163594
Ugggghhhh.... I was logged in to a coworker's machine when I wrote those last two lines. I would appreciate it not being credited to them if you like the answer.
0
 
LVL 3

Expert Comment

by:DanGilbertTX
ID: 12186956
Just following up to see if that script worked for you or not. Thanks.
0
 

Author Comment

by:alanpearce
ID: 12190321
Worked like a charm!  I did make a small change in the location of the "Inactive" directory, moving it up a level from the Desktop dir, so it wouldn't show on the desktop.
0
 
LVL 3

Expert Comment

by:DanGilbertTX
ID: 12190356
Yeah, that was just an example of where it could go. Glad it worked and solved the problem.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

623 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