PowerShell Logo Small

Resize-VirtualDisk



This is the built-in help made by Microsoft for the command 'Resize-VirtualDisk', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Resizes an existing virtual disk to be larger or smaller.

SYNTAX


Resize-VirtualDisk [-FriendlyName] <String[]> [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]] [-Size
<UInt64>] [-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Resize-VirtualDisk [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]] [-Size <UInt64>] [-ThrottleLimit
<Int32>] -InputObject <CimInstance[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Resize-VirtualDisk [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]] [-Size <UInt64>] [-ThrottleLimit
<Int32>] -UniqueId <String[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Resize-VirtualDisk [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]] [-Size <UInt64>] [-ThrottleLimit
<Int32>] -Name <String[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Resize-VirtualDisk cmdlet resizes an existing virtual disk to be larger or smaller.


Note: The ability to expand or shrink is vendor specific.


Note: If there is a partition on the virtual disk, then the partition must also be resized in order for the client to have additional space on
the disk surfaced to Windows.



<

RELATED LINKS

Connect-VirtualDisk
Disconnect-VirtualDisk
Get-VirtualDisk
Get-VirtualDiskSupportedSize
Hide-VirtualDisk
New-VirtualDisk
Remove-VirtualDisk
Repair-VirtualDisk
Resize-Partition
Set-VirtualDisk
Show-VirtualDisk

REMARKS

<

Examples


EXAMPLE 1

PS C:\> Resize-VirtualDisk -FriendlyName "Sqldata5" -Size (25GB)



This example changes the size of the VirtualDisk object. Note: Any associated Partition object must also be resized to utilize this space.