powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-VMHostDiskPartition



NAME
Get-VMHostDiskPartition

SYNOPSIS
Retrieves the partitions of a host disk (LUN).

SYNTAX
Get-VMHostDiskPartition [[-VMHostDisk] ] []


DESCRIPTION
Retrieves the partitions of a host disk (LUN).


PARAMETERS
-VMHostDisk
Specify the host disk for which you want to retrieve the partitions.

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


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
VMHostDiskPartition


NOTES




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

C:\PS>Get-VMHost Host | Get-VMHostDisk | Get-VMHostDiskPartition | ? {.Type -eq "Ntfs"} | Format-VMHostDiskPartitio
n -VolumeName "NewStorage"


Formats the NTFS disk partitions of a host.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-VMHostDiskPartition.html
Get-VMHostDisk
Format-VMHostDiskPartition