Referencing a PSObject property with special characters is pretty easy:
$var = $psobject."Property With Space"
In order to reference properties that include special characters dynamically:
$propertyname = "Property With Space" $var = $psobject.($propertyname)
An information technology professional with twenty five years experience in systems administration, computer programming, requirements gathering, customer service, and technical support.
0 Comments