In this category, we will discuss how to manage the guest OS of a VM using PowerCLI. To manage the different aspects of the guest OS, we can use the following cmdlets:
We can use the
Get-VMGuest cmdlet to get the guest operating system of the VM. Using the next three cmdlets, that is,
Suspend-VMGuest, we can control the power state of a VM guest operating system. The
Get-VMGuest cmdlet gives the current status of a VM guest. Similarly, we can use the
suspend cmdlets to restart, stop, ...