Microsoft KB Archive/321701

= HOW TO: Register Programs to Run in a Global Context by Using the REGISTER Command in Windows 2000 Terminal Services =

Article ID: 321701

Article Last Modified on 10/31/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server

-



This article was previously published under Q321701



IN THIS TASK

 * SUMMARY
 * Description of the REGISTER Command
 * Examples
 * REFERENCES



SUMMARY
This article describes how to use the register command to register a program so that it runs in a system or user global context in Windows 2000 Terminal Services.

Some programs may expect only one user to use the program at a time. In the Terminal Services multiple-user environment, some files (such as dynamic-link library, or DLL, files) may not open correctly if more than one user tries to use them. These programs must run in a global context to establish resources that are common to more than one user. You can use the register command to register a program so that it is available globally to the system and to all users on the system.

Note that a program's registration data is recognized only when the program is installed. If you use the register command for a program that is already installed on the server, the changes do not take effect until the next time that the program is installed.

You must log on as Administrator or as a member of the Administrators group to use the register command.

back to the top

Description of the REGISTER Command
The register command uses the following syntax:

register  [/system | /user] [/v]

The parameters for the register command are:
 *  : Use this parameter to specify the file that you want to register.
 * /system: Use this parameter to register  as a system global resource.
 * /user: Use this parameter to register  as a user global resource.
 * /v: Use this parameter to display information about the actions that are being performed.

back to the top

Examples
The following examples demonstrate how to use the register command to register a program so that it runs in a global context.  To register File1.xxx as a system global resource, type the following line at a command prompt, and then press ENTER:

register file1.xxx /system

The following line appears in the Cmd window:

File1.xxx registered SYSTEM GLOBAL

 To register File8.xxx as a user global resource, type the following line at a command prompt, and then press ENTER:

register file8.xxx /user

The following line appears in the Cmd window:

File8.xxx registered USER GLOBAL



back to the top

