powershell : export-config on temporal set RRS feed

  • Question

  • I have a set in FIM that has datatime criteria. When I view the members in FIM, I can see the users. When I use the export-config powershell command, it is not retrieving users. It is working fine if it is not a temporal set. How can I export users belonging to a temporal set in FIM.

    $users = export-fimconfig -uri $URI `
                                      –onlyBaseResources `
                                      -customconfig "/Person[(ObjectID=/Set[ObjectID = '$SetId']/ComputedMember)]" | Convert-FimExportToPSObject

    • Edited by fim_sc Wednesday, April 13, 2016 8:49 PM
    Wednesday, April 13, 2016 8:48 PM

All replies

  • I found the reason but I don't have the solution yet. The datetime field has timestamp too. It is pwdLastSet in AD. So, it has time value too like 2/29/2016 9:38:14AM. If I change the value to 2/29/2016 00:00:00AM, export-config is returning the user. What's the workaround for this?
    Wednesday, April 13, 2016 9:22 PM
  • found the answer. the dates are converted to UTC in export-config runs
    Wednesday, April 13, 2016 9:58 PM