Done this one a few times. Clients with old PC’s and a Terminal Server. Its a simple Batch Script, an RDP file and a quick REGEDIT and your old PC boots straight into a Terminal Server Login Screen!

I’ve attached the files that I have used in the Past. It is a reasonably simple setup.

Step 1. Edit the Running Batch File (TSC.bat). You will see it has an PING IP Address in it. Change the IP Address to your Terminal Server IP. This is simply telling the Batch File to wait until it can Ping the Server. One of the biggest problems I have come across in the past is that the machine boots before the network becomes active. Without the PING test, the connection attempt starts throwing ugly error about being Unable to Connect or Server not Available etc. With this in place the program will continue pinging until the server responds. Once it gets a response it will make the connection.

Step 2. Convert the Running Batch File to an EXE. This allows you to make the program invisible (select Hidden). Yep, that’s what we all want. No ugly Command Prompt Window sitting there that a user can accidentally close and ruin it all!!! I have used iexpress successfully to do this in the past (Located in C:\Windows\System32). A 64bit Windows machine will create a 64bit EXE. A 32bit Windows PC will create a 32bit EXE. You may need to create both types as the 32bit will not work on 64bit and vice versa. So hopefully you have some machines lying around!!

Step 3. Edit the RDP. I like to right click and do Open With… Notepad. Browse down the List. There is an Entry for TerminalServer. Just change this to the name of your Terminal Server or IP Address.

Step 4. Edit the Install Bat or perform its contents manually. In the BAT file revise the location and name of the EXE and the username and password.

The install changes some registry settings that do the following…
Replace Explore.exe as the Shell with C:\TSC.exe

Allows you to enter a local username and password. (This has to be a local account on that machine)
Sets the Default Domain to the Computername (This cannot be a Domain Joined PC)
Sets AutoAdminLogin to log directly into the machine on Start Up.(This is why not Domain Joined!)

The Batch File also creates an uninstall file that reverses the registry entries and deletes the files.

Drop the following files on to the root of the C:\ drive and go for broke!!
Install Batch File – Install.bat
Running Batch File – TSC-bat
Customized RDP File – TSC.rdp

Leave a Reply

Your email address will not be published. Required fields are marked *