How to enable TFTP and Telnet in Windows 7 programmatically?

A powerful tool to get familiar with in Windows 7....dism (Deployment Image Servicing and Management Technical) allows command line control of services, I do it via a DOS script. This is a nice one to start with so you have some tools to use with your Cisco infrastructure.

dism /online /Enable-Feature /FeatureName:TelnetClient
dism /online /Enable-Feature /FeatureName:TFTP