0

I'm attempting to use ManagementScope (as part of system.Management) to check the wireless strength of wireless adapters in Ubuntu as suggested here:

http://stackoverflow.com/questions/18758097/ddg#18763061

I'm finding that when I try to initialize ManagementScope, all I'm getting is not implemented exceptions.

> new ManagementScope("\\\\ubuntu\\root\\cimv2")

{System.Management.ManagementScope}
System.NotImplementedException: The method or operation is not implemented.
System.NotImplementedException: The method or operation is not implemented.
System.NotImplementedException: The method or operation is not implemented.

Is it possible these methods really haven't been implemented or am I missing something else here?

Jesse Roper
  • 1,269
  • 7
  • 31
  • 56
  • 2
    System.Management makes calls out to a variety of Microsoft specific native technologies, like WMI. I'd be shocked if there were parallel implementations on Ubuntu & if there were (like user management) it'd be really different - see https://stackoverflow.com/questions/921617/is-there-something-like-wmi-for-linux – MatthewMartin Jun 26 '17 at 18:57
  • 1
    You have to use linux-specific tools for that, like `iwconfig`. – Evk Jun 26 '17 at 19:37
  • Thanks - going the route outlined here seems like the right approach: https://stackoverflow.com/questions/24910842/running-a-linux-console-command-in-c-sharp – Jesse Roper Jun 26 '17 at 19:43

0 Answers0