Sunday , August 18 2019
Home - Development - Powershell Get-Counters in a usable form from CookedValue

Powershell Get-Counters in a usable form from CookedValue

Sometime ago now I was given the challenge to get the value out of a get-counter in a Powershell, I thought the answer snippet should be posted for future reference.

The following Powershell command gives a value buried with result information.

The result is given:

To get the true value to be used in other powershell code we need to find the cooked value.

The following line returns just the value:

Which just returns the value only: 66.8695878637932

I hope this will be useful to others?

 

Check Also

How to use DNS Pin Point instead Split Horizon – the easy way!

Background on the DNS issue faced There are times when DNS split horizon is required …

2 comments

  1. Very usefull !
    Great Thanks ! 🙂

    Jean

  2. I thank you. My remaining hair thanks you, too.

Leave a Reply

Your email address will not be published. Required fields are marked *