## PowerCLI Reference

# Set-VDisk

## Synopsis

This cmdlet renames, inflates, or extends the size of the specified VDisk object.

Syntax

Set-VDisk [-VDisk] <VDisk[]> [-Name <String>] [-Inflate] [-CapacityGB <Decimal>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Copy-VDisk
Get-VDisk
Move-VDisk
New-VDisk
Remove-VDisk

Detailed Description

This cmdlet renames, inflates, or extends the size of the specified VDisk object. If multiple options are specified, they are performed in the following order.
1. Rename
2. Inflate
3. Extend the size
VDisk objects cannot be extended to a size that is smaller than or equal to the existing size.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
VDisk | VDisk[] | Specifies the VDisk objects you want to modify. | true | true (ByValue)
CapacityGB | Decimal | Specifies the new capacity of the VDisk object in gigabytes (GB). | false | false
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | false
Inflate | SwitchParameter | Indicates to inflate the specified VDisk object. Inflating is supported only on thin-provisioned VDisk objects. | false | false
Name | String | Specifies the new name you want to set for the VDisk object. | false | false
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

Return Type

The modified VDisk objects

Notes

Examples

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

    Set-VDisk -VDisk $vDisk -Name 'NewName' -CapacityGB 2

Renames $vDisk VDisk object to 'NewName' and sets its capacity to 2 GB.

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

    Set-VDisk -VDisk $vDisk -Inflate

Inflates the $vDisk VDisk object.

Copyright © VMware, Inc. All rights reserved.