CmdID / PowerShell / Cmdlets / Set
Set-VHD
Sets properties associated with a virtual hard disk. Windows Server PowerShell reference
From the Windows Server PowerShell reference 13 parameters Its page in the reference
Parameters
-CimSessionRuns the cmdlet in a remote session or on a remote computer.-ComputerNameSpecifies one or more Hyper-V hosts on which the parent of a virtual hard disk in a differencing hard disk chain is to be set.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CredentialSpecifies one or more user accounts that have permission to perform this action.-ForceForces the command to run without asking for user confirmation.-IgnoreIdMismatchSpecifies that the check for identifier mismatch between the parent and child virtual hard disk is to be skipped.-LeafPathSpecifies the path to the virtual hard disk file of the virtual hard disk representing the leaf node of the virtual hard disk chain.-ParentPathSpecifies the path to the parent disk of a differencing virtual hard disk.-PassthruSpecifies that an object is to be passed through to the pipeline representing the virtual hard disk whose parent is to be set.-Path, -FullNameSpecifies the path to the virtual hard disk file of the virtual hard disk drive whose parent in the virtual hard disk chain is to be set.-PhysicalSectorSizeBytesSpecifies the physical sector size, in bytes.-ResetDiskIdentifierIndicates that the cmdlet modifies the disk identifier of the virtual disk associated with the virtual hard disk file.-WhatIf, -wiShows what would happen if the cmdlet runs.