For operation of the three undulator systems of the European XFEL, a total of 91 undulators are needed and have been produced. For production, magneticmeasurements, tuning and commissioning of these devices only two years were foreseen by the project schedule. For these purposes, automated and optimizedprocedures were needed to accomplish a number of workflows, time-consuming adjustments and commissioning tasks. We created several automationprograms which allowed us to reduce the time spent on the commissioning of the control system by an order of magnitude.