toUpperCase

Converts all of the characters in the given variable to upper case using the rules of the default locale.

Syntax:

$[ScriptVariable]::toUpperCase()

Parameters:

None

Example:

The following example illustrates the syntax for the toUpperCase() string method:

$str = "bbb"

$str::toUpperCase()

print($str)

Output:

BBB