Looking for a way to grab the first character of a value and assign it to a value.
Can't seem to get the language right... here is what I have as an example:
$strFname = "Jason"
$strFnameInit = $strFname.left(1)
I want $strFnameInit to be assigned "J" here.
When I run the code I get the following error in PowerGUI:
Method invocation failed because [System.String] doesn't contain a method named 'left'.