Command-Line Utilities
Several neat utilities that are sprinkled throughout this chapter, and some that I didn't cover in detail, enable you to perform much of the functionality you find in the graphical management interfaces for Terminal Services from the command line. I've collected them all in this final section of the chapter, as a quick reference of sorts:
change logon
Enables logons (using the
/enable
switch) or disables logons (using the/disable
switch) to a specific server. Use/query
to find out what mode a machine is currently in.change port
Modifies serial port mappings for programs that operate in DOS compatibility mode. Use
/query
to find out the current mappings.change user
Changes the mode in which a Terminal Services machine operates. Using
/install
switches the machine into install mode to add applications of multisession use, and using/execute
disables the install mode for normal functionality. Use/query
to determine the current mode. See earlier in this chapter for detailed information on this command.cprofile
Cleans profiles for inefficient use of space, and removes from the Registry any file associations the user has configured. Profiles must not be in use to run this tool. Use
/L
to clean every local profile,/I
to prompt you before cleaning each profile, and/V
to display each action the program has taken.flattemp
Enables flat temporary directories—that is, enables the redirection of temporary directories to a location other than the default.
/enable
enables ...
Get Windows Server 2008: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.