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
Vern_Anderson
Dec 02, 2025Copper Contributor
If I had more information I might be able to help.
Is that string the output of another command or object?
Is that string coming from Restful API queries?
The reason I ask is a lot of times you see that output surrounded by the at symbol and curly braces when a property value contains another "child object". In those cases when you find out the Properties name you can simply pipe it to. . .
Select-Object -ExpandProperty <insert property name>
Tell us how to get this output ourselves so we can reproduce it and help you extract the string you were hoping to get.