 He subsequently served as commissary general under General Arthur St. Clair, though he preferred to serve in the field with his regiment.His unit, being well-disciplined, did not participate in the mutiny of the Pennsylvania Line in January 1781.The Pennsylvania troops were reorganized and Ziegler was present at the surrender of Cornwallis at Yorktown in October 1781.