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-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/bundler/gems/vagrant-1e28f1ac31e7/plugins/guests/windows/scripts/winrs_v3_get_adapters.ps1