Hello Everyone,
We have 2 MIM portal servers which is load balanced. I create and new attribute (RegID) on User Resource and created necessary bindings to display them on the Create/View/Edit RCDC.
The problem I have is, When I user PowerShell script to Read the values of the attribute its showing empty value.
$MIMUrl = "http://localhost:5725/resourcemanagementservice";
$Filter = "/Person[RegID = '78901']"
$ET = Export-Fimconfig -uri $MIMUrl -onlyBaseResources -customconfig $Filter -ErrorAction SilentlyContinue;
$ET | Foreach-Object {
$RegID = ($_.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "RegID"}).Value;
$AccountName= ($_.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "AccountName"}).Value;
Write-Host ($RegID)
# Write-Host ($AccountName)
}
}
When running above code, It fetched the person object and displayed AccountName but not RegID
As I mentioned, its load balanced,
Running on Server 1 : Returns both RegID and AccountName
Running on Server 2 : Return only Account Name but not RegID.
Its Wired, Could you please help?
Thanks
Durai