PowerCLI Reference

Get-OSCustomizationNicMapping

Synopsis

This cmdlet retrieves the configured NIC setting mappings for the specified OS customization specification.

Syntax

Get-OSCustomizationNicMapping [-OSCustomizationSpec] <OSCustomizationSpec[]> [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
New-OSCustomizationNicMapping
Set-OSCustomizationNicMapping

Detailed Description

This cmdlet retrieves the configured NIC setting mappings for the specified OS customization specification.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
OSCustomizationSpecOSCustomizationSpec[]Specifies the OS customization specification for which you want to retrieve the NIC settings mapping.truetrue (ByValue)
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse

Return Type

Zero or more OSCustomizationNicMapping objects

Notes

Examples

-------------- Example 1 --------------

$spec1 = Get-OSCustomizationSpec "test"

$spec2 = Get-OSCustomizationSpec "test_old"

Get-OSCustomizationNicMapping -OSCustomizationSpec $spec1,$spec2

Retrieves the NIC mappings of the "test" and "test_old" OS customization specifications.


Copyright © VMware, Inc. All rights reserved.