Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $macAddress = "XX-XX-XX-XX-XX-XX"
- $adapter = Get-NetAdapter | Where-Object -FilterScript {$_.MacAddress -eq $macAddress -and $_.Name -eq "Ethernet"}
- if ($adapter) {
- foreach ($property in $adapter.PSObject.Properties) {
- Write-Output $property.Name
- }
- } else {
- Write-Output "No adapter found with the specified MAC address and name."
- }
- MacAddress
- Status
- LinkSpeed
- MediaType
- PhysicalMediaType
- AdminStatus
- MediaConnectionState
- DriverInformation
- DriverFileName
- NdisVersion
- ifOperStatus
- ifAlias
- InterfaceAlias
- ifIndex
- ifDesc
- ifName
- DriverVersion
- LinkLayerAddress
- Caption
- Description
- ElementName
- InstanceID
- CommunicationStatus
- DetailedStatus
- HealthState
- InstallDate
- Name
- OperatingStatus
- OperationalStatus
- PrimaryStatus
- StatusDescriptions
- AvailableRequestedStates
- EnabledDefault
- EnabledState
- OtherEnabledState
- RequestedState
- TimeOfLastStateChange
- TransitioningToState
- AdditionalAvailability
- Availability
- CreationClassName
- DeviceID
- ErrorCleared
- ErrorDescription
- IdentifyingDescriptions
- LastErrorCode
- MaxQuiesceTime
- OtherIdentifyingInfo
- PowerManagementCapabilities
- PowerManagementSupported
- PowerOnHours
- StatusInfo
- SystemCreationClassName
- SystemName
- TotalPowerOnHours
- MaxSpeed
- OtherPortType
- PortType
- RequestedSpeed
- Speed
- UsageRestriction
- ActiveMaximumTransmissionUnit
- AutoSense
- FullDuplex
- LinkTechnology
- NetworkAddresses
- OtherLinkTechnology
- OtherNetworkPortType
- PermanentAddress
- PortNumber
- SupportedMaximumTransmissionUnit
- AdminLocked
- ComponentID
- ConnectorPresent
- DeviceName
- DeviceWakeUpEnable
- DriverDate
- DriverDateData
- DriverDescription
- DriverMajorNdisVersion
- DriverMinorNdisVersion
- DriverName
- DriverProvider
- DriverVersionString
- EndPointInterface
- HardwareInterface
- Hidden
- HigherLayerInterfaceIndices
- IMFilter
- InterfaceAdminStatus
- InterfaceDescription
- InterfaceGuid
- InterfaceIndex
- InterfaceName
- InterfaceOperationalStatus
- InterfaceType
- iSCSIInterface
- LowerLayerInterfaceIndices
- MajorDriverVersion
- MediaConnectState
- MediaDuplexState
- MinorDriverVersion
- MtuSize
- NdisMedium
- NdisPhysicalMedium
- NetLuid
- NetLuidIndex
- NotUserRemovable
- OperationalStatusDownDefaultPortNotAuthenticated
- OperationalStatusDownInterfacePaused
- OperationalStatusDownLowPowerState
- OperationalStatusDownMediaDisconnected
- PnPDeviceID
- PromiscuousMode
- ReceiveLinkSpeed
- State
- TransmitLinkSpeed
- Virtual
- VlanID
- WdmInterface
- PSComputerName
- CimClass
- CimInstanceProperties
- CimSystemProperties
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement