CmdID / PowerShell / Cmdlets / Compare
Compare-VM
Compares a virtual machine and a virtual machine host for compatibility, returning a compatibility report. Windows Server PowerShell reference
From the Windows Server PowerShell reference 26 parameters Its page in the reference
Parameters
Show its 26 parameters
-AsJobRuns the cmdlet as a background job.-CimSessionRuns the cmdlet in a remote session or on a remote computer.-CompatibilityReportSpecifies a compatibility report which resolves any incompatibilities between the virtual machine and the virtual machine host.-ComputerNameSpecifies one or more Hyper-v hosts that run this cmdlet.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CopySpecifies that the comparison should be made for a copy import operation.-CredentialSpecifies one or more user accounts that have permission to perform this action.-DestinationCimSessionSpecifies the CIMSession on the Hyper-V host to which this cmdlet compares the virtual machine for compatibility.-DestinationCredentialSpecifies a user account that has permission to perform this action.-DestinationHostSpecifies the Hyper-V host to which the virtual machine is to be compared for compatibility.-DestinationStoragePathSpecifies a destination storage path to which all virtual machine storage is to be moved.-GenerateNewIdSpecifies that the virtual machine should be copied and given a new unique identifier.-IncludeStorageSpecifies that the compatibility comparison should include both the virtual machine and its storage.-NameSpecifies the name of the virtual machine to be compared.-PathSpecifies the path to the configuration file of the virtual machine to be compared.-RegisterSpecifies that the comparison should be made for an in-place import operation.-ResourcePoolNameSpecifies the friendly name of the resource pool.-RetainVhdCopiesOnSourceIndicates that this cmdlet retains parent virtual hard disks on the source computer.-SmartPagingFilePathSpecifies the new path to use for a smart paging file, if one is needed.-SnapshotFilePath, -CheckpointFileLocation, -SnapshotFileLocationSpecifies the path for any snapshot files associated with the virtual machine.-VMSpecifies a virtual machine.-VhdDestinationPathSpecifies the folder to which the virtual machine's VHD is to be copied.-VhdSourcePathSpecifies the folder from which the virtual machine's VHD files are to be copied.-VhdsSpecifies an array of hash tables that specifies a location for each individual virtual hard disk that needs to be compared.-VirtualMachinePathSpecifies the path where the resulting virtual machine configuration files are to be stored.-WhatIf, -wiShows what would happen if the cmdlet runs.