powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-Template



NAME
Get-Template

SYNOPSIS
Retrieves the virtual machine templates available on a vSphere server.

SYNTAX
Get-Template [-Location ] [[-Name] ] [-Id ] [-NoRecursion] [-Server
] []


DESCRIPTION
Retrieves the virtual machine templates available on a vSphere server. The cmdlet returns a set of templates that c
orrespond to the filter criteria defined by the cmdlet parameters. To specify a server different from the default o
ne, use the -Server parameter.


PARAMETERS
-Location
Specifies the vSphere container objects (such as folders, datacenters, and clusters) you want to search for tem
plates.

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

-Name
Specify the names of the virtual machine templates you want to retrieve.

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

-Id
Specify the IDs of the virtual machine templates you want to retrieve.

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

-NoRecursion
Indicate that you want to disable the recursive behavior of the command.

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

-Server
One or more vSphere servers to apply the command on. If no value is given to this parameter, the command runs o
n the server currently specified in the $DefaultVIServer variable.

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


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
Template


NOTES




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

C:\PS>Get-Template -Name Web* -Location Datacenter


Retrieves all virtual machine templates in the Datacenter datacenter, whose names start with "Web".






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-Template.html
New-Template
Remove-Template
Set-Template