Thursday , December 12 2024
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

The pain of TLS 1.2 with PowerShell module for Azure Active Directory (MSOnline)

Building labs in a hurry sometimes can bite you with recent changes in Office 365 …

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 *