CreateImportChange

Updated: May 27, 2010

Applies To: Forefront Identity Manager 2010

This is an example of a Windows PowerShell function that creates a new ImportChange object based on a FIM object type. For more information, see FIM Windows PowerShell Cmdlet Examples.

CreateImportChange Function

function CreateImportChange
{
    PARAM($AttributeName, $AttributeValue, $Operation)
    END
    {
        $importChange = New-Object Microsoft.ResourceManagement.Automation.ObjectModel.ImportChange
        $importChange.Operation = $Operation
        $importChange.AttributeName = $AttributeName
        $importChange.AttributeValue = $AttributeValue
        $importChange.FullyResolved = 1
        $importChange.Locale = "Invariant"
        $importChange
    }
}

Remarks

This is a basic function that is reused by other example functions such as the AddMultiValue function, the SetSingleValue function, and the RemoveMultiValue function.

See Also

Community Additions

ADD
Show: