VMware: Deploy Template grayed out

VMware: Deploy Template grayed out

VMware: Deploy Template grayed out 150 150 Roderick Derks
You can run into the problem when you want to deploy a VM from a template the options are greyed out, even after
restarting the vCenter services.
PowerCLI to the rescue:  
$templates = Get-Template *
foreach($item in $templates){
$template = $item.Name

#Convert Template back to VM
Set-Template $template -ToVM -RunAsync
#Convert Template back to template :S
$vmview = Get-VM $template | Get-View
$vmview.MarkAsTemplate()

}
Thnx to ictfreak

Roderick Derks

Liefhebber van fietsen, van het oplossen van IT puzzels, en van het delen van informatie om anderen te helpen.

All stories by:Roderick Derks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

      Your Name (required)

      Your Email (required)

      Subject

      Your Message