Quick note, the preceding assumes that the original pathString variable only contains the curly brace enclosed path. I tested as follows:
Code:
$pathString='{\\DAMIEN\UserDocs\Black\}'
$pathString = $pathString -replace '\{(.+)\}','$1'
echo $pathString
There are ways to manipulate the regular expression if there is something else contained in front of that first left curly brace that would need to be matched, but tossed away. Right now it's only the left curly brace that's being matched and tossed, as is the right one, for that matter.