In this note we characterize a complex Banach algebra A admitting a generalized derivation g such that the cardinality of the spectrum sigma (g(x)) is exactly one for all x is an element of A.