Returns the differences between two dictionaries.
Compare-Keys.ps1 [-ReferenceDictionary] <IDictionary> [-DifferenceDictionary] <IDictionary> [-ExcludeDifferent]
[-IncludeEqual] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Compare-Keys.ps1 @{ A = 1; B = 2; C = 3 } @{ D = 6; C = 4; B = 2 } -IncludeEqual
Key Action ReferenceValue DifferenceValue — —— ————– ————— A Deleted 1 B Unchanged 2 2 C Modified 3 4 D Added 6
The original dictionary to compare.
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A dictionary to compare to the original.
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Indicates that different values should be ignored.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates that identical values should be included.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.