PowerShell Logo Small

Expand-IscsiVirtualDisk



This is the built-in help made by Microsoft for the command 'Expand-IscsiVirtualDisk', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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 iSCSI virtual disk.

SYNTAX


Resize-IscsiVirtualDisk [-Path] <String> [-Size] <UInt64> [-ComputerName <String>] [-Credential <PSCredential>] [-PassThru] [<CommonParameters>]
Resize-IscsiVirtualDisk [-Size] <UInt64> [-ComputerName <String>] [-Credential <PSCredential>] [-PassThru] -InputObject <IscsiVirtualDisk> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Resize-IscsiVirtualDisk cmdlet resizes a virtual disk either by expanding or compacting an existing virtual disk. Virtual disks that use the VHDX format can remain
online while the cmdlet resizes them. If the cmdlet resizes an online disk, when the virtual disk is mapped to an iSCSI Target, initiators can continue to access the virtual
disk even while the cmdlet resizes it. However, an initiator will not automatically see the resized virtual disk. To get access to the capacity of the expanded virtual disk,
the initiator must use the Resize-Partition cmdlet to modify the volume hosted on the virtual disk.


This cmdlet can compact a disk only when the logical unit number (LUN) on the initiator side created some partitions on the LUN, and the compacting process simply shrinks
the unallocated part of the LUN.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=294071
Resize-Partition
Checkpoint-IscsiVirtualDisk
Convert-IscsiVirtualDisk
Get-IscsiVirtualDisk
Import-IscsiVirtualDisk
New-IscsiVirtualDisk
Remove-IscsiVirtualDisk
Restore-IscsiVirtualDisk
Set-IscsiVirtualDisk

REMARKS

<

Examples


Example 1: Resize a virtual disk

PS C:\> Resize-IscsiVirtualDisk –Path "E:\temp\test06.vhdx" –Size 20GB



This command resizes the virtual disk at the path E:\temp\test06.vhdx to 20GB.