• Custom Counter

    How to return multiple values using a custom counter without writing multiple queries? For example, lets say we have a custom query "select name from sys.sysdatabases" . I need all database names and not only the top DB "master"

  • Looking to find a count of critical event logs on a windows server via custom counters

    Here's an example of my working wmi query:

    @(gwmi -query "select * from win32_ntlogevent where eventtype=1 and timegenerated > '12/1/2017'").count

     

    It appears that I can only use the query section, but that doesn't appear to have…