PowerTip: Convert All Uppercase String to Lowercase

Doctor Scripto

Dr Scripto

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()

1 comment

Comments are closed. Login to edit/delete your existing comments

  • Avatar
    Daianne Pinheiro

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