CmdID / PowerShell / Cmdlets / Dismount
Dismount-VHD
Dismounts a virtual hard disk. Windows Server PowerShell reference
From the Windows Server PowerShell reference 9 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 a virtual hard disk is to be dismounted.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CredentialSpecifies one or more user accounts that have permission to perform this action.-DiskNumber, -NumberSpecifies the disk number of the virtual hard disk to be dismounted.-PassthruSpecifies that an object is to be passed through to the pipeline representing the virtual hard disk to be dismounted.-Path, -FullNameSpecifies one or more virtual hard disk files for which the corresponding virtual hard disks are to be dismounted.-SnapshotIdSpecifies the unique ID of a VHD set snapshot.-WhatIf, -wiShows what would happen if the cmdlet runs.