Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Updated: August 10, 2010

Applies To: Forefront Identity Manager 2010

# ResumeUndoneImports.ps1
# Copyright © 2010 Microsoft Corporation

# This script resumes incomplete imports once the specific error has been identified.

# It may be necessary to edit the first ImportObject in the undone imports file.
# Some changes include removing the object altogether or removing a particular attribute value.
$undone_filename = "undone.xml"

$undoneImports = ConvertTo-FIMResource -file $undone_filename
if($undoneImports -eq $null)
    throw (new-object NullReferenceException -ArgumentList "Changes is null.  Check that the undone file has data.")
Write-Host "Resuming import"
$newUndoneImports = $undoneImports | Import-FIMConfig

if($newUndoneImports -eq $null)
    Write-Host "Import complete."
    Write-Host "There were " $newUndoneImports.Count " uncompleted imports."
    $newUndoneImports | ConvertFrom-FIMResource -file $undone_filename
    Write-Host "Please see the documentation on how to resolve the issues."

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft