Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Convert PScustomObject to String

$
0
0

Hi,

I'm trying to convert  a custom object to a string so I can retrieve some of the properties.

However I cannot seem to find anything on the internet to solve this issue.

This is the line that I am having trouble with:

@{Name="CPU";Expression = { ($_.ServerBlade.CPU.Tostring(Value))}},

Here is the entire script:

(Please visit the site to view this media) 

Thanks


Viewing all articles
Browse latest Browse all 6937

Trending Articles