Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Remove all but first charactor from a string

$
0
0

I can't seem to find an solution.  Please help.  I want to create a function thats wrapped around the new-mailbox cmdlet.  I want to take the first name and last name.  Then take only the first character add it to the last name to create the alias.  How can I pick out the first character in a string?  Thanks.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>