The Kaiser didn’t want war, he begged Cousin Nicky to stop the Russian mobilization, but both were powerless to stop what was coming. The generals on both sides called the shots.
That’s why I criticized Wilhelm II for being a weak-willed fool. The Army and Foreign Minister insisted on a war at that point, and the German government overall had decided on war at the first convenient time before then.