PreCommand is valid for a device template, but the PreCommand feature may be leveraged for terminal servers rather easily if it is user-definable per-device.