Batch File for all Terminal Users

  • Thread starter Thread starter Pearl
  • Start date Start date
P

Pearl

Guest
how do I execute a batchfile so that it applies to all Terminal Server Users?
I tried to execute it as the local administrator of the Terminal Server and
using Change User /install....but, it only applied to me as the
Administrator....no other user. So, it appears that Change User does not
work with Batch files....or, I am not using it properly.
 
Re: Batch File for all Terminal Users

Changing the server's mode to install mode (with the "change user"
command) does *not* mean that all commands are executed for all
users!
It means that the server monitors changes in certain areas of the
registry, and makes them available for all users on their next
logon.

So your batfile itself will not run for every user, simply by
running it in install mode. But depending on what it does, some of
its effects might be copied to user profiles on next logon.

What is it that you are trying to do?
If you want all users to execute certain commands, have you
considered to put the commands in the user's logon script on the
Terminal Server?

_________________________________________________________
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?UGVhcmw=?= <Pearl@discussions.microsoft.com> wrote on 16
maj 2008 in microsoft.public.windows.terminal_services:

> how do I execute a batchfile so that it applies to all Terminal
> Server Users?
> I tried to execute it as the local administrator of the
> Terminal Server and
> using Change User /install....but, it only applied to me as the
> Administrator....no other user. So, it appears that Change User
> does not work with Batch files....or, I am not using it
> properly.
 
Re: Batch File for all Terminal Users

Thanks very much. I will place the batch file in the logon script; however,
I already have a script running in the user logon script. It auto runs an
application. By placing the batch file in the logon script along with the
application will that be a problem?

"Vera Noest [MVP]" wrote:

> Changing the server's mode to install mode (with the "change user"
> command) does *not* mean that all commands are executed for all
> users!
> It means that the server monitors changes in certain areas of the
> registry, and makes them available for all users on their next
> logon.
>
> So your batfile itself will not run for every user, simply by
> running it in install mode. But depending on what it does, some of
> its effects might be copied to user profiles on next logon.
>
> What is it that you are trying to do?
> If you want all users to execute certain commands, have you
> considered to put the commands in the user's logon script on the
> Terminal Server?
>
> _________________________________________________________
> 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?UGVhcmw=?= <Pearl@discussions.microsoft.com> wrote on 16
> maj 2008 in microsoft.public.windows.terminal_services:
>
> > how do I execute a batchfile so that it applies to all Terminal
> > Server Users?
> > I tried to execute it as the local administrator of the
> > Terminal Server and
> > using Change User /install....but, it only applied to me as the
> > Administrator....no other user. So, it appears that Change User
> > does not work with Batch files....or, I am not using it
> > properly.

>
 
Re: Batch File for all Terminal Users

Pearl <Pearl@discussions.microsoft.com> wrote:
> Thanks very much. I will place the batch file in the logon script;
> however, I already have a script running in the user logon script. It
> auto runs an application. By placing the batch file in the logon
> script along with the application will that be a problem?


As Vera said, this depends entirely on what the batch file commands actually
*do* ....
>
> "Vera Noest [MVP]" wrote:
>
>> Changing the server's mode to install mode (with the "change user"
>> command) does *not* mean that all commands are executed for all
>> users!
>> It means that the server monitors changes in certain areas of the
>> registry, and makes them available for all users on their next
>> logon.
>>
>> So your batfile itself will not run for every user, simply by
>> running it in install mode. But depending on what it does, some of
>> its effects might be copied to user profiles on next logon.
>>
>> What is it that you are trying to do?
>> If you want all users to execute certain commands, have you
>> considered to put the commands in the user's logon script on the
>> Terminal Server?
>>
>> _________________________________________________________
>> 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?UGVhcmw=?= <Pearl@discussions.microsoft.com> wrote on 16
>> maj 2008 in microsoft.public.windows.terminal_services:
>>
>>> how do I execute a batchfile so that it applies to all Terminal
>>> Server Users?
>>> I tried to execute it as the local administrator of the
>>> Terminal Server and
>>> using Change User /install....but, it only applied to me as the
>>> Administrator....no other user. So, it appears that Change User
>>> does not work with Batch files....or, I am not using it
>>> properly.
 
Back
Top