Home NT Commands
NT Syntax

CHANGE

Change Terminal Server Session properties.

syntax
      CHANGE USER /options
      CHANGE LOGON /options
      CHANGE PORT /options

options:
  To change .INI file mapping: (administrators only)

  CHANGE USER /INSTALL   Enable install mode. This command has to be run before
                         installing any new software on a Terminal Server.
                         This will create a .ini file for the application
                         in the TS system directory.

  CHANGE USER /EXECUTE   Enable execute mode (default)
                         Run this when an installation is complete.

  CHANGE USER /QUERY     Display current settings.

  To enable or disable terminal session logins:

  CHANGE LOGON /QUERY    Query current terminal session login mode.
  CHANGE LOGON /ENABLE   Enable user login from terminal sessions.
  CHANGE LOGON /DISABLE  Disable user login from terminal sessions.


  To list or change COM port mappings for the current session.
  This can allow DOS applications to access high numbered ports e.g. COM12

  CHANGE PORT portx=porty      Map port x to port y.
  CHANGE PORT /D portx         Delete mapping for port x.
  CHANGE PORT /QUERY           Display current mapping ports.

How .ini files work:

Installing an application will create a .ini file in the TS system directory.

The first time a user runs the application, the application looks in the 
home directory for its .ini file. If none is found then Terminal Server will
copy the .ini file from the system directory to the users home directory.

Each user will have a unique copy of the application's .ini file in their home directory.

To learn more about what happens when the system is put into install mode
run CHANGE USER /? 

The CHANGE command replaces CHGLOGON, CHGUSER, and CHGPORT from Citrix Winframe. 


"There are two ways to slide easily through life; to believe everything or to doubt everything. Both ways save us from thinking" - Alfred Korzybski

Related Commands:


Other Terminal Server commands
INSTSRV - Install an NT Service
LOGOFF - Log a user off
MSIEXEC - Microsoft Windows Installer
Q243202 - TS Session Management Tools

There is a second command also called CHANGE.exe - supplied as part of the Microsoft 'Automated Installation Framework' - Change values in a text file

Equivalent Linux BASH commands:

who - Print all usernames currently logged in



Simon Sheppard
SS64.com