In Fallout 4 you tell - Preston to STAY - and the [censored] will just stand there gormless, and not attack any enemy's even when they attack him???
At least if they held position but still attack enemy's they could be tactically useful... But as they are companions are a bit crap too be honest... Apart from the dog!