I'm new to PowerShell scripting, and I'm trying to convert data in a CSV file to proper case for users' first name and last name. I don't want to create new variable lines each time I want to do this, so I was wondering how to modify this line to automatically change the case to proper case when it is called later in the script.
Here is the variable I want to modify to output the result in proper case:
$displayName=$sn + ", " + $givenName
Some of the names in the CSV file are in all upper case for the columns "sn" and "givenName". I'd like to convert them to proper case, so that when later in the script the results are placed into my create user functions, it will appear as normal.
Hoping it's a simple solution without having to write additional variables and call them something else. Thanks in advance!