Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Using PowerShell to get counters from sql instances

$
0
0

When I try to get sql performance counters from a server that has more than 1 instance of SQL I keep getting this error:

Cannot find any performance counter sets on the localhost computer that match the following: \MSSQL$DEV:Databases

Here is the code:

Get-Counter -ListSet SQLServer:Databases | Get-Counter

How can I change it to get the specific instance counter?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>