Z2-47 is an Institute Courser, designed for high-risk assault and retrieval operations above ground. During 2287, he is tasked with retrieving a Gen 3 synth; designation K1-98. K1 however was captured by a group of Gunners and taken to their base at Greenetech Genetics, but this did not stop the ruthless Courser as he charged into the facility; killing a large number of Gunners in his way until he reached the synth - but before he can get her, he meets his final foe; the Sole Survivor.
If one opens the security door before engaging Z2-47, he will thank the player character and ask for a moment before using the recall code. From here he engages the player character in dialogue beginning with, "Are you here for the synth?" exactly the same as if K1-98 had not been freed prior to engagement.
Prior to the quest, one can get the reset codes from one of Mama Murphy's visions. Using the code during the conversation before the combat starts will result in deactivation and there will be no need for any combat.