Link to home
Start Free TrialLog in
Avatar of BradleyCleveland
BradleyCleveland

asked on

All Users Desktop shortcut changing path by itself

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.
Avatar of marek1712
marek1712
Flag of Poland image

Hmm, strange. Did you try to set the shortcut as read only for EVERYONE (I mean not user, but every group, including SYSTEM)?
Sounds as if these Terminal Server users may also have romaing profiles setup.
Check their Ad Accounts
Avatar of Spike99
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).
ASKER CERTIFIED SOLUTION
Avatar of ipajones
ipajones
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BradleyCleveland
BradleyCleveland

ASKER

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
The variables you could use are either %userprofile% or %username%.