O'Reilly logo

Mastering PowerCLI by Sajal Debnath

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing templates

One of the major aspects of managing a vSphere environment is managing templates. In any virtualized data center, invariably, there will be many templates that are maintained in it. In this section, we will check the PowerCLI cmdlets related to template management. Here is a list of the available cmdlets used for managing templates:

  • Get-Template
  • Move-Template
  • New-Template
  • Remove-Template
  • Set-Template

Like all the other topics, in this topic too, we will start with getting a list of the available templates. We can do this using the Get-Template cmdlet:

PS C:\> Get-Template

Name                                              
----                                              
Template1                                    

PS C:\> Get-Template -Location 'Lab Folder'

Name                                              
----                                              
Template1                                    

PS C:\> Get-Template -Datastore NFS_SHARE

Name                                              
----                                              
Template1

In the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required