Powershell Get-NetAdapterStatistics doesn't list my Ethernet adapters

I suspect I have an unimplemented NDIS OID, but I’m unable to tell which one(s).
Get-NetAdapter lists my adapters, but Get-NetAdapterStatistics does not.

FWIW, I implement the OID_GEN_STATISTICS OID.

What am I missing?

1 Like

Still curious about this. Anybody have more information?

I’ll summarize my findings because I’m a nice guy.

Get-NetAdapterStatistics calls OID_GEN_STATISTICS with a buffer length of zero. I’m used to validating the provided buffer length is sufficient for the data being returned, so I was bailing early. OID_GEN_STATISTICS expects to return a NDIS_STATISTICS_INFO.

1 Like