< Back
Get-VsphereVmDevice
Post
NAME Get-VsphereVmDevice
SYNOPSIS
Retrieves VM devices.
SYNTAX
Get-VsphereVmDevice -InputObject <PSObject[]> -DeviceType {All Devices | Hard Disk} -Connection <Hashtable>
[<CommonParameters>]
Get-VsphereVmDevice -VmId <String[]> -DeviceType {All Devices | Hard Disk} -Connection <Hashtable>
[<CommonParameters>]
DESCRIPTION
Retrieves VM devices.
PARAMETERS
-InputObject <PSObject[]>
Object representing the VM for which devices are to be retrieved. Use Get-VsphereObject to retrieve input
object.
Required? true
Position? named
Default value
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-DeviceType <String>
Specifies the type of devices that are to be retrieved. Allowed values are:
All Devices
Hard Disk
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Connection <Hashtable>
Specifies connection information to the vCenter server. For example:
@{ServerUrl='<vCenter Server URL>';User='<user>';Password='<password>';LicenseKey=<license
key>;SkipCertificateValidation=$false}
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-VmId <String[]>
ID (managed object reference) of the VM for which devices are to be retrieved.
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.Management.Automation.PSObject[]
OUTPUTS
System.Management.Automation.PSObject
The list of outputs returned by the cmdlet varies based on the specified Device Type. Refer to the Integration
Module User Guide for details on each set of outputs.
RELATED LINKS
SYNOPSIS
Retrieves VM devices.
SYNTAX
Get-VsphereVmDevice -InputObject <PSObject[]> -DeviceType {All Devices | Hard Disk} -Connection <Hashtable>
[<CommonParameters>]
Get-VsphereVmDevice -VmId <String[]> -DeviceType {All Devices | Hard Disk} -Connection <Hashtable>
[<CommonParameters>]
DESCRIPTION
Retrieves VM devices.
PARAMETERS
-InputObject <PSObject[]>
Object representing the VM for which devices are to be retrieved. Use Get-VsphereObject to retrieve input
object.
Required? true
Position? named
Default value
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-DeviceType <String>
Specifies the type of devices that are to be retrieved. Allowed values are:
All Devices
Hard Disk
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Connection <Hashtable>
Specifies connection information to the vCenter server. For example:
@{ServerUrl='<vCenter Server URL>';User='<user>';Password='<password>';LicenseKey=<license
key>;SkipCertificateValidation=$false}
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-VmId <String[]>
ID (managed object reference) of the VM for which devices are to be retrieved.
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.Management.Automation.PSObject[]
OUTPUTS
System.Management.Automation.PSObject
The list of outputs returned by the cmdlet varies based on the specified Device Type. Refer to the Integration
Module User Guide for details on each set of outputs.
RELATED LINKS