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"
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"
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…