Sha256: 6511b2862663d66bb1fe21bee7e355f8cba765fb97d88ade276420cab67f0e76

Contents?: true

Size: 389 Bytes

Versions: 24

Compression:

Stored size: 389 Bytes

Contents

$adapters = get-ciminstance win32_networkadapter -filter "macaddress is not null" 
$processed = @()
foreach ($adapter in $adapters) {
  $Processed += new-object PSObject -Property @{
    mac_address = $adapter.macaddress
    net_connection_id = $adapter.netconnectionid
    interface_index = $adapter.interfaceindex
    index = $adapter.index
  }
} 
convertto-json -inputobject $processed

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
vagrant-windows-1.7.0.pre.2 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.7.0.pre.1 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.6.0 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-plugin-dummy-0.0.7 windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.6.0.pre.1 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-plugin-dummy-0.0.6 windows/scripts/winrs_v3_get_adapters.ps1
vagrant-plugin-dummy-0.0.5 windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.5.1 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.5.0 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.4.0 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.3.2 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.3.1 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.3.0 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.3.0.pre.3 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.3.0.pre.2 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.3.0.pre.1 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.2.3 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-windows-1.2.2 lib/vagrant-windows/scripts/winrs_v3_get_adapters.ps1
vagrant-plugin-dummy-0.0.4 windows/scripts/winrs_v3_get_adapters.ps1
vagrant-plugin-dummy-0.0.3 windows/scripts/winrs_v3_get_adapters.ps1