Syntax
Get-VMGuestRoute [[-VM] <VirtualMachine[]>] [-VMGuest <VMGuest[]>] [-Server <VIServer[]>] [-ToolsWaitSecs <Int32>] [-GuestPassword <SecureString>] [-GuestUser <String>] [-GuestCredential <PSCredential>] [-HostPassword <SecureString>] [-HostUser <String>] [-HostCredential <PSCredential>] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet is deprecated. Use Invoke-VMGuestScript instead.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
VM | VirtualMachine[] | Specifies the virtual machines for which you want to retrieve the routing configuration. | false | true (ByValue) | |
GuestCredential | PSCredential | Specifies a PSCredential object that contains credentials for authenticating with the guest OS. Do not use this parameter if the GuestUser and GuestPassword parameters are used. | false | false | |
GuestPassword | SecureString | Specifies the password you want to use for authenticating with the guest OS. | false | false | |
GuestUser | String | Specifies the user name you want to use for authenticating with the guest OS. | false | false | |
HostCredential | PSCredential | Specifies a PSCredential object that contains credentials for authenticating with the host. Do not use this parameter if the HostUser and HostPassword parameters are used. You need to specify host credentials only if the version of the vCenter Server or ESX you are authenticating with is earlier than 4.0, or the VIX version you have installed is earlier than 1.10. | false | false | |
HostPassword | SecureString | Specifies the password you want to use for authenticating with the host. You need to specify host credentials only if the version of the vCenter Server or ESX you are authenticating with is earlier than 4.0, or the VIX version you have installed is earlier than 1.10. | false | false | |
HostUser | String | Specifies the user name you want to use for authenticating with the host. You need to specify host credentials only if the version of the vCenter Server or ESX you are authenticating with is earlier than 4.0, or the VIX version you have installed is earlier than 1.10. | false | false | |
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no 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. | false | false | |
ToolsWaitSecs | Int32 | Specifies the time in seconds to wait for a response from the VMware Tools. If a non-positive value is provided, the system waits infinitely long time. | false | false | |
VMGuest | VMGuest[] | Specifies the guest operating systems for which you want to retrieve the routing configuration. | false | true (ByValue) |
Return Type
Zero or more VMGuestRoute objectsNotes
This cmdlet is not compatible with IPv6 environments.Examples
-------------- Example 1 --------------
Get-VMGuestRoute -VM $vm -GuestUser User -GuestPassword pass2
Retrieves the guest route of the $vm virtual machine.