WmicExe¶
- class getmac.getmac.WmicExe[source]¶
Bases:
MethodUse
wmic.exeon Windows to find the MAC address of a network interface.Microsoft Documentation: wmic
Warning
WMIC is deprecated as of Windows 10 21H1. This method may not work on Windows 11 and may stop working at some point on Windows 10 (unlikely, but possible).
Attributes Summary
The type of method, e.g. does it get the MAC of a interface.
Platforms supported by a method.
Methods Summary
get(arg)Core logic of the method that performs the lookup.
test()Low-impact test that the method is feasible, e.g. a command exists.
Attributes Documentation
-
method_type:
str= 'iface'¶ The type of method, e.g. does it get the MAC of a interface.
Allowed values:
ip
ip4
ip6
iface
default_iface
Methods Documentation
-
method_type: