PowerShell Logo Small

Resize-VirtualDisk



This is the built-in help made by Microsoft for the command 'Resize-VirtualDisk', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' 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] [-CimSession <CimSession[]>] [-PassThru] [-Size <UInt64>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<Commo
nParameters>]
Resize-VirtualDisk [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-Size <UInt64>] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<Com
monParameters>]
Resize-VirtualDisk [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-Size <UInt64>] [-ThrottleLimit <Int32>] -Name <String[]> [-Confirm] [-WhatIf] [<CommonParameter
s>]
Resize-VirtualDisk [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-Size <UInt64>] [-ThrottleLimit <Int32>] -UniqueId <String[]> [-Confirm] [-WhatIf] [<CommonParam
eters>]



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 Wi
ndows.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=307028
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.