text
stringlengths
0
4.23k
/drainuntilrestart
Disables logons from new client sessions until the computer is restarted, but allows reconnections to existing sessions.
/?
Displays help at the command prompt.
Remarks
Logons are re-enabled when you restart the system.
If you're connected to the Remote Desktop Session Host server from a client session, and then you disable logons and log off before re-enabling logons, you won't be able to reconnect to your session. To re-enable logons from client sessions, log on at the console.
Examples
To display the current logon status, type:
change logon /query
To enable logons from client sessions, type:
change logon /enable
To disable client logons, type:
change logon /disable
change port
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Lists or changes the COM port mappings to be compatible with MS-DOS applications.
Note
To find out what's new in the latest version, see What's New in Remote Desktop Services in Windows Server.
Syntax
change port [<portX>=<portY>| /d <portX> | /query]
Parameters
Parameter
Description
<portX>=<portY>
Maps COM <portX> to <portY>
/d <portX>
Deletes the mapping for COM <portX>
/query
Displays the current port mappings.
/?
Displays help at the command prompt.
<portX>
<portY>
<portX>
<portY>
<portX>
<portX>
Remarks
Most MS-DOS applications support only COM1 through COM4 serial ports. The change port command maps a serial port to a different port number, allowing apps that don't support high-numbered COM ports to access the serial port. Remapping works only for the current session and is not retained if you log off from a session and then log on again.
Use change port without any parameters to display the available COM ports and their current mappings.
Examples
To map COM12 to COM1 for use by an MS-DOS-based application, type:
change port com12=com1
To display the current port mappings, type:
change port /query
change user
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Changes the install mode for the Remote Desktop Session Host server.
Note
To find out what's new in the latest version, see What's New in Remote Desktop Services in Windows Server.
Syntax
change user {/execute | /install | /query}
Parameters
Parameter
Description
/execute
Enables .ini file mapping to the home directory. This is the default setting.
/install
Disables .ini file mapping to the home directory. All .ini files are read and written to the system directory. You must disable .ini file mapping when installing applications on a Remote Desktop Session Host server.
/query
Displays the current setting for .ini file mapping.