GetNetMACID
- Last UpdatedOct 29, 2026
- 1 minute read
Gets the MAC ID unique code from the currently installed network adapter(s).
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
GetNetMACID |
System Info |
Synchronous |
Yes |
Supported |
Supported |
Not supported |
Supported |
Not supported |
Syntax
GetNetMACID( "optTagMACID", "optTagAdapterName" )
optStrMACID
Name of a string tag, which receives the MAD ID of the network adapter. If there is more than one network adapter currently installed in the station, the user can configure a string array tag in this parameter, so each array position receives the MAC ID from one network adapter.
optStrAdapterName
Name of a string tag, which receives the name of the network adapter. If there is more than one network adapter currently installed in the station, the user can configure a string array tag in this parameter, so each array position receives the name from one network adapter. This parameter is optional.
Returned value
|
Value |
Description |
|---|---|
|
>0 |
Number of network adapters found. |
|
0 |
No network adapters found. |
|
-1 |
Invalid number of parameters. |
|
-2 |
One of the parameters is not string type. |
|
-3 |
Tag configured in optTagMACID does not exist. |
|
-4 |
Tag configured in optTagAdapterName does not exist. |
Examples
|
Tag Name |
Expression |
|---|---|
|
NumNIC |
GetNetMACID("MACIDTag") |
|
NumNIC |
GetNetMACID("MACIDTag", "AdapterName") |
|
NumNIC |
GetNetMACID("MACIDTag[1]", "AdapterName[1]") |