If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.
In most cases this works, unless the "proper" name has two capitals in a row. For example, HRSecretary becomes H R Secretary, rather then the intended HR Secretary. I need to place a space between capitalized letters ONLY if the next character is lower-case.
$GroupNameProper = $GroupName -creplace "(\B[A-Z])", ' $1'