Advertisement
Guest User

Untitled

a guest
Jul 17th, 2024
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. $macAddress = "XX-XX-XX-XX-XX-XX"
  2. $adapter = Get-NetAdapter | Where-Object -FilterScript {$_.MacAddress -eq $macAddress -and $_.Name -eq "Ethernet"}
  3.  
  4. if ($adapter) {
  5. foreach ($property in $adapter.PSObject.Properties) {
  6. Write-Output $property.Name
  7. }
  8. } else {
  9. Write-Output "No adapter found with the specified MAC address and name."
  10. }
  11.  
  12.  
  13. MacAddress
  14. Status
  15. LinkSpeed
  16. MediaType
  17. PhysicalMediaType
  18. AdminStatus
  19. MediaConnectionState
  20. DriverInformation
  21. DriverFileName
  22. NdisVersion
  23. ifOperStatus
  24. ifAlias
  25. InterfaceAlias
  26. ifIndex
  27. ifDesc
  28. ifName
  29. DriverVersion
  30. LinkLayerAddress
  31. Caption
  32. Description
  33. ElementName
  34. InstanceID
  35. CommunicationStatus
  36. DetailedStatus
  37. HealthState
  38. InstallDate
  39. Name
  40. OperatingStatus
  41. OperationalStatus
  42. PrimaryStatus
  43. StatusDescriptions
  44. AvailableRequestedStates
  45. EnabledDefault
  46. EnabledState
  47. OtherEnabledState
  48. RequestedState
  49. TimeOfLastStateChange
  50. TransitioningToState
  51. AdditionalAvailability
  52. Availability
  53. CreationClassName
  54. DeviceID
  55. ErrorCleared
  56. ErrorDescription
  57. IdentifyingDescriptions
  58. LastErrorCode
  59. MaxQuiesceTime
  60. OtherIdentifyingInfo
  61. PowerManagementCapabilities
  62. PowerManagementSupported
  63. PowerOnHours
  64. StatusInfo
  65. SystemCreationClassName
  66. SystemName
  67. TotalPowerOnHours
  68. MaxSpeed
  69. OtherPortType
  70. PortType
  71. RequestedSpeed
  72. Speed
  73. UsageRestriction
  74. ActiveMaximumTransmissionUnit
  75. AutoSense
  76. FullDuplex
  77. LinkTechnology
  78. NetworkAddresses
  79. OtherLinkTechnology
  80. OtherNetworkPortType
  81. PermanentAddress
  82. PortNumber
  83. SupportedMaximumTransmissionUnit
  84. AdminLocked
  85. ComponentID
  86. ConnectorPresent
  87. DeviceName
  88. DeviceWakeUpEnable
  89. DriverDate
  90. DriverDateData
  91. DriverDescription
  92. DriverMajorNdisVersion
  93. DriverMinorNdisVersion
  94. DriverName
  95. DriverProvider
  96. DriverVersionString
  97. EndPointInterface
  98. HardwareInterface
  99. Hidden
  100. HigherLayerInterfaceIndices
  101. IMFilter
  102. InterfaceAdminStatus
  103. InterfaceDescription
  104. InterfaceGuid
  105. InterfaceIndex
  106. InterfaceName
  107. InterfaceOperationalStatus
  108. InterfaceType
  109. iSCSIInterface
  110. LowerLayerInterfaceIndices
  111. MajorDriverVersion
  112. MediaConnectState
  113. MediaDuplexState
  114. MinorDriverVersion
  115. MtuSize
  116. NdisMedium
  117. NdisPhysicalMedium
  118. NetLuid
  119. NetLuidIndex
  120. NotUserRemovable
  121. OperationalStatusDownDefaultPortNotAuthenticated
  122. OperationalStatusDownInterfacePaused
  123. OperationalStatusDownLowPowerState
  124. OperationalStatusDownMediaDisconnected
  125. PnPDeviceID
  126. PromiscuousMode
  127. ReceiveLinkSpeed
  128. State
  129. TransmitLinkSpeed
  130. Virtual
  131. VlanID
  132. WdmInterface
  133. PSComputerName
  134. CimClass
  135. CimInstanceProperties
  136. CimSystemProperties
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement