powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-VMGuest



NAME
Get-VMGuest

SYNOPSIS
Retrieves the guest operating systems of the specified virtual machines.

SYNTAX
Get-VMGuest [-VM] [-Server ] []


DESCRIPTION
Retrieves the guest operating systems of the specified virtual machines. To specify a server different from the def
ault one, use the -Server parameter. When Get-VMGuest is run against a virtual machine that is just starting, the p
roperties of the returned VMGuest object are not filled at one time.


PARAMETERS
-VM
Specify the virtual machines whose guest operating systems you want to retrieve.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
VMGuest


NOTES




-------------- Example 1 --------------

C:\PS>Get-VMGuest -VM VM


Retrieves the guest OS of the virtual machine named VM.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-VMGuest.html
Suspend-VMGuest
Shutdown-VMGuest
Restart-VMGuest