Convert Camel Case to space delimited Display Name with PowerShell
I’m writing a very rudimentary script that has a need to convert something like “groundFloorMeetingRoom” to “Ground Floor Meeting Room”. Rather than prompt the user to enter this, I decided it’d be easier to just get the script to do it. This turned out to be a fun little exercise, resulting in the *CamelCaseToDisplayName *function below. Hopefully it can help someone!
It’s pretty simple to run, just throw something like this in your script:
$newName = CamelCaseToDisplayName "groundFloorMeetingRoom"