tag:blogger.com,1999:blog-7850846940198540592.post8378544386605313327..comments2023-05-26T09:43:02.168+02:00Comments on Tonči Grgin: Windows PerfCounters and Powershell - Fetching the valuesTončihttp://www.blogger.com/profile/10650361408804728027noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-7850846940198540592.post-72917146736824576002018-02-25T14:21:48.132+01:002018-02-25T14:21:48.132+01:00greatgreatfor ict 99https://www.blogger.com/profile/01234222908168002434noreply@blogger.comtag:blogger.com,1999:blog-7850846940198540592.post-48325979810928329692016-05-17T19:00:32.404+02:002016-05-17T19:00:32.404+02:00Thanks. The mystery to solve is what C# code is hi...Thanks. The mystery to solve is what C# code is hidden behind getting PathsWithInstances returned. Do anyone know?Qyglehttps://www.blogger.com/profile/12186196954430423236noreply@blogger.comtag:blogger.com,1999:blog-7850846940198540592.post-71962231884394145702016-05-17T13:56:56.014+02:002016-05-17T13:56:56.014+02:00Thanks. How can I get PathsWithInstances returned ...Thanks. How can I get PathsWithInstances returned with use of C#?Qyglehttps://www.blogger.com/profile/12186196954430423236noreply@blogger.comtag:blogger.com,1999:blog-7850846940198540592.post-23487970047067758442016-05-10T10:37:28.504+02:002016-05-10T10:37:28.504+02:00Get-Counter is showing PathsWithInstances and not ...Get-Counter is showing PathsWithInstances and not just Paths. Please see https://technet.microsoft.com/en-us/library/hh849685.aspx for details.Tončihttps://www.blogger.com/profile/10650361408804728027noreply@blogger.comtag:blogger.com,1999:blog-7850846940198540592.post-8386022191073872452016-05-10T07:34:21.065+02:002016-05-10T07:34:21.065+02:00Can anyone explain why I get more PerformanceCount...Can anyone explain why I get more PerformanceCounter instances returned when I use the PowerShell Get-Counter than when I use the C# function?<br /><br />PS C:\> (New-Object System.Diagnostics.PerformanceCounterCategory("SMB Client Shares")).GetInstanceNames()<br />*<br />_Total<br />PS C:\><br />PS C:\><br />PS C:\> Get-Counter -ListSet "SMB Client shares"<br /><br />CounterSetName : SMB Client Shares<br />MachineName : .<br />CounterSetType : MultiInstance<br />Description : This counter set displays information about server shares that are being accessed by the client us<br /> ing SMB protocol version 2 or higher.<br />Paths : {\SMB Client Shares(*)\Credit Stalls/sec, \SMB Client Shares(*)\Metadata Requests/sec, \SMB Client<br /> Shares(*)\Avg. Data Queue Length, \SMB Client Shares(*)\Avg. Write Queue Length...}<br />PathsWithInstances : {\SMB Client Shares(\cl-sofs-smb\VMs3)\Credit Stalls/sec, \SMB Client Shares(\localhost<br /> \IPC$)\Credit Stalls/sec, \SMB Client Shares(\cl-sofs-smb\VMs2)\Credit Stalls/sec, \SMB<br /> Client Shares(\cl-sofs-smb\VMs1)\Credit Stalls/sec...}<br />Counter : {\SMB Client Shares(*)\Credit Stalls/sec, \SMB Client Shares(*)\Metadata Requests/sec, \SMB Client<br /> Shares(*)\Avg. Data Queue Length, \SMB Client Shares(*)\Avg. Write Queue Length...}<br /><br />PS C:\>Anonymousnoreply@blogger.com