< Back

Get-OSCustomizationSpec

Sun Jan 19, 2020 6:51 pm

NAME Get-OSCustomizationSpec



SYNOPSIS

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





SYNTAX

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

<OSCustomizationSpecType>] [<CommonParameters>]





DESCRIPTION

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.





PARAMETERS

-Id <String[]>

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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-Name <String[]>

Specifies the names of the OS customization specifications you want to retrieve.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-Server <VIServer[]>

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.



Required? false

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-Type <OSCustomizationSpecType>

Specifis the type of the OS customization specifications you want to retrieve. The valid values are Persistent

and NonPersistent.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more OSCustomizationSpec objects







NOTES









-------------------------- 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 LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... nSpec.html

New-OSCustomizationSpec

Remove-OSCustomizationSpec

Set-OSCustomizationSpec