Inactivation of gene products by dominant-negative (DN) mutants is a powerful tool to assign functions to proteins. Here, we present a two-step procedure to establish a random screen for DN alleles, using the essential murine cytomegalovirus gene M50 as an example. First, loss-of-function mutants from a linker-scanning library were tested for inhibition of virus reconstitution with the help of FLP-mediated ectopic insertion of the mutants into the viral genome. Second, DN candidates were confirmed by conditional expression of the inhibitory proteins in the virus context. This allowed the quantification of the inhibitory effect, the identification of the morphogenesis block, and the construction of DN mutants with improved activity. Based on these observations a DN mutant of the homologous gene (UL50) in human cytomegalovirus was predicted and constructed. Our data suggest that a proline-rich sequence motif in the variable region of M50/UL50 represents a new functional site which is essential for nuclear egress of cytomegalovirus capsids.