Is there a quick way to change desktop colors for a remote desktop user?

9,381

Solution 1

In the past, we've added buttons to the locked down program which allow the "color scheme" Control Panel item to be opened. (desk.cpl)

ShellExecute(0,"open","cmd","/cdesk.cpl","",0)

This worked fine til we moved to Server 2008. The cdesk.cpl has changed, so opening it also gives you access to the filesystem (They've added an open button)

This prompted me to ask this question over at stackoverflow. The answers were not great...

https://stackoverflow.com/questions/546818/how-do-i-change-the-current-windows-theme-programatically

In your situation, I'd look at loading a registry file at time of login "maple.reg", etc. depending on which profile they want. Note that they'll need to logout and log back in for the color changes to take effect.

Solution 2

A (complete) hack would be to export HKCU\Control Panel\Colors from a machine that is using the Maple scheme and merge that reg file as part of their login script. Or you could get their SID and put it directly in under HKU

Would probably take 2 logins for them to see...

Solution 3

If I remember correctly (its been a while) this change can be made in the registry under HKEY_USERS. You'll need to match the SID to the user you want to edit, then edit his profile settings under HKU/SID/Control Panel/Appearance. Change "NewCurrent" to one of the schemes listed in the folder called "Schemes" under "Appearance."

Have them log off then back on after you made the change. You may need to change 'current' and 'newcurrent.'

Solution 4

You could do this with Group Policy, but there isn't a built-in ADM template to do what you want. I presently lack the time to write this for you right now. If you only have a couple of users to do it with, just do it manually. If you're talking a large number of users, then pay somebody to write the ADM template for you. >smile<

Solution 5

All the alternatives would take MUCH longer than just logging him in and changing his desktop colour scheme.

Share:
9,381

Related videos on Youtube

Thomas L Holaday
Author by

Thomas L Holaday

Updated on September 17, 2022

Comments

  • Thomas L Holaday
    Thomas L Holaday almost 2 years

    Some users who connect to the server using Remote Desktop (mstsc) are locked to a particular program: when they login, the program starts; when they quit the program, they're logged out.

    One of them has tired of the Lilac color scheme, and would prefer Maple. Is there an easier way to change his colorscheme than to unlock his account, have him login, right-click on the desktop, change, save, logout, re-lock his account?

    He is running Windows XP, and the server is Windows 2003.

  • Thomas L Holaday
    Thomas L Holaday almost 15 years
    Yes, the "start the program at login" prevents the users from accessing the desktop, and that is a policy decision.
  • Thomas L Holaday
    Thomas L Holaday almost 15 years
    Sometimes getting approval to disable temporarily the "start the program at logon" environment setting can take a long time, too. What are the alternatives? Would I edit his registry manually?
  • Matt
    Matt almost 15 years
    ah I see, you are doing this on purpose. I was under the impression you weren't sure why the computer was acting this way. The question makes more sense now.