CmdID / PowerShell / Cmdlets / Optimize
Optimize-VHDSet
Optimizes VHD set files. Windows Server PowerShell reference
From the Windows Server PowerShell reference 8 parameters Its page in the reference
Parameters
-AsJobRuns the cmdlet as a background job.-CimSessionRuns the cmdlet in a remote session or on a remote computer.-ComputerNameSpecifies one or more Hyper-V hosts that run this cmdlet.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CredentialSpecifies one or more user accounts that have permission to perform this action.-PassthruIndicates that this cmdlet returns the Microsoft.HyperV.PowerShell.VirtualHardDisk object that it optimizes.-Path, -FullNameSpecifies an array of paths of VHD sets that this cmdlet optimizes.-WhatIf, -wiShows what would happen if the cmdlet runs.