Convert string value This topic contains 3 replies, has 4 voices, and was last updated by Daniel Krebs 2 years, 2 months ago. Author Posts April 26, 2015 at 8:10 pm #24719 Vinod KumarParticipant Hi, I have an string that needs to be converted to upper case using powershell through command line. Say something like this Powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile "string" toupper() Is it possible ? Regards, vinod April 27, 2015 at 1:21 am #24720 Sean QuinlanParticipant Looks like the parser for this forum doesn't like the syntax of the command. See here for the line – http://pastebin.ca/2983768 April 27, 2015 at 2:51 am #24721 Wilfredo PerezParticipant Try something like this ("String").ToUpper() from the powershell command line April 27, 2015 at 4:06 am #24722 Daniel KrebsModerator Below works for me from a command prompt: PowerShell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -Command "'String'.ToUpper()" If you need to use for PowerShell for something then it would probably make sense to convert your complete process to a PowerShell script instead of relying on just the output. Author Posts You must be logged in to reply to this topic.