Configuration driven Active Directory management.
Helper function simplifying the changes processing of Test-* commands.
Compare-AdcProperty [-Property] <String> [-Configuration] <Object> [-ADObject] <Object> [-Changes] <ArrayList>
[-Resolve] [[-ADProperty] <String>] [-AsString] [-AsUpdate] [-CaseSensitive] [-IfExists] [[-Type] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Helper function simplifying the changes processing of Test-* commands.
Compare-AdcProperty -Property Description -Configuration $ouDefinition -ADObject $adObject -Changes $changes -Resolve
Compares the description on the configuration object (after resolving it) with the one on the ADObject and adds to $changes if they are inequal.
The property to use for comparison.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The object that was used to define the desired state.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The AD Object containing the actual state.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
An arraylist where changes get added to. The content of -Property will be added if the comparison fails.
Type: ArrayList
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Whether the value on the configured object’s property should be string-resolved.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The property on the ad object to use for the comparison. If this parameter is not specified, it uses the value from -Property.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Compare properties as string. Will convert all $null values to “”.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The result added to the changes arraylist is a custom object with greater details than the default.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Property comparisons are executed minding casing of values.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
If the property compared does not exist on the configured item, return silently.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
What kind of component is the compared object part of. Used together with the -AsUpdate parameter to name the resulting object.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: Unknown
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.