Install Telnet client on Server 2012 via PowerShell

20160614150939Every time I try to open the Telnet client on a new server I get a response stating that telnet is not recognized as an internal or external command, operable program or batch file. Meaning it isn’t installed, because the Telnet client is not installed by default. Installing it via the GUI is a hassle so instead we can do it via PowerShell.

To install the Telnet client on Server 2012 via PowerShell perform the following steps:

1. Open Powershell.
2. Run the command install-windowsfeature “telnet-client” per the below:

20160229140658

And that’s it, no need to even reboot :)

The Telnet client is now ready and waiting for some command line action.

Install Telnet client on Server 2008 & Server 2008 R2

On a fresh build of Server 2008, Server 2008 R2 and Windows 7, the telnet client is not installed so running a normal telnet command will yield the following response:

'telnet' is not recognized as an internal or external command, operable program or batch file

The quickest and easiest way to install the telnet client is to run the following command :

pkgmgr /iu:"TelnetClient"

It installs the client silently in the background and only takes a few seconds after which you can telnet to your heart’s content:

The install can be done via the GUI also by performing the steps listed here.