vCenter

VMware vSphere PowerCLI – Power Off & On Guests

Looking for a method to restart a non-persistent environment in ESXi or vCenter, I was able to use PowerCLI to issue the commands needed. Originally I was looking to automate the recovery of a snapshot when it dawned on me that a non-persistent disk would facilitate the same thing.  However I would need to power off the server and back on again for it to work.

And this is what came from my searching and trial and error

Powering Off

Powering On

Both – Power Off wait then Power On

Next was to use a batch file to run a task to execute the PowerCLI commands. This was done by doing the following set as a scheduled task

 Thanks Hristo for your help

Importing Virtual Machine Templates: vCenter

Note:
In most cases, only system administrators can import virtual machines from vCenter

To import a virtual machine template from vCenter

In the left pane, select VM Templates.

Click Import VM Template.

Type a name.

(Optional) Type a description.

Select vCenter and select a virtual machine that is not managed by Lab Manager.

Click Next.

(Optional) Deselect the Perform customization check box if you do not want Lab Manager to customize the network settings for the virtual machine template or virtual machines based on the virtual machine template.

Specify the networking information for each NIC in the imported virtual machine template:

Select the Connected check box.
Choose a default virtual or physical network.
Choose a default IP addressing mode.

Select a storage lease.

Select a deployment lease.

Select the datastore to which you want to import the virtual machine template.

Select whether to copy or move the source virtual machine template.

If you copy the virtual machine template, it continues to exist in the original location, but if you move the virtual machine template, it will not exist in this location.

Click Import and then you wait…

Lab Manager imports the virtual machine template into the current organization and displays it on the VM Templates page.