$some_var = 'foo'
$some_var.SubString(0,1)

From: [email protected] [mailto:[email protected]] On 
Behalf Of James Rankin
Sent: Friday, August 23, 2013 4:04 AM
To: [email protected]
Subject: [NTSysADM] PowerShell string manipulation

Anyone have any ideas how to grab the first character of a string (namely a 
username) in PowerShell?
Plenty of hits on removing the last characters from Google, but nothing useful
Cheers,



--
James Rankin
Technical Consultant (ACA, CCA, MCTS)
http://appsensebigot.blogspot.co.uk

Reply via email to