IT tutorials
 
Windows
 

Windows Server 2008 : Viewing and Manipulating the Install Mode with change user, Modifying Logon Capabilities with change logon, Connecting and Disconnecting Sessions with tscon and tsdiscon

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
3/4/2013 6:28:20 PM

1. Viewing and Manipulating the Install Mode with change user

The best way to install applications on an RDS Session Host or Terminal Services server is with Microsoft Installer (.msi) files. When you use .msi files, you don’t need to take any additional steps. However, if you install an application that doesn’t use an .msi file, you need to take additional steps with the change user command. The basic syntax is

change user /execute | /install | /query

Tip

The chgusr command is an alias for change user. In other words, you can use chgusr with any of these switches just as you use change user with these switches.


change user CommandsComments
Prepare to install applications.
C:\>change user /install

Enables install mode. When in install mode, you can then install applications and the RDS Session Host server or Terminal Services server records the process.
Return system to execute mode.
C:\>change user /execute

Enables execute mode. After installing the application, this command returns the server to execute mode.
Identify current mode.
C:\>change user /query

Displays current settings.

If the system is in execute mode, it indicates “Application EXECUTE mode is enabled.”

If the system is in install mode, it indicates “Application INSTALL mode is enabled.”

If you need to install an application that isn’t using Microsoft Installer, perform the steps in the following order:

StepsAction
1.Run change user /install from the command prompt.
2.Install the application.
3.Run change user /execute from the command prompt.

2. Modifying Logon Capabilities with change logon

You can enable and disable client logons to RDS or TS servers with the change logon command.

change logon CommandsComments
Disable logons.
C:\>change logon /disable

You can use this to prevent new users from logging on without affecting the users who are currently logged on.

Note

Logons are automatically reenabled when the system is restarted.

Enable logons.
C:\>change logon enable

Reenables user logons after they have been disabled.
Identify current mode.
C:\>change logon /query

Displays the current session logon status.
C:\>change logon /drain

Disables new user logons but allows reconnections to existing sessions.
C:\>change logon /drainuntilrestart

Disables new user logons until the server is restarted but allows reconnections to existing sessions.

Tip

These settings affect administrator sessions also. In other words, if you disable logons and then log off, you will not be able to log on to the administrator session until logons are reenabled.

3. Connecting and Disconnecting Sessions with tscon and tsdiscon

You can use the tscon and tsdiscon commands to connect and disconnect RDS and TS sessions. The tscon command connects a user to a session running on an RDS or TS server. The tsdiscon disconnects a user from a session.

The basic syntax of tsdiscon is

tsdiscon sessionid | sessionname

For example, consider Figure 1 showing Terminal Services Manager on a Windows Server 2008 server. It shows a single session open with a session ID of 2 and a session name of RDP-Tcp#0.

Figure 1. Terminal Services Manager with a single session open

You can disconnect this session with either of the following commands:

tsdiscon 2
tsdiscon rdp-tcp#0

Similarly, if the session is disconnected, you can connect it with the tscon command. The basic syntax of tscon is

tsdiscon sessionid | sessionname

You can connect the session with either of the following commands:

tscon 2
tscon rdp-tcp#0
 
Others
 
- Windows Server 2008 : Remote Desktop Services - Adding the Remote Desktop Services Role
- Windows 8 : Configuring User and Computer Policies - Working with Logon and Startup Policies
- Windows 8 : Configuring User and Computer Policies - Working with Computer and User Script Policies
- Managing Windows Small Business Server 2011 : Using Windows Server 2008 R2 Tools (part 2)
- Managing Windows Small Business Server 2011 : Using Windows Server 2008 R2 Tools (part 1)
- Windows 8 : Configuring User and Computer Policies - Working with Access and Connectivity Policies
- Windows 8 : Configuring User and Computer Policies - Working with File and Data Management Policies
- Windows Home Server 2011 : Configuring a Computer for Backup
- Windows Home Server 2011 : Converting Client Partitions to NTFS, Configuring Windows Home Server Backups
- Windows 8 : Configuring User and Computer Policies - Configuring Policies
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us