I use WTSSetUserConfig with WTSUserConfigInitialProgram to set Terminal Services Startup environment,like this: ///////////////////////////////////////////////// WTSSetUserConfig( szServerName, lpszUserName, WTSUserConfigInitialProgram, "c:\\test.exe", _tcslen("c:\\test.exe")); ///////////////////////////////////////////////// But when I set it, the user's environment remain use the standard shell, explorer.exe. the Startup environment of the user still be disabled. I want to know how to make it enabled. Thanks.