In this paper, the notion of generalized derivations is characterized. Also, the action of these derivations on ideals is investigated and as a consequence, some results involving commutator identities are proved. Further, we explore the commutativity of prime additively inverse semirings in which generalized derivations satisfy certain differential identities. An extension to Posner’s second theorem is also established in the framework of generalized derivations.