Unsolved
1 Message
0
1256
Powershell Get-NetAdapter breaks when vLANs exist
As current versions of Windows 10 no longer have integrated vLAN configuration, we moved to install Intel ProSet to configure our vLANs. This works relatively well in the GUI, but we have issues using powershell to manage the interfaces. Once the vLANs are configured, Get-NetAdapter no longed work.
PS C:\WINDOWS\system32> Get-NetAdapter
Name InterfaceDescription ifIndex Status MacAddress LinkSpeed
---- -------------------- ------- ------ ---------- ---------
Ethernet Intel(R) 82579LM Gigabit Network Con... 14 Disconnected 3C-97-0E-A7-97-B1 0 bps
Wi-Fi Intel(R) Centrino(R) Advanced-N 6205 22 Up 6C-88-14-A0-21-D4 240 Mbps
VMware Network Adapte...8 VMware Virtual Ethernet Adapter for ... 18 Up 00-50-56-C0-00-08 100 Mbps
VMware Network Adapte...1 VMware Virtual Ethernet Adapter for ... 16 Up 00-50-56-C0-00-01 100 Mbps
Bluetooth Network Con...3 Bluetooth Device (Personal Area Ne...#3 10 Disconnected B8-76-3F-AE-34-17 3 Mbps
Local Area Connection PPPoP WAN Adapter 2 Disconnected 00-00-00-00-00-00 0 bps
PS C:\WINDOWS\system32> Import-Module -Name "C:\Program Files\Intel\Wired Networking\IntelNetCmdlets\IntelNetCmdlets" -Scope Local
PS C:\WINDOWS\system32> Add-IntelNetVLAN -ParentName "Intel(R) 82579LM Gigabit Network Connection" -VLANID 111
VLANID VLANName ParentName
------ -------- ----------
111 VLAN111 Intel(R) 82579LM Gigabit Network Connection
PS C:\WINDOWS\system32> Get-NetAdapter
Get-NetAdapter : The data is invalid.
At line:1 char:1
+ Get-NetAdapter
+ ~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (MSFT_NetAdapter:ROOT/StandardCimv2/MSFT_NetAdapter) [Get-NetAdapter], CimException
+ FullyQualifiedErrorId : Windows System Error 13,Get-NetAdapter
PS C:\WINDOWS\system32>
Once the vLAN is removed, functionality is restored
PS C:\WINDOWS\system32> Remove-IntelNetVLAN -ParentName "Intel(R) 82579LM Gigabit Network Connection" -VLANID 111
PS C:\WINDOWS\system32> Get-NetAdapter
Name InterfaceDescription ifIndex Status MacAddress LinkSpeed
---- -------------------- ------- ------ ---------- ---------
Ethernet Intel(R) 82579LM Gigabit Network Con... 14 Disconnected 3C-97-0E-A7-97-B1 0 bps
Wi-Fi Intel(R) Centrino(R) Advanced-N 6205 22 Up 6C-88-14-A0-21-D4 216 Mbps
VMware Network Adapte...8 VMware Virtual Ethernet Adapter for ... 18 Up 00-50-56-C0-00-08 100 Mbps
VMware Network Adapte...1 VMware Virtual Ethernet Adapter for ... 16 Up 00-50-56-C0-00-01 100 Mbps
Bluetooth Network Con...3 Bluetooth Device (Personal Area Ne...#3 10 Disconnected B8-76-3F-AE-34-17 3 Mbps
Local Area Connection PPPoP WAN Adapter
This is not related to the ProSet powershell modules, as this happens if if they are not loaded, and does not seem to be related to the vendors, as this happens in Dell and Lenovo machines alike.
It seems that is asked in Intel forums as well, but with no clear answer.
I am posting this in the Optiflex forum, although we see the same issue with precision desktops
See also:
- Powershell Get-NetAdapter breaks when vLANs exist (on Microsoft)
- Powershell Get-NetAdapter breaks when vLANs exist (on Intel)
Any ideas?
DELL-Cares
Moderator
Moderator
•
25.7K Posts
0
March 2nd, 2021 04:00
Hi,I see you’re looking for technical assistance. If you require our help, you could initiate a private/direct message with us, and we’d be glad to assist you.