Pilsheim is administratively part of the municipality of Schmidmühlen in the German State of Bayern (Bavaria).