start program on connection profile loading?

  • Thread starter Thread starter BW
  • Start date Start date
B

BW

Guest
Hi there,

When specifying an rdp connection to start a program on connection, does the
users profile still get loaded in the background? If not is there a way we
can get rdp to start a program but not load profiles?

Thanks.
 
Re: start program on connection profile loading?

Yes, the profile is still loaded even if only one program is started.
Userinit.exe is responsible for this. You can search for Userinit.exe in the
Registry and remove the execution on user logon, but this is not recommended
because Userinit does some initialization besides loading the profile.

Benny

--
Bernhard Tritsch
MVP Windows Server - Terminal Server
Author of "Windows Server 2003 Terminal Services", MS Press
http://www.wtstek.com

"BW" <BW@discussions.microsoft.com> wrote in message
news:FBD4D1CE-1229-49E4-BADF-4932DDF242C1@microsoft.com...
> Hi there,
>
> When specifying an rdp connection to start a program on connection, does
> the
> users profile still get loaded in the background? If not is there a way
> we
> can get rdp to start a program but not load profiles?
>
> Thanks.
 
Re: start program on connection profile loading?

Hi Benny,

I would *strongly* recommend against removing userinit.exe
from the registry. It will break logons from both the console
and via TS, whether a starting program is specified or not.

Depending on if the machine has firewall enabled or has
various non-TS remote functions locked down you may need
to boot to a recovery environment to recover from the change.
Safe mode and last known good will not work. Likewise I
am not sure that a repair install will fix the issue either.

This one small registry change could lead to many hours of
troubleshooting and possibly a complete reinstall/restore
depending on how knowledgable the tech is.

-TP

Benny Tritsch [MVP] wrote:
> Yes, the profile is still loaded even if only one program is started.
> Userinit.exe is responsible for this. You can search for Userinit.exe
> in the Registry and remove the execution on user logon, but this is
> not recommended because Userinit does some initialization besides
> loading the profile.
>
> Benny
 
Re: start program on connection profile loading?

thanks for advice. is there a way to prevent profiles from loading and just
run desired app?

"TP" wrote:

> Hi Benny,
>
> I would *strongly* recommend against removing userinit.exe
> from the registry. It will break logons from both the console
> and via TS, whether a starting program is specified or not.
>
> Depending on if the machine has firewall enabled or has
> various non-TS remote functions locked down you may need
> to boot to a recovery environment to recover from the change.
> Safe mode and last known good will not work. Likewise I
> am not sure that a repair install will fix the issue either.
>
> This one small registry change could lead to many hours of
> troubleshooting and possibly a complete reinstall/restore
> depending on how knowledgable the tech is.
>
> -TP
>
> Benny Tritsch [MVP] wrote:
> > Yes, the profile is still loaded even if only one program is started.
> > Userinit.exe is responsible for this. You can search for Userinit.exe
> > in the Registry and remove the execution on user logon, but this is
> > not recommended because Userinit does some initialization besides
> > loading the profile.
> >
> > Benny

>
 
Re: start program on connection profile loading?

No. You cannot logon without loading a profile.
What is it that you really want to accomplish? Why do you want to
prevent loading a profile?
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

=?Utf-8?B?Qlc=?= <BW@discussions.microsoft.com> wrote on 06 okt
2007 in microsoft.public.windows.terminal_services:

> thanks for advice. is there a way to prevent profiles from
> loading and just run desired app?
>
> "TP" wrote:
>
>> Hi Benny,
>>
>> I would *strongly* recommend against removing userinit.exe
>> from the registry. It will break logons from both the console
>> and via TS, whether a starting program is specified or not.
>>
>> Depending on if the machine has firewall enabled or has
>> various non-TS remote functions locked down you may need
>> to boot to a recovery environment to recover from the change.
>> Safe mode and last known good will not work. Likewise I
>> am not sure that a repair install will fix the issue either.
>>
>> This one small registry change could lead to many hours of
>> troubleshooting and possibly a complete reinstall/restore
>> depending on how knowledgable the tech is.
>>
>> -TP
>>
>> Benny Tritsch [MVP] wrote:
>> > Yes, the profile is still loaded even if only one program is
>> > started. Userinit.exe is responsible for this. You can search
>> > for Userinit.exe in the Registry and remove the execution on
>> > user logon, but this is not recommended because Userinit does
>> > some initialization besides loading the profile.
>> >
>> > Benny
 
Re: start program on connection profile loading?

staff need to log on to access an app on the terminal server at times during
the day but only use it for periods of about 5-10 minutes, just looking to
reduce the time to get to the app. guess i'm looking at more citrix or
win2k8 ts app publishing features? thanks anyway.

"Vera Noest [MVP]" wrote:

> No. You cannot logon without loading a profile.
> What is it that you really want to accomplish? Why do you want to
> prevent loading a profile?
> _________________________________________________________
> Vera Noest
> MCSE, CCEA, Microsoft MVP - Terminal Server
> TS troubleshooting: http://ts.veranoest.net
> ___ please respond in newsgroup, NOT by private email ___
>
> =?Utf-8?B?Qlc=?= <BW@discussions.microsoft.com> wrote on 06 okt
> 2007 in microsoft.public.windows.terminal_services:
>
> > thanks for advice. is there a way to prevent profiles from
> > loading and just run desired app?
> >
> > "TP" wrote:
> >
> >> Hi Benny,
> >>
> >> I would *strongly* recommend against removing userinit.exe
> >> from the registry. It will break logons from both the console
> >> and via TS, whether a starting program is specified or not.
> >>
> >> Depending on if the machine has firewall enabled or has
> >> various non-TS remote functions locked down you may need
> >> to boot to a recovery environment to recover from the change.
> >> Safe mode and last known good will not work. Likewise I
> >> am not sure that a repair install will fix the issue either.
> >>
> >> This one small registry change could lead to many hours of
> >> troubleshooting and possibly a complete reinstall/restore
> >> depending on how knowledgable the tech is.
> >>
> >> -TP
> >>
> >> Benny Tritsch [MVP] wrote:
> >> > Yes, the profile is still loaded even if only one program is
> >> > started. Userinit.exe is responsible for this. You can search
> >> > for Userinit.exe in the Registry and remove the execution on
> >> > user logon, but this is not recommended because Userinit does
> >> > some initialization besides loading the profile.
> >> >
> >> > Benny

>
 
Re: start program on connection profile loading?

But even with published applications, the profile must be loaded.
If you experience long logon times because of profile load times,
you could either give the staff members a local profile, or
minimize the size of their roaming profile as much as possible.
Have a look at Folder redirection policies, and make sure that at
least the contents of their My Documents folder is redirected to
their home directory. Also consider redirecting the Desktop and
Application data folders.
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

=?Utf-8?B?Qlc=?= <BW@discussions.microsoft.com> wrote on 07 okt
2007 in microsoft.public.windows.terminal_services:

> staff need to log on to access an app on the terminal server at
> times during the day but only use it for periods of about 5-10
> minutes, just looking to reduce the time to get to the app.
> guess i'm looking at more citrix or win2k8 ts app publishing
> features? thanks anyway.
>
> "Vera Noest [MVP]" wrote:
>
>> No. You cannot logon without loading a profile.
>> What is it that you really want to accomplish? Why do you want
>> to prevent loading a profile?
>> _________________________________________________________
>> Vera Noest
>> MCSE, CCEA, Microsoft MVP - Terminal Server
>> TS troubleshooting: http://ts.veranoest.net
>> ___ please respond in newsgroup, NOT by private email ___
>>
>> =?Utf-8?B?Qlc=?= <BW@discussions.microsoft.com> wrote on 06 okt
>> 2007 in microsoft.public.windows.terminal_services:
>>
>> > thanks for advice. is there a way to prevent profiles from
>> > loading and just run desired app?
>> >
>> > "TP" wrote:
>> >
>> >> Hi Benny,
>> >>
>> >> I would *strongly* recommend against removing userinit.exe
>> >> from the registry. It will break logons from both the
>> >> console and via TS, whether a starting program is specified
>> >> or not.
>> >>
>> >> Depending on if the machine has firewall enabled or has
>> >> various non-TS remote functions locked down you may need
>> >> to boot to a recovery environment to recover from the
>> >> change. Safe mode and last known good will not work.
>> >> Likewise I am not sure that a repair install will fix the
>> >> issue either.
>> >>
>> >> This one small registry change could lead to many hours of
>> >> troubleshooting and possibly a complete reinstall/restore
>> >> depending on how knowledgable the tech is.
>> >>
>> >> -TP
>> >>
>> >> Benny Tritsch [MVP] wrote:
>> >> > Yes, the profile is still loaded even if only one program
>> >> > is started. Userinit.exe is responsible for this. You can
>> >> > search for Userinit.exe in the Registry and remove the
>> >> > execution on user logon, but this is not recommended
>> >> > because Userinit does some initialization besides loading
>> >> > the profile.
>> >> >
>> >> > Benny
 
Re: start program on connection profile loading?

Hi,

To add to what Vera has said, if you are running on modern
server hardware with local profiles (or if roaming, proper
folder redirection config) logon time can be about 1 second
after clicking the OK button on the logon screen.

Also don't forget that you can have users disconnect instead
of logoff. That means there would be no delay due to profile
loading time and if they left the application running that delay
would be eliminated as well.

I recommend you use the Remote Desktop client that came
with your 2003 server because it connects much quicker
than the newest version. The install for it is located on your
2003 server's hard drive here:

C:\WINDOWS\system32\clients\tsclient\win32\msrdpcli.msi

If you want you can have each user save their user name and
password so that when they double-click the .rdp file it will
log them on automatically. Using this technique you can
reduce the time it takes from double-click to fully logged on
to less than 3 seconds (depending on your hardware and
configuration, 5.2.3790.x client assumed).

-TP

BW wrote:
> staff need to log on to access an app on the terminal server at times
> during the day but only use it for periods of about 5-10 minutes,
> just looking to reduce the time to get to the app. guess i'm looking
> at more citrix or win2k8 ts app publishing features? thanks anyway.
 
Back
Top