Question

In my vCenter cluster, I have the following directory structure to store templates

Templates
   Project1Templates
      Linux-OS-Template
      Windows-OS-Template

What is the syntax for the get-template comdlet to get the template name in the Project1Template sub-folder when scripting?

Was it helpful?

Solution 2

Per noam's suggestion, here's the answer I got from the PowerCLI community:

Get-Folder -Name Templates |
Get-Folder -Name Project1Teamplates |
Get-Template -Name Linux-OS-template 

Credit to RvdNieuwendijk for the answer: http://communities.vmware.com/message/2225618#2225618

OTHER TIPS

get-folder templates | get-folder Project1Templates | get-template -name Linux-OS-Template

Or maybe I'm still fuzzy on the question.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top