A surgical fastener apparatus having a handle, an elongated shaft having a proximal end attached to the handle and a distal end extending therefrom. An end effector including a pair of jaws pivoted at a proximal end thereof and movable between an open and closed position. A cartridge containing a plurality of surgical fasteners, the cartridge attached to the end effector. An electrically powered actuator for deploying the surgical fasteners, the actuator having a power source and a motor. A first trigger attached to the handle for moving the end effector from the open to the closed position, and a second trigger attached to the handle for activating the actuator. A first lockout mechanism for preventing current from flowing from the power source to the motor unless the end effector is in its closed position a second lockout mechanism having a locked and unlocked position, the second lockout mechanism for preventing movement of the second trigger until the second lockout mechanism is moved to the unlocked position.L'invention porte sur un appareil d'attaches chirurgicales qui comprend un manche, une tige allongée ayant une extrémité proximale fixée au manche et une extrémité distale s'étendant à partir de celui-ci ; un effecteur terminal comportant une paire de mâchoires pivotantes au niveau d'une extrémité proximale de celui-ci et pouvant être déplacé entre une position ouverte et une position fermée, et une cartouche contenant une pluralité d'attaches chirurgicales, la cartouche étant fixée à l'effecteur terminal ; un actionneur alimenté électriquement pour le déploiement des attaches chirurgicales ; un mécanisme d'inversion activé électriquement pour déplacer l'élément allongé d'une position la plus distale dans l'effecteur terminal à une position proximale, le mécanisme d'inversion activé électriquement déplaçant l'élément allongé de manière proximale après que l'élément allongé a été déplacé vers la position la plus distale par déplacement de la gâchette vers la