< Back
Set-VDisk
Post
NAME Set-VDisk
SYNOPSIS
This cmdlet renames, inflates, or extends the size of the specified VDisk object.
SYNTAX
Set-VDisk [-VDisk] <VDisk[]> [-CapacityGB <Decimal>] [-Inflate] [-Name <String>] [-Confirm] [-WhatIf]
[<CommonParameters>]
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
-CapacityGB <Decimal>
Specifies the new capacity of the VDisk object in gigabytes (GB).
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Inflate [<SwitchParameter>]
Indicates to inflate the specified VDisk object. Inflating is supported only on thin-provisioned VDisk objects.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the new name you want to set for the VDisk object.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VDisk <VDisk[]>
Specifies the VDisk objects you want to modify.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? 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.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
Required? false
Position? named
Default value False
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
OUTPUTS
The modified VDisk objects
NOTES
-------------------------- 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.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... VDisk.html
Copy-VDisk
Get-VDisk
Move-VDisk
New-VDisk
Remove-VDisk
SYNOPSIS
This cmdlet renames, inflates, or extends the size of the specified VDisk object.
SYNTAX
Set-VDisk [-VDisk] <VDisk[]> [-CapacityGB <Decimal>] [-Inflate] [-Name <String>] [-Confirm] [-WhatIf]
[<CommonParameters>]
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
-CapacityGB <Decimal>
Specifies the new capacity of the VDisk object in gigabytes (GB).
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Inflate [<SwitchParameter>]
Indicates to inflate the specified VDisk object. Inflating is supported only on thin-provisioned VDisk objects.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the new name you want to set for the VDisk object.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VDisk <VDisk[]>
Specifies the VDisk objects you want to modify.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? 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.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
Required? false
Position? named
Default value False
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
OUTPUTS
The modified VDisk objects
NOTES
-------------------------- 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.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... VDisk.html
Copy-VDisk
Get-VDisk
Move-VDisk
New-VDisk
Remove-VDisk