non localized performance counter names

Welcome Forums General PowerShell Q&A non localized performance counter names

This topic contains 2 replies, has 3 voices, and was last updated by

 
Participant
3 months, 2 weeks ago.

  • Author
    Posts
  • #103831

    Participant
    Points: 0
    Rank: Member

    Hi everyone,

    is it possible to avoid using the localized names for performance counters with Get-Counter?
    I am using pester for some OVF checks but pester can't handle special characters (like an Umlaut) which are used in perf counter names on my German system.

    Thanks!

  • #103982

    Keymaster
    Points: 1,524
    Helping HandTeam Member
    Rank: Community Hero

    Unfortunately the OS, not PowerShell, decides what to call the performance counters.

  • #103994

    Participant
    Points: 37
    Helping Hand
    Rank: Member

    You may be able to insert them as unicode escape sequences if you look up the Unicode character codes.

    https://stackoverflow.com/questions/1056692/how-do-i-encode-unicode-character-codes-in-a-powershell-string-literal

The topic ‘non localized performance counter names’ is closed to new replies.