Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Get-NaHyperV


NAME
Get-NaHyperV

SYNOPSIS
List Hyper-V virtual machines running on the local host along with all Data
ONTAP storage resources that they are using.

SYNTAX
Get-NaHyperV [[-Name] <String>] [-All] [<CommonParameters>]


DESCRIPTION
List Hyper-V virtual machines running on the local host along with all Data
ONTAP storage resources that they are using.


PARAMETERS
-Name <String>
The name of one or more virtual machines to get. Wildcards are permitte
d.

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

-All
Specify to return all virtual machines, not just ones utilizing Data ONT
AP storage.

Required? false
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 and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
DataONTAP.PowerShell.SDK.Cmdlets.HyperV.VirtualMachine


NOTES


Category: host

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

C:\PS>Get-NaHyperV | ft -AutoSize


List all Hyper-V virtual machines running on the local host that utilize Dat
a ONTAP storage resources.


Name Guid Storage
---- ---- -------
OpalisVM 68073F14-5B9A-44F2-923F-766432BE9A68 {O:\OpalisVM.vhd}
W2k3OpalisVM F4043F56-79A1-4FA3-8F71-77E2CEBCF0E7 {P:\W2k3OpalisVM.vhd}


-------------- Example 2 --------------

C:\PS>(Get-NaHyperV OpalisVM).Storage


List the Data ONTAP storage resource(s) on Hyper-V virtual machine 'OpalisVM
'.


VmDiskResourceName : O:\OpalisVM.vhd
VmDiskResourceType : VHD
HostDrivePath : O:\
HostDiskName : \\.\PHYSICALDRIVE3
HostVolume : \\?\Volume{4044589b-4fd9-4c90-8495-f430945e7439}\
HostVolumeIsCsv : False
ControllerName : dunn
ControllerIgroup : viaRPC.iqn.1991-05.com.microsoft:x3550rre7.rtprre.tes
tdomain
ControllerAddress : 10.61.167.60
ControllerLunPath : /vol/opalis/opalisVM
ControllerVolumeName : opalis



RELATED LINKS
Get-NaHostDisk







 Data ONTAP® PowerShell Toolkit