All Users Desktop shortcut changing path by itself

Posted on 2011-05-07
Last Modified: 2013-11-21
I have a dynamic shortcut path in an icon on the All Users Desktop of a terminal server maching.
The target path looks something like this:  c:\Documents and Settings\%username%\Timas\myApp.exe
the Start In path looks similar: C:\Documents and Settings\%Username%\TIMAS
For some reason the target path will on occasion mysteriously change from the dynamic setting to the profile name of one of the terminal server users like this.
c:\Documents and Settings\mBrooks\Timas\myApp.exe
The Start In path doesn't change. So of course when anyone other than mBrooks logs in and clicks on the shortcut they receive an error. Any Ideas as to what can be causing this? And I know that it isn't mBrooks changing it because that's me.
Question by:BradleyCleveland
    LVL 11

    Expert Comment

    Hmm, strange. Did you try to set the shortcut as read only for EVERYONE (I mean not user, but every group, including SYSTEM)?
    LVL 47

    Expert Comment

    Sounds as if these Terminal Server users may also have romaing profiles setup.
    Check their Ad Accounts
    LVL 16

    Expert Comment

    You could also try setting the shortcut icon to :  %userprofile%\timas\myapp.exe.

    That would also cover users who have a temp local profile or a secondary profile folder to which the domain has been appended (C:\Document and Settings\TEMP or C:\Documents and Settings\UserName.DOMAIN for example).
    LVL 6

    Accepted Solution

    Sounds lilke your username is the owner of the shortcut (.LNK) file.  Change the owner to system.
    LVL 1

    Author Closing Comment

    What I did is created another user and then created the shortcut under that new user's profile. No one ever logs in under this new profile and so far the shortcut hasn't changed.  The system wouldn't allow me to use the %profilename% variable in the shortcut
    LVL 16

    Expert Comment

    The variables you could use are either %userprofile% or %username%.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Remote Desktop Protocol or RDP has become an essential tool in many offices. This article will show you how to set up an external IP to point directly to an RDP session. There are many reasons why this is beneficial but perhaps the top reason is con…
    Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    733 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

    22 Experts available now in Live!

    Get 1:1 Help Now