We study solutions to the Brauer embedding problem with restricted ramification. Suppose G and A are a abelian groups, E is a central extension of G by A, and f : Gal(Q/Q) → G a continuous homomorphism. We determine conditions on the discriminant of f that are equivalent to the existence of an unramified lift f , i.e. a continuous homomorphism making the following diagram commute:As a consequence of this result, we use conditions on the discriminant of K for K/Q abelian to classify and count unramified nonabelian extensions L/K normal over Q where the (nontrivial) commutator subgroup of Gal(L/Q) is contained in its center. This generalizes a result due to Lemmermeyer, which states that a quadratic field Q( √ d) has an unramified extension normal over Q with Galois group H8 the quaternion group if and only if the discriminant factors d = d1d2d3 as a product of three coprime discriminants, at most one of which is negative, satisfying the following condition on Legendre symbols:for {i, j, k} = {1, 2, 3} and pi any prime dividing di.