Commandline install Terminal Services


How do i install Terminal Services by commandline?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Have you tried this:

mikeydkAuthor Commented:
Again - looking for a commandline utility / command.

Lee W, MVPTechnology and Business Process AdvisorCommented:
I don't believe you can.  Is there a reason you need to?  (Command line role installation is, I believe, first available in 2008).
mikeydkAuthor Commented:
Install Terminal Services on Windows 2003

By default Windows 2003 Terminal Services is intially installed in Remote Administration Mode as opposed to Application Mode. Below are possible sections/values for the answer file:


--ON will install Terminal Services in Application Mode
--OFF will revert it back to Remote Administration Mode.


--A setting of 1 will allow connections while 0 will not.

LicensingMode = PerDevice | PerSession

--PerDevice configures TS to require a TS Cal for each
--computer connection.

--PerSession configures TS to require a TS Cal for each
--active client session.


--A setting of 1 configures TS to be installed in a compatibility mode with NT4/2000 while a setting of 0 configures more restrictive Windows 2003 compatible permissions.

Here's an example of an answer file that will install TS in application mode, configure per device licensing with Windows 2003 compatibility settings.


You could save the contents of this to a text file named TSAppMode.txt and run it with the Sysocmgr command line, or the contents of this file could be used in a unattended.txt file for unattended OS installations.

Sysocmgr.exe /i:sysoc.inf /u:\TSAppMode.txt /r /q

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.