Book Image

Learning PowerCLI for VMware VSphere

By : Robert van den Nieuwendijk
Book Image

Learning PowerCLI for VMware VSphere

By: Robert van den Nieuwendijk

Overview of this book

Table of Contents (17 chapters)
Learning PowerCLI
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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[]&gt...