Let \(\mathcal {B}(\mathcal {H})\) be the algebra of all bounded linear operators on an infinite-dimensional Hilbert space \(\mathcal {H}\) . A map \(\Delta \) , from \( \mathcal {B}(\mathcal {H}) \) into a closed subset of \( \mathbb {C}\ \) is said to be a \(\partial \) -spectrum if \(\partial \sigma (T) \subseteq \Delta (T) \subseteq \sigma (T)\) for all \(T \in \mathcal {B}(\mathcal {H})\) , where \(\sigma (T)\) denotes the spectrum of T and \(\partial \sigma (T)\) its boundary. Fix a \(\partial \) -spectrum map \(\Delta \) . In this paper, we characterize all maps \(\phi :\mathcal {B}(\mathcal {H}) \rightarrow \mathcal {B}(\mathcal {H})\) whose ranges contain all operators of rank at most two and that satisfy either \(\Delta (TS^*) = \Delta \big (\phi (T)\phi (S)^*\big )\) for all \(T,S \in \mathcal {B}(\mathcal {H})\) or \(\Delta (TS^*T) = \Delta \big (\phi (T)\phi (S)^*\phi (T)\big )\) for all \(T,S \in \mathcal {B}(\mathcal {H}).\)