ADmodcmd Terminal Server attributes

Windows 2003 or later is required to modify Terminal Server attributes.

   -tsprofilepath ProfilePath
               Set the users Terminal Server Profile path to the specified value.

   -tshomefolderpath FolderPath
               Set the users Terminal Server home folder path to the specified value.
   
   -tsnetworkfolderpath driveLetter FolderPath
               Set the users Terminal Server home folder path to a network share.
               driveLetter should be the drive that FolderPath will be mapped to.

   -tsenable   Enable the user for Terminal Server.

   -tsdisable  Disable the user from using Terminal Server.

   -enableremote [-required] [-interact]
               Enable Remote Control for the user.
               The -required and -interact switches are optional.
               If required is used, "Require Users Permission" will be checked.
               If -interact is specified, then "Interact With The Session" will be checked.

   -disableremote
               Disable Remote Control for the user.

   -tsstartingprogram program
               Set the program to start when the user logs on to Terminal Server.  

   -tsstartin location
               Set the location for the users startup program to start in.

   -maxdisconnectedsession minutes
               Set the maximum disconnected session time for the user in minutes.
               Setting to 0 minutes indicates an unlimited time.

   -maxconnectiontime minutes
               Set the maximum connection time for the user in minutes.
               Setting to 0 indicates an unlimited time.

   -maxidletime minutes
               Set the maximum idle time for the user in minutes.
               Setting to 0 indicates an unlimited time.

   -sessionlimitaction disconnect|end
               The action to take when a sessions limit has been reached.
               (disconnect the session or end the session).

   -allowreconnect any|originating
               Whether or not to allow a reconnect from anywhere (any) or just
               the originating client (originating).

   -tsconnectclientdrives yes|no
               Whether or not to connect client drives upon logon to
               a Terminal Server session.

   -tsconnectclientprinters yes|no
               Whether or not to connect client printers upon logon to
               a Terminal Server session.

   -tsdefaulttomainprinter yes|no
               Whether or not to default to the main client printer.

“I did not fully understand the dread term 'terminal illness' until I saw Heathrow for myself” ~ Dennis Potter

Related commands

ADmodcmd - Active Directory Bulk Modify Tool.
Exchange Related AttributesMailbox RightsUser Account Settings Custom Attributes
How Terminal Services Works - docs.microsoft.com


 
Copyright © 1999-2024 SS64.com
Some rights reserved