Get-OSCustomizationSpec Command | Vmware PowerCLI Reference

Get-OSCustomizationSpec

This cmdlet retrieves the OS customization specifications available on a vCenter Server system. To specify a server different from the default one, use the Server parameter.

Syntax

Get-OSCustomizationSpec
[ [-Server ] < VIServer[] > ]
[-Id < String[] > ]
[-Name < String[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Server VIServer[] 1
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null 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.
optional Id String[] named
  • wildcards
Specifies the IDs of the OS customization specifications you want to retrieve. Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that matches exactly one of the string values in that list.
optional Name String[] named
  • wildcards
Specifies the names of the OS customization specifications you want to retrieve.
optional Type OSCustomizationSpecType named
Specifis the type of the OS customization specifications you want to retrieve. The valid values are Persistent and NonPersistent.

Output

VMware.VimAutomation.ViCore.Types.V1.OSCustomization.OSCustomizationSpec

Examples

Example 1

Get-OSCustomizationSpec "test"

Retrieves from the server the OS customization specification named 'test'.

Example 2

New-VM -Name VM -VMHost Host -Template Template -OSCustomizationSpec $spec

Creates a new virtual machine from a template and configures it using a customization specification.

Related Commands

OSCustomizationNicMapping

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

This cmdlet adds NIC settings mappings to the specified OS customization specifications.

This cmdlet removes the specified OS customization NIC mappings.

This cmdlet modifies the provided OS customization NIC mappings.

OSCustomizationSpec

This cmdlet retrieves the OS customization specifications available on a vCenter Server system.

This cmdlet creates a new OS customization specification.

This cmdlet removes the specified OS customization specifications.

This cmdlet modifies the specified OS customization specification.