I'm trying to change an object's attribute using Powershell using the following commands:
$ImportObject = FIM-ModifyImportObject -ObjectType "Person" -TargetIdentifier $fimwf.TargetId $ImportChange = FIM-CreateImportChange -AttributeName "FirstName" -AttributeValue "Test" -Operation 1 $ImportObject = FIM-AddImportChangeToImportObject -ImportObject $ImportObject -ImportChange $ImportChange $ImportObject | Import-Fimconfig
When I do that I get an error stating:
Import-Fimconfig : Failure when making web service call.
Error = System.InvalidOperationException: Operation is not valid due to the current state of the object.
EDIT: The script works once the object is in the new set but not during transition in.
Also boththe account I use in the portal and the FIM Service account are in the admins group.
I can update this attribute using the FIM portal (on the same machine with the same credentials).
Thanks,
JD
- Edited by JOTdude 9 hours 30 minutes ago