Modifies the virtual network adapter configuration contained within a virtual machine configuration.
Description
The Set-SCVirtualNetworkAdapterConfiguration modifies the virtual network adapter configuration information that is contained within a virtual machine configuration.
For more information about Set-SCVirtualNetworkAdapterConfiguration, type: "Get-Help Set-SCVirtualNetworkAdapterConfiguration -online".
Parameters
VirtualNetworkAdapterConfiguration
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a virtual network adapter configuration object.
IPv4Address
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies an IPv4 address.
IPv4AddressPool
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies a static address pool that contains IPv4 addresses.
IPv6Address
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies an IPv6 address.
IPv6AddressPool
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies a static address pool that contains IPv6 addresses.
JobVariable
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies that job progress is tracked and stored in the variable named by this parameter.
MACAddress
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the MAC address or a set of MAC addresses for a physical or virtual network adapter on a computer.
Example format for a single MAC address:
-MACAddress “00-15-5D-B4-DC-00”
Example formats for a set of MAC addresses:
-MACAddress “00-15-5D-B4-DC-00”, “00-1A-A0-E3-75-29”
$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.
MACAddressPool
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies a MAC address pool.
PinIPv4AddressPool
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates whether the IPv4 address pool chosen by the user is retained during service deployment configuration.
PinIPv6AddressPool
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates whether the IPv6 address pool chosen by the user is retained during service deployment configuration.
PinMACAddressPool
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates whether the MAC address pool chosen by the user is retained during service deployment configuration.
PROTipID
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
RunAsynchronously
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
Examples
1: Set the properties of the virtual
network adapter configuration for a virtual machine
configuration.
The first command gets the service configuration object named Service01 and stores the object in the $ServiceConfig variable.
The second command gets the computer tier configuration for the service configuration stored in $ServiceConfig and stores the object in the $TierConfig variable.
The third command gets the virtual machine configuration for the computer tier configuration stored in $TierConfig and stores the object in the $VMConfig variable.
The fourth command gets the virtual network adapter configuration for the first virtual machine configuration stored in $VMConfig and stores the object in the $VNAConfig variable.
The last command changes the IPv4Address property of the network adapter configuration stored in $VNAConfig, and pins the value of the IP address, which prevents it from being changed during placement.