new TS user profile creation

B

Bob Smedley

we are trying to provide a TSapp server that our users can connect to from
outside the network via the internet. Everything so far works fine except we
are having a hard time figuring out where to put a startup script so that it
gets added to the startup folder of each new user's profile.

Our users do not use roaming profiles and may or may not have logon scripts.
Since some may have logon scripts and some may not, and the stuff we want to
do in the startup script is specific to their use of the TSApp server, we
can't put it in a logon script.

We have tried adding the file in the TSApp server's default user's profile
but that does not work. We have tried adding a key under the runonce
registry key in the HKUsers/default hive but that does not work. We are out
of ideas and would appreciate any leads we could get.

Thanks
 
V

Vera Noest [MVP]

Have you add a pause statement to usrlogon.cmd to see if it ever
executes your login script? This batch file can be a bit tricky,
since it has a number of conditional statements. But if you call
your startup script as the first line in usrlogon.cmd, it should
be executed.

Note: you can also define a general login script, check inside the
script if the user is running a TS session, and jump out if the
script if he doesn't. Use the %CLIENTNAME% variable to check this.
It contains the name of the client PC in a TS session and is
undefined in a normal workstation logon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top