How to resize VHDX

Arnaldo Maggiora Vergano 1 Reputation point
2020-11-30T12:05:51.11+00:00

Hi all,
I have an RDS farm (NO hyper V installed) and 1 user have his VHDX full.
Now I need to resize it whith Resize-VirtualDisk, but it want the "-FriendlyName" parameter.
I don't know the friendly name of the 50 vhdx of my RDS Farm, how can I know them?

Is there a way to use the FS name like:
UVHD-S-x-y-zz-32819wwwww-zzzz02738-yyyyyyyyyy-xxxx.vhdx
instead of the friendlyname parameter?
If yes, how?

TIA
Arnaldo

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,229 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Karlie Weng 13,951 Reputation points Microsoft Vendor
    2020-12-01T02:44:24.79+00:00

    Hello @Arnaldo Maggiora Vergano

    Maybe you to run Get-VirtualDisk , to get the virtual disk friendly name.

    43778-image.png

    43961-image.png

    Get-VirtualDisk

    Configuring storage pool by PowerShell in Windows Server 2012

    Hope these helps!

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards
    Karlie


  2. Arnaldo Maggiora Vergano 1 Reputation point
    2020-12-01T09:04:08.653+00:00

    Hi Karlie,
    this is the situation
    PS C:\Users\Administrator> Get-VirtualDisk
    PS C:\Users\Administrator> Get-StoragePool

    FriendlyName OperationalStatus HealthStatus IsPrimordial IsReadOnly Size AllocatedSize


    Primordial OK Healthy True False 260 GB 0 B

    PS C:\Users\Administrator> Get-PhysicalDisk

    Number FriendlyName SerialNumber MediaType CanPool OperationalStatus HealthStatus Usage Size


    4 Msft Virtual Disk Unspecified False OK Healthy Auto-Select 30 GB
    5 Msft Virtual Disk Unspecified False OK Healthy Auto-Select 30 GB
    6 Msft Virtual Disk Unspecified False OK Healthy Auto-Select 30 GB
    7 Msft Virtual Disk Unspecified False OK Healthy Auto-Select 30 GB
    2 Msft Virtual Disk Unspecified False OK Healthy Auto-Select 30 GB
    3 Msft Virtual Disk Unspecified False OK Healthy Auto-Select 30 GB
    1 Msft Virtual Disk Unspecified False OK Healthy Auto-Select 30 GB
    0 QEMU HARDDISK Unspecified False OK Healthy Auto-Select 50 GB

    It seems that my virtualdisk are listed as physical disk and they have all the same name.
    Can you help me for the next step?

    TIA
    Arnaldo

    0 comments No comments