powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-OSCustomizationSpec



NAME
Get-OSCustomizationSpec

SYNOPSIS
Retrieves the OS customization specifications available on a vSphere server.

SYNTAX
Get-OSCustomizationSpec [[-Server] ] [[-Name] ] [-Id ] [-Type ype>] []


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


PARAMETERS
-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Name
Specify the names of the OS customization specifications you want to retrieve.

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Id
Specify the IDs of the OS customization specifications you want to retrieve.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Type
Specify the type of the OS customization specifications you want to retrieve. The valid values are Persistent a
nd NonPersistent.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
OSCustomizationSpec


NOTES




-------------- Example 1 --------------

C:\PS>Get-OSCustomizationSpec "test"


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





-------------- Example 2 --------------

C:\PS>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: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-OSCustomizationSpec.html
New-OSCustomizationSpec
Remove-OSCustomizationSpec
Set-OSCustomizationSpec