
Application Compatibility Scripts for Windows NT Server, Terminal Server Edition 14
For optimum application compatibility, when users log in they should run a script
that maps their home directory to a drive letter. Additionally, the script should
perform any other application specific tasks that are necessary, determined with the
information above about users needed interaction with the application.
There are several methods of running a script when a user logs on. First, the script
can be put into the user’s Startup folder. This allows a unique script for each user,
but requires a bit more effort on the part of the system administrator.
Second, the script can be placed in the All Users Startup folder. With this method, a
single script is used for the entire system. It is the easiest method, but it somewhat
less flexible.
Finally, the administrator can enter a Logon script name into each user’s profile with
User Manager for Domains. With this method, you can enter a different script name
for each user. For example, you may have a user.cmd script for normal users and
admin.cmd for administrators. Logon scripts need to be put into
%systemroot%\system32\Repl\Import\Scripts.
Note: User Manager for Domains also lets you map a user’s home directory to a
drive letter for network home directories (i.e,, Connect Z: as
\\server\users\username). Don’t be misled. The drive letter is only mapped to the
server name and share point. The drive letter does not reference directories
beyond the share point.
At a minimum, the script must do the following:
♦ Set RootDrive=Z:
♦ Subst %RootDrive% /d
♦ Subst %RootDrive% %HomeDrive%%HomePath%
Additionally, the script may invoke application configuration scripts by appending
“Call scriptname” to the minimal script listed above. Terminal Server includes
application scripts for many popular applications. You may need custom application
scripts for other applications you run. Application configuration scripts will be
described in more detail in the following section.
NOTE: A sample logon script is included in %systemroot%\compat\user.cmd. Also,
check Appendix A for a printed version of this script and discussion of what each
point does.
HOW TO SET UP USERS
UTILIZING LOGON
Komentarze do niniejszej Instrukcji