vSphere PowerCLI Reference

Get-OSCustomizationSpec

Synopsis

Retrieves the OS customization specifications available on a vSphere server.

Syntax

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

Related Commands

Online version
New-OSCustomizationSpec
Remove-OSCustomizationSpec
Set-OSCustomizationSpec

Detailed Description

Retrieves the OS customization specifications available on a vSphere server. To specify a server different from the default one, use the -Server parameter.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specify the names of the OS customization specifications you want to retrieve.falsefalse
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse
IdString[]Specify the IDs of the OS customization specifications you want to retrieve.falsefalse
TypeOSCustomizationSpecTypeSpecify the type of the OS customization specifications you want to retrieve. The valid values are Persistent and NonPersistent.falsefalse

Return Type

OSCustomizationSpec

Notes

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.


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.