'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"
Great advice. Tried `optimize-vhd` - worked like a charm
'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"
You need to install hyper-V