Skip to main content

Posts

Showing posts from June, 2012

CLI Mac OS X Version

A simple "1-liner" that I use quite a bit to get the OS version, makes it easy to create a single script that can be deployed universally. /usr/bin/sw_vers | /usr/bin/grep 'ProductVersion:' | /usr/bin/grep -o '[0-9]*\.[0-9]*\.[0-9]*' | /usr/bin/cut -c 1-4

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