SyntaxFix
Write A Post
Hire A Developer
Questions
$pos = $name.IndexOf(";") $leftPart = $name.Substring(0, $pos) $rightPart = $name.Substring($pos+1)
Internally, PowerShell uses the String class.