|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NaHostVolume
NAME
Get-NaHostVolume
SYNOPSIS
Get Windows volume information.
SYNTAX
Get-NaHostVolume [[-Path] <String>] [<CommonParameters>]
Get-NaHostVolume [-VdsId] <Guid> [<CommonParameters>]
Get-NaHostVolume [-DiskIndex] <UInt32> [<CommonParameters>]
DESCRIPTION
Get Windows volume information.
This cmdlet must be run with administrative privileges.
PARAMETERS
-Path <String>
The mount point (i.e. G:, \\?\Volume{12345678-abcd-1234-abcd-1234567890a
b}\) or a path to any file on the volume to process
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-VdsId <Guid>
The Guid object which uniquely identifies the volume in VDS. Note that
this is not the same as the volume guid path.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-DiskIndex <UInt32>
A windows disk index/number
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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.Toolkit.Windows.HostVolume
NOTES
Category: host
-------------- Example 1 --------------
C:\PS>Get-NaHostVolume
Get all Windows volumes.
MountPoints Disk Size GuidPaths
----------- ---- ---- ---------
{} 0 100.0 MB {\\?\Volume{6c208c1f-2a50-11e
0-9070-806e6f6e6963}\}
{C:\} 0 49.9 GB {\\?\Volume{6c208c20-2a50-11e
0-9070-806e6f6e6963}\}
{S:\} 2 5.0 GB {\\?\Volume{24385e54-d340-11e
0-ad95-00155da1ce00}\, \\?\Volume{f4db2c...
{E:\} 4 10.0 GB {\\?\Volume{20a7fb8e-f8e4-11e
0-949b-00155da1ce00}\}
{F:\} 5 1021.0 MB {\\?\Volume{20a7fe7b-f8e4-11e
0-949b-00155da1ce00}\}
-------------- Example 2 --------------
C:\PS>Get-NaHostVolume -DiskIndex 0
Get all volumes located on disk 0.
MountPoints Disk Size GuidPaths
----------- ---- ---- ---------
{} 0 100.0 MB {\\?\Volume{6c208c1f-2a50-11e
0-9070-806e6f6e6963}\}
{C:\} 0 49.9 GB {\\?\Volume{6c208c20-2a50-11e
0-9070-806e6f6e6963}\}
-------------- Example 3 --------------
C:\PS>Get-NaHostVolume C:\
Get a specific volume by drive letter.
MountPoints Disk Size GuidPaths
----------- ---- ---- ---------
{C:\} 0 49.9 GB {\\?\Volume{6c208c20-2a50-11e
0-9070-806e6f6e6963}\}
-------------- Example 4 --------------
C:\PS>Get-NaHostVolume "\\?\Volume{6c208c20-2a50-11e0-9070-806e6f6e6963}\"
Get a volume by volume guid path
MountPoints Disk Size GuidPaths
----------- ---- ---- ---------
{C:\} 0 49.9 GB {\\?\Volume{6c208c20-2a50-11e
0-9070-806e6f6e6963}\}
RELATED LINKS
Get-NaHostDisk
New-NaHostVolume
Set-NaHostVolumeSize
Remove-NaHostVolume
Mount-NaHostVolume
Dismount-NaHostVolume
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|