Government Security
Network Security Resources

Jump to content

Photo

Enable Terminal services W2K ( command line )

- - - - - windows server
  • Please log in to reply
38 replies to this topic

#1 Nikscap

Nikscap

    Private

  • Members
  • 19 posts

Posted 13 May 2003 - 03:51 PM

Hi !

How to enable terminal services W2K via DOS command ???

For automatic starting i've put the start key to 2

But after i can't lunch the service like this : NET START "Terminal Services"

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService]
"Start"=dword:00000002

To all over W2KSRV the services "Terminal server" are " ON " but they are not ACTIVED.

For activate this you must select in Add / Remove programs --> Add/Remove Windows Components --> Terminal Services --> Details --> ( Check only ) Enable Terminal Services and Reboot.

That's all , I want do it by Command Line ! ( sorry for my english ... )

#2 DarkAgony

DarkAgony

    Private

  • Members
  • 1 posts

Posted 13 May 2003 - 04:13 PM

Maybe you should try with Sysocmgr.exe :

http://support.micro...b;en-us;Q222444

#3 Nikscap

Nikscap

    Private

  • Members
  • 19 posts

Posted 13 May 2003 - 04:20 PM

I think it's very good idea , and it's The solution !

I test It , and if it's Ok , i post the complete command to do this.

Thanks DarkAgony

#4 Nikscap

Nikscap

    Private

  • Members
  • 19 posts

Posted 14 May 2003 - 04:11 AM

I have the solution ! but i write little script to do that ( and other ... )

Ex : Terminal services Enable + Telnet Enable ( Disable Event Connection, no default port, Reactive Guest, etc ... )

Very Soon !!!

But if you want test .

Do that by echo command to batch file and lunch IT !!!



# [1] - " AUTO START SERVICES"

echo Windows Registry Editor Version 5.00> c:\TS.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService]>> c:\TS.reg
echo "Start"=dword:00000002>> c:\TS.reg

REGEDIT /S C:\TS.REG

# [2] - " ENABLE TS SERVICES "

echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer]>>C:\TS.REG
echo "EnableAdminTSRemote"=dword:00000001>>C:\TS.REG
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>>C:\TS.REG
echo "TSEnabled"=dword:00000001>>C:\TS.REG
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD]>>C:\TS.REG
echo "Start"=dword:00000002>>C:\TS.REG
echo [Components] > c:\bootlog~.txt
echo TSEnabled = on >> c:\bootlog~.txt
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\bootlog~.txt /q

# [3] - " DEL TMP FILES "

DEL /Q c:\TS.REG
DEL /Q c:\bootlog~.txt

# Ps: Add " /r " at the end of line if you to disable reboot ( work fine only after reboot )




EXEMPLE BATCH FILE NAMED : TS.BAT


<------------------------------------- START ----------------------------------->

echo Windows Registry Editor Version 5.00> c:\TS.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService]>> c:\TS.reg
echo "Start"=dword:00000002>> c:\TS.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer]>>C:\TS.REG
echo "EnableAdminTSRemote"=dword:00000001>>C:\TS.REG
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>>C:\TS.REG
echo "TSEnabled"=dword:00000001>>C:\TS.REG
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD]>>C:\TS.REG
echo "Start"=dword:00000002>>C:\TS.REG
REGEDIT /S C:\TS.REG
echo [Components] > c:\bootlog~.txt
echo TSEnabled = on >> c:\bootlog~.txt
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\bootlog~.txt /q
DEL /Q c:\TS.REG
DEL /Q c:\bootlog~.txt
EXIT

<------------------------------------- END ----------------------------------->


You can compile this batch to Program, for exemle like this tool :

BAT2EXE ( 6.1 Kb )

ex: bat2exe <name of batch file>

Thats'all ! ( Thx to DarkAgony ) B)

#5 Blake

Blake

    Former Commander In Chief

  • Retired Admin
  • 7,334 posts

Posted 14 May 2003 - 04:57 AM

Great work both of you, sorry Nikscap that I didn't get back to answer this post on Astalavista.net

#6 =k3Rn=

=k3Rn=

    Corporal

  • Members
  • 158 posts

Posted 27 September 2003 - 10:16 PM

can i ask what this service does - and what for you use it ?

#7 extreme

extreme

    Specialist

  • Sergeant Major
  • 615 posts

Posted 28 September 2003 - 03:46 PM

But what if WIn was installed from CD? Then how will you install the service with this batch file?
САМО СЛОГА СРБИНА СПАСАВА

#8 krackatoa

krackatoa

    Corporal

  • Members
  • 194 posts

Posted 29 September 2003 - 07:01 PM

You will have to upload the needed files if the server was installed via cd.

Copy the files that begin with TSCxxxx.xx_ from the I386 directory of the win2k cd and place them in winnt\inf\i386.

They total just under 5MB.

Then run the commands specified in this post, reboot and Wala!


It's even easier for Win2k3, change one registry setting and boom! No additional files or reboot needed. The key is..

---snip------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server]
"fDenyTSConnections"=dword:00000000
"TSEnabled"=dword:00000001

---snip-------

oh yeah, this also enables TS in XP.

#9 MaNiAx

MaNiAx

    Private First Class

  • Members
  • 45 posts

Posted 06 October 2003 - 07:42 AM

damn that was straight ripped from coromcomputers

#10 extreme

extreme

    Specialist

  • Sergeant Major
  • 615 posts

Posted 06 October 2003 - 04:36 PM

You mean, there is no need to install or upload any additional files on XP too??? Will the victim notice that Terminal services have been activated and in that case, how will he notice?
САМО СЛОГА СРБИНА СПАСАВА

#11 Guest_soupy_*

Guest_soupy_*
  • Guests

Posted 07 October 2003 - 01:36 AM

Will the victim notice that Terminal services have been activated and in that case, how will he notice?

he will notice that Terminal services have been activated by looking at his services properties.

#12 extreme

extreme

    Specialist

  • Sergeant Major
  • 615 posts

Posted 21 January 2004 - 03:08 PM

WHy is reboot neccessary?? Can't we just start TS.exe manually???
САМО СЛОГА СРБИНА СПАСАВА

#13 Guest_MrRobot_*

Guest_MrRobot_*
  • Guests

Posted 22 January 2004 - 06:42 AM

I know this isnt the thread for it, but lack of permission to create a new thread.

Sorta kinda on a long strech is related.


But where are the vpn settings,I run a vpn connection on this pc(xphome) and would like to see where my vpn settings are at. ;)

#14 Neo2k

Neo2k

    Private First Class

  • Members
  • 33 posts

Posted 22 January 2004 - 12:43 PM

can i ask what this service does - and what for you use it ?

It's a remote administration tools like a VPN but on another desktop of the admin, even if you're connect on his account.

(sorry for my english)

#15 320X

320X

    Staff Sergeant

  • Members
  • 474 posts

Posted 24 January 2004 - 11:43 AM

thnx Nikscap for youre great post ;)





Also tagged with one or more of these keywords: windows, server