June 29th, 2015

PowerTip: Convert All Uppercase String to Lowercase

Doctor Scripto
Scripter

SummaryUse Windows PowerShell to convert a string to all lowercase characters.

Hey, Scripting Guy! Question How can I use Windows PowerShell to convert a string that is in all uppercase to all lowercase characters?

Hey, Scripting Guy! Answer Use the ToLower method from the String class:

"STRING".ToLower()

Category
Scripting

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

1 comment

Discussion is closed. Login to edit/delete existing comments.

  • Daianne Pinheiro

    I can change the name of my domain (O365) that was recorded with uppercase letters, by letters lowercase via PowerShell?