 Sarkotić was also commander of the Home Guard of the Kingdom of Croatia-Slavonia with headquarters in Zagreb.With the start of World War I, Sarkotić was one of the chief commanders of the Austrian-Hungarian forces on the Serbian campaign, commanding the 42nd Home Guard Infantry Division, which was part of the XII Corps.He handled his duties well despite overall setbacks on the part of the Austrian-Hungarians.