Get-SCMACAddress

Get-SCMACAddress

Gets allocated MAC addresses.

構文

Parameter Set: All
Get-SCMACAddress [-All] [-Assigned] [-UnAssigned] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: ByAllocatedToObjectID
Get-SCMACAddress -GrantToObjectID <Guid> [-Assigned] [-UnAssigned] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: ByID
Get-SCMACAddress -ID <Guid> [-Assigned] [-UnAssigned] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: ByMACAddress
Get-SCMACAddress -MACAddress <String> [-Assigned] [-UnAssigned] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: ByPool
Get-SCMACAddress -MACAddressPool <MACAddressPool> [-Assigned] [-UnAssigned] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

詳細説明

The Get-SCMACAddress cmdlet gets allocated MAC addresses.

パラメーター

-All

Indicates that this cmdlet retrieves a full list of all subordinate objects independent of the parent object. For example, the command Get-SCVirtualDiskDrive -All retrieves all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Assigned

Indicates that this cmdlet retrieves IP addresses or MAC addresses that have been allocated from an address pool and assigned to a resource.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-GrantToObjectID<Guid>

Specifies the ID of an object to which an allocated IP address or MAC address will be assigned.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ID<Guid>

Specifies the numerical identifier as a globally unique identifier (GUID) for a specific object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-MACAddress<String>

Specifies the Media Access Control (MAC) address, or a set of MAC addresses, for a physical or virtual network adapter on a computer. Valid values are: one or more MAC addresses.

Example format for a single MAC address:

-MACAddress "00-15-5D-B4-DC-00"

Example format for a set of MAC addresses:

-MACAddress "00-15-5D-B4-DC-00", "00-1A-A0-E3-75-29"

Example format for a set of MAC addresses:

$Macs = "00-15-5D-B4-DC-00", "00-1A-A0-E3-75-29"

Set-SCPXEServer -MACAddress $Macs

NOTE: When used with New-SCPXEServer or Set-SCPXEServer, the MACAddress parameter updates the PXE interfaces from which the SCDM PXE Server listens for and responds to PXE requests.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-MACAddressPool<MACAddressPool>

Specifies a MAC address pool.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-UnAssigned

Indicates that this cmdlet retrieves IP addresses or MAC addresses that have been allocated from an address pool but not assigned to a resource.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • CloudPairing[]

Example 1: Get the allocated MAC addresses for a specific MAC address pool

The first command gets the host group object at the path All Hosts\HostGroup02\Production, and then stores the object in the $HostGroup variable.

The second command disables inheritance of network settings for the host group stored in $HostGroup. This action returns only the MAC address pools associated with All Hosts\HostGroup02\Production in the next command. Otherwise, all MAC address pools inherited by this host group are also returned.

The third command gets the MAC address pool objects associated with the host group stored in $HostGroup, and then stores the objects in the $MACAddressPool array.

The last command gets the allocated MAC addresses for the first MAC address pool in $MACAddressPool.

PS C:\> $HostGroup = Get-SCVMHostGroup | where { $_.Path -eq "All Hosts\HostGroup02\Production" }
PS C:\> Set-SCVMHostGroup -VMHostGroup $HostGroup -InheritNetworkSettings $False
PS C:\> $MACAddressPool = @(Get-SCMACAddressPool -VMHostGroup $HostGroup)
PS C:\> Get-SCMACAddress -MACAddressPool $MACAddressPool[0] 

関連トピック

Grant-SCMACAddress

Revoke-SCMACAddress

Get-SCVirtualDiskDrive

Get-SCVMHostGroup

Set-SCVMHostGroup

Get-SCMACAddressPool