ahFeel
public ruby v1 · immutable # Grabbing available interfaces host = Socket.gethostname cs = "winmgmts://#{host}/root/cimv2" begin wmi = WIN32OLE.connect(cs) rescue WIN32OLERuntimeError => e raise "Unsupported Windows Version." else p wmi.InstancesOf("Win32_NetworkAdapter").methods.sort end