Using OS customization specifications
OS customization specifications are XML files that contain guest operating system settings—such as the computer name, network settings, and license settings—for virtual machines.
Let's get a list of all the OS customization specifications cmdlets:
PowerCLI C:\> Get-Command –Noun OSCustomization* | >> Select-Object –Property Name >>
The output of the preceding command is as follows:
Name ---- Get-OSCustomizationNicMapping Get-OSCustomizationSpec New-OSCustomizationNicMapping New-OSCustomizationSpec Remove-OSCustomizationNicMapping Remove-OSCustomizationSpec Set-OSCustomizationNicMapping Set-OSCustomizationSpec
To create an OS customization specification or to clone an existing one, you have to use the New-OSCustomizationSpec
cmdlet. This cmdlet has the following syntaxes:
New-OSCustomizationSpec [-OSType <String>] [-Server <VIServer[]>] [-Name <String>] [-Type <OSCustomizationSpecType>] [-DnsServer <String[]>...