Restart-VMGuest

This cmdlet restarts the virtual machine guest operating systems.

Syntax

[[-Server]  <VIServer[]>]
[-VM  <VirtualMachine[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Server
VIServer[] 1
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
    optional
    VM
    VirtualMachine[] named
  • wildcards
  • pipeline
  • Specifies the virtual machines whose operating systems you want to restart. The specified virtual machines must have VMware Tools installed.

    [-Guest  <VMGuest[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    optional
    Guest
    VMGuest[] named
  • pipeline
  • Specifies the virtual machine guest operating systems you want to restart.

    Output

    VMware.VimAutomation.ViCore.Types.V1.VM.Guest.VMGuest

    Examples


    Example 1

    Get-VM VM | Restart-VMGuest

    Restarts the guest OS of the virtual machine named VM.

    Related Commands

    Feedback

    Was this page helpful?