Von Pechmann, Polizeipräsident von München