Sha256: bb02cc4795b60b5f3336fea6734db4b1088c736fbcd5f1347940b562ef31183b

Contents?: true

Size: 398 Bytes

Versions: 64

Compression:

Stored size: 398 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

64 entries across 57 versions & 8 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.3.3.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.3.2.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.19.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.18.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.16.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.14.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.10.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.9.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.8.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.7.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.6.2 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.6.1 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.6.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.5.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.4.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.3.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-unbundled-2.2.2.0 plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1