Forum Discussion
rmerritt
Dec 02, 2025Copper Contributor
Removing extranious data from a string @{Name=WEBHOST001-OI3w}
how would I convert @{Name=WEBHOST001-OI3w} to WEBHOST001-OI3w
Jonathan_Allen
Dec 08, 2025Brass Contributor
depends a bit on how you are getting the string that you want to split as has been mentioned elsewhere but you could most easily use ConvertFrom-StringData
$string = "Name=WEBHOST001-OI3w"
$converted = ConvertFrom-StringData $string
$NameValue = $converted['Name']
Write-Output $NameValue