9. How to compact/shrink your Virtual Hard Disk in WSL (VHD)

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 3

  • @biowar5539
    @biowar5539 6 месяцев назад +1

    Great advice. Tried `optimize-vhd` - worked like a charm

  • @FrankBailey-mg9uo
    @FrankBailey-mg9uo 4 месяца назад +1

    'optimize-vhd' threw an error in PowerShell Admin window:
    "optimize-vhd : The term 'optimize-vhd' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + optimize-vhd -Path .\ext4.vhdx -Mode full
    + ~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (optimize-vhd:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException"