Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

PowerTip: Select First Two Letters of String

$
0
0

Summary: Learn how to use Windows PowerShell select the first two letters from a string.

Hey, Scripting Guy! Question How can I use Windows PowerShell to remove the first two letters from a string?

Hey, Scripting Guy! Answer Use the SubString method, for example:

$a = “String”

$a.substring(2) 


Viewing all articles
Browse latest Browse all 34890

Trending Articles



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