Command-Line Management
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
/enableswitch) or disables logons (using the/disableswitch) to a specific server. Use/queryto find out what mode a machine is currently in.-
Change port Modifies serial port mappings for programs that operate in DOS compatibility mode. Use
/queryto find out the current mappings.-
Change user Changes the mode in which a Terminal Services machine operates. Using
/installswitches the machine into install mode to add applications of multisession use, and using/executedisables the install mode for normal functionality. Use/queryto 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
/Lto clean every local profile,/Ito prompt you before cleaning each profile, and/Vto 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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access