$myString = "STRing WIth Mixed CaSe" # Instantiate required object $textInfo = (Get-Culture).TextInfo # Convert String $textInfo.ToTitleCase($myString) # Output String With Mixed Case
$myString = "STRing WIth Mixed CaSe" # Instantiate required object $textInfo = (Get-Culture).TextInfo # Convert String $textInfo.ToTitleCase($myString) # Output String With Mixed Case