HI ,
I am trying to get thread count using below command
(Get-Process sqlservr |Select-Object -ExpandProperty Threads ).Count
its returning out all sql servers count where i have 2 instances running on machine how do i monitor only instance please do u have any solution i was trying this but its not working .
(Get-Process sqlservr |Select-Object -ExpandProperty Threads| where id -eq 12068).Count
Thanks in advance !!